decodeByte

Decode the byte in the buffer given the offset and bitmask. We find the byte, '&' with the mask, then right-shift to get the final result.

ubyte
decodeByte
(
const(ubyte)[] buffer
,
int offset
,
ubyte mask = 0xff
)

Parameters

buffer const(ubyte)[]

The buffer with the byte to decode.

offset int

Byte offset in the the buffer.

mask ubyte

Bitmask used to decode the byte.

Meta