Skip to main content

Module buf

Module buf 

Source
Expand description

Cursor-style buffer reader/writer implementing SMB string and alignment rules ([MS-CIFS] §2.2.1.1.1 string formats, [MS-SMB] §2.2.2 extensions).

All offsets handed to these helpers are absolute frame offsets — the caller adds the buffer’s base once; the cursor tracks its own position internally.

Structs§

Reader
Reading cursor over a received buffer.
Writer
Writing cursor building an outgoing buffer.