bytes

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDec = 10
	BaseHex = 16
)

Variables

This section is empty.

Functions

func BytesToAddrString

func BytesToAddrString(b []byte) string

func BytesToDecimalString

func BytesToDecimalString(b []byte) string

func BytesToDscp

func BytesToDscp(b []byte) string

func BytesToEcn

func BytesToEcn(b []byte) string

func BytesToHexString

func BytesToHexString(b []byte) string

func BytesToIPVer

func BytesToIPVer(b []byte) string

func BytesToInvalidType

func BytesToInvalidType(b []byte) string

func BytesToNfProtoString

func BytesToNfProtoString(b []byte) string

func BytesToString

func BytesToString(b []byte) string

func BytesToTimeString

func BytesToTimeString(b []byte) string

func LEBytesToIntString

func LEBytesToIntString(b []byte) string

Types

type RawBytes

type RawBytes []byte

func (RawBytes) CIDR

func (b RawBytes) CIDR() (ipnet *net.IPNet)

func (RawBytes) Ip

func (b RawBytes) Ip() (ip net.IP)

func (RawBytes) LittleEndian

func (b RawBytes) LittleEndian() RawBytes

func (RawBytes) MarshalJSON

func (b RawBytes) MarshalJSON() ([]byte, error)

MarshalJSON json Marshaler

func (RawBytes) ReverseByte

func (b RawBytes) ReverseByte() RawBytes

func (RawBytes) String

func (b RawBytes) String() string

func (RawBytes) Text

func (b RawBytes) Text(base int) string

func (RawBytes) Uint64

func (b RawBytes) Uint64() uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL