Expand description
Explicit-endian integer reads/writes.
SMB is little-endian on the wire regardless of host architecture. These helpers make the byte order explicit at every call site so the code is correct on big-endian machines too.
Functionsยง
- read_le
- Read a little-endian unsigned integer of
Nbytes starting atbuf[pos]. - read_
u8_ le - Read a little-endian value from the buffer at
pos. - read_
u16_ le - Read a little-endian value from the buffer at
pos. - read_
u32_ le - Read a little-endian value from the buffer at
pos. - read_
u64_ le - Read a little-endian value from the buffer at
pos. - write_
le - Write a little-endian unsigned integer of
nbytes intobufatpos.