Documentation
¶
Index ¶
- Constants
- func BytesToAddrString(b []byte) string
- func BytesToDecimalString(b []byte) string
- func BytesToDscp(b []byte) string
- func BytesToEcn(b []byte) string
- func BytesToHexString(b []byte) string
- func BytesToIPVer(b []byte) string
- func BytesToInvalidType(b []byte) string
- func BytesToNfProtoString(b []byte) string
- func BytesToString(b []byte) string
- func BytesToTimeString(b []byte) string
- func LEBytesToIntString(b []byte) string
- type RawBytes
- func (b RawBytes) CIDR() (ipnet *net.IPNet)
- func (b RawBytes) Ip() (ip net.IP)
- func (b RawBytes) LittleEndian() RawBytes
- func (b RawBytes) MarshalJSON() ([]byte, error)
- func (b RawBytes) ReverseByte() RawBytes
- func (b RawBytes) String() string
- func (b RawBytes) Text(base int) string
- func (b RawBytes) Uint64() uint64
Constants ¶
View Source
const ( BaseDec = 10 BaseHex = 16 )
Variables ¶
This section is empty.
Functions ¶
func BytesToAddrString ¶
func BytesToDecimalString ¶
func BytesToDscp ¶
func BytesToEcn ¶
func BytesToHexString ¶
func BytesToIPVer ¶
func BytesToInvalidType ¶
func BytesToNfProtoString ¶
func BytesToString ¶
func BytesToTimeString ¶
func LEBytesToIntString ¶
Types ¶
type RawBytes ¶
type RawBytes []byte
func (RawBytes) LittleEndian ¶
func (RawBytes) MarshalJSON ¶
MarshalJSON json Marshaler
func (RawBytes) ReverseByte ¶
Click to show internal directories.
Click to hide internal directories.