Documentation
¶
Index ¶
Constants ¶
View Source
const ( BigEndian = true LittleEndian = false )
Variables ¶
View Source
var (
ErrStringOverflow = errors.New("binary: string too large")
)
Functions ¶
func Marshal ¶
func Marshal(in interface{}, args EncoderArgs) []byte
Types ¶
type EncoderArgs ¶
type LengthString ¶
type LengthString []byte // a byte array that will be encoded as an 8 bit length prefixed string
type LengthString16 ¶
type LengthString16 []byte // a byte array that will be encoded as a 16 bit length prefixed string
type LengthString32 ¶
type LengthString32 []byte // a byte array that will be encoded as a 32 bit length prefixed string
type LengthString64 ¶
type LengthString64 []byte // a byte array that will be encoded as a 64 bit length prefixed string. you probably dont want to use this because internally an int is used for length, this is just here for compatability
type NullString ¶
type NullString []byte
a byte array that will be encoded as a null terminated string
Click to show internal directories.
Click to hide internal directories.