package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
AlignDown rounds a length down to an alignment.
AlignUp rounds a length up to an alignment.
AppendUint16 appends the binary representation of a uint16 to buf.
AppendUint32 appends the binary representation of a uint32 to buf.
AppendUint64 appends the binary representation of a uint64 to buf.
Marshal appends a binary representation of data to buf.
ReadUint16 reads a uint16 from r.
ReadUint32 reads a uint32 from r.
ReadUint64 reads a uint64 from r.
Size calculates the buffer sized needed by Marshal or Unmarshal.
Unmarshal unpacks buf into data.
WriteUint16 writes a uint16 to w.
WriteUint32 writes a uint32 to w.
WriteUint64 writes a uint64 to w.
# Variables
BigEndian is the same as encoding/binary.BigEndian.
LittleEndian is the same as encoding/binary.LittleEndian.