Documentation ¶
Index ¶
- type Inp
- func (i *Inp) Error() error
- func (i *Inp) GetBinary(bin encoding.BinaryUnmarshaler)
- func (i *Inp) GetBool(out *bool)
- func (i *Inp) GetBundle(b *Inp)
- func (i *Inp) GetBytes(out *[]byte)
- func (i *Inp) GetFloat32(out *float32)
- func (i *Inp) GetFloat64(out *float64)
- func (i *Inp) GetInt16(out *int16)
- func (i *Inp) GetInt32(out *int32)
- func (i *Inp) GetInt64(out *int64)
- func (i *Inp) GetInt8(out *int8)
- func (i *Inp) GetRune(out *rune)
- func (i *Inp) GetString(out *string)
- func (i *Inp) GetUInt16(out *uint16)
- func (i *Inp) GetUInt32(out *uint32)
- func (i *Inp) GetUInt64(out *uint64)
- func (i *Inp) GetUInt8(out *uint8)
- func (i *Inp) GetUInts8(out *[]uint8)
- func (i *Inp) GoString() string
- func (i *Inp) String() string
- func (i *Inp) UnmarshalBinary(data []byte) error
- type Out
- func (o *Out) Error() error
- func (o *Out) Flip() *Inp
- func (o *Out) MarshalBinary() ([]byte, error)
- func (o *Out) PutBinary(bin encoding.BinaryMarshaler)
- func (o *Out) PutBool(x bool)
- func (o *Out) PutBundle(b *Out)
- func (o *Out) PutByte(x byte)
- func (o *Out) PutBytes(x []byte)
- func (o *Out) PutFloat32(x float32)
- func (o *Out) PutFloat64(x float64)
- func (o *Out) PutInt16(x int16)
- func (o *Out) PutInt32(x int32)
- func (o *Out) PutInt64(x int64)
- func (o *Out) PutInt8(x int8)
- func (o *Out) PutRune(x rune)
- func (o *Out) PutString(s string)
- func (o *Out) PutUInt16(x uint16)
- func (o *Out) PutUInt32(x uint32)
- func (o *Out) PutUInt64(x uint64)
- func (o *Out) PutUInt8(x uint8)
- func (o *Out) PutUInts8(x []uint8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inp ¶
type Inp struct {
// contains filtered or unexported fields
}
Inp is bundle input type, it wraps source byte array and read data with specified bytes order
func InpWrapBytes ¶ added in v0.1.1
InpWrapBytes creates new input from bytes source with specified byte order.
func NewBEInput ¶
func NewBEInput() *Inp
NewBEInput creates new empty input with big-endian byte order, the data could be added with `UnmarshalBinary` method.
func NewInput ¶
NewInput creates new empty input with specified byte order, the data could be added with `UnmarshalBinary` method.
func NewLEInput ¶
func NewLEInput() *Inp
NewBEInput creates new empty input with little-endian byte order, the data could be added with `UnmarshalBinary` method.
func (*Inp) GetBinary ¶
func (i *Inp) GetBinary(bin encoding.BinaryUnmarshaler)
GetBinary reads marshaled type to binary unmarshaler
func (*Inp) GetFloat32 ¶ added in v0.1.1
GetFloat32 reads float32 to `out` param
func (*Inp) GetFloat64 ¶ added in v0.1.1
GetFloat64 reads float64 to `out` param
func (*Inp) UnmarshalBinary ¶
type Out ¶
type Out struct {
// contains filtered or unexported fields
}
Out bundle of binary data to write
func (*Out) MarshalBinary ¶
func (*Out) PutBinary ¶
func (o *Out) PutBinary(bin encoding.BinaryMarshaler)
PutBinary puts binary marshaler to bundle