Lines Matching refs:ByteOffset
28 encode(Plain, ByteOffset, BitsRemaining, Acc) when BitsRemaining == 8 ->
29 <<A:5, B:3>> = binary:part(Plain, ByteOffset, 1),
34 encode(Plain, ByteOffset, BitsRemaining, Acc) when BitsRemaining == 16 ->
35 <<A:5, B:5, C:5, D:1>> = binary:part(Plain, ByteOffset, 2),
42 encode(Plain, ByteOffset, BitsRemaining, Acc) when BitsRemaining == 24 ->
43 <<A:5, B:5, C:5, D:5, E:4>> = binary:part(Plain, ByteOffset, 3),
51 encode(Plain, ByteOffset, BitsRemaining, Acc) when BitsRemaining == 32 ->
52 <<A:5, B:5, C:5, D:5, E:5, F:5, G:2>> = binary:part(Plain, ByteOffset, 4),
62 encode(Plain, ByteOffset, BitsRemaining, Acc) when BitsRemaining >= 40 ->
64 binary:part(Plain, ByteOffset, 5),
73 encode(Plain, ByteOffset + 5, BitsRemaining - 40, [Output | Acc]).
81 decode(Encoded, ByteOffset, Acc) when ByteOffset == byte_size(Encoded) ->
83 decode(Encoded, ByteOffset, Acc) ->
84 case binary:part(Encoded, ByteOffset, 8) of
110 decode(Encoded, ByteOffset + 8,