Documentation ¶
Overview ¶
Package read provides convenience read functions to extract values from a reader.
Index ¶
- func Protocol(p uint8) string
- func TCPFlags(f uint8) string
- func Uint16(v *uint16, r io.Reader) error
- func Uint32(v *uint32, r io.Reader) error
- func Uint32IPv4(v *LongIPv4, r io.Reader) error
- func Uint64(v *uint64, r io.Reader) error
- func Uint8(v *uint8, r io.Reader) error
- func VariableLength(p []byte, r io.Reader) ([]byte, error)
- type LongIPv4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Uint32IPv4 ¶
Uint32IPv4 reads an unsigned dword as IP address
func VariableLength ¶
VariableLength reads a variable length byte stream as per RFC 7011 section 7.
Types ¶
Click to show internal directories.
Click to hide internal directories.