Documentation
¶
Overview ¶
Package nlenc implements encoding and decoding functions for netlink messages and attributes.
Index ¶
- func Bytes(s string) []byte
- func Int32(b []byte) int32deprecated
- func Int32Bytes(v int32) []byte
- func NativeEndian() binary.ByteOrderdeprecated
- func PutInt32(b []byte, v int32)deprecated
- func PutUint8(b []byte, v uint8)deprecated
- func PutUint16(b []byte, v uint16)deprecated
- func PutUint32(b []byte, v uint32)deprecated
- func PutUint64(b []byte, v uint64)deprecated
- func String(b []byte) string
- func Uint8(b []byte) uint8deprecated
- func Uint8Bytes(v uint8) []bytedeprecated
- func Uint16(b []byte) uint16deprecated
- func Uint16Bytes(v uint16) []byte
- func Uint32(b []byte) uint32deprecated
- func Uint32Bytes(v uint32) []byte
- func Uint64(b []byte) uint64deprecated
- func Uint64Bytes(v uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int32
deprecated
Int32 decodes an int32 from b using the host machine's native endianness. If b is not exactly 4 bytes in length, Int32 will panic.
Deprecated: Use binary.NativeEndian.Uint32 instead (with a typecast).
func Int32Bytes ¶
Int32Bytes encodes a int32 into a newly-allocated byte slice using the host machine's native endianness. It is a shortcut for allocating a new byte slice and filling it using PutInt32.
func NativeEndian
deprecated
NativeEndian returns the native byte order of this system.
Deprecated: Use binary.NativeEndian instead.
func PutInt32
deprecated
PutInt32 encodes a int32 into b using the host machine's native endianness. If b is not exactly 4 bytes in length, PutInt32 will panic.
Deprecated: Use binary.NativeEndian.PutUint32 instead (with a typecast).
func PutUint16
deprecated
PutUint16 encodes a uint16 into b using the host machine's native endianness. If b is not exactly 2 bytes in length, PutUint16 will panic.
Deprecated: Use binary.NativeEndian.PutUint16 instead.
func PutUint32
deprecated
PutUint32 encodes a uint32 into b using the host machine's native endianness. If b is not exactly 4 bytes in length, PutUint32 will panic.
Deprecated: Use binary.NativeEndian.PutUint32 instead.
func PutUint64
deprecated
PutUint64 encodes a uint64 into b using the host machine's native endianness. If b is not exactly 8 bytes in length, PutUint64 will panic.
Deprecated: Use binary.NativeEndian.PutUint64 instead.
func Uint8Bytes
deprecated
func Uint16
deprecated
Uint16 decodes a uint16 from b using the host machine's native endianness. If b is not exactly 2 bytes in length, Uint16 will panic.
Deprecated: Use binary.NativeEndian.Uint16 instead.
func Uint16Bytes ¶
Uint16Bytes encodes a uint16 into a newly-allocated byte slice using the host machine's native endianness. It is a shortcut for allocating a new byte slice and filling it using PutUint16.
func Uint32
deprecated
Uint32 decodes a uint32 from b using the host machine's native endianness. If b is not exactly 4 bytes in length, Uint32 will panic.
Deprecated: Use binary.NativeEndian.Uint32 instead.
func Uint32Bytes ¶
Uint32Bytes encodes a uint32 into a newly-allocated byte slice using the host machine's native endianness. It is a shortcut for allocating a new byte slice and filling it using PutUint32.
func Uint64
deprecated
Uint64 decodes a uint64 from b using the host machine's native endianness. If b is not exactly 8 bytes in length, Uint64 will panic.
Deprecated: Use binary.NativeEndian.Uint64 instead.
func Uint64Bytes ¶
Uint64Bytes encodes a uint64 into a newly-allocated byte slice using the host machine's native endianness. It is a shortcut for allocating a new byte slice and filling it using PutUint64.
Types ¶
This section is empty.