Documentation ¶
Index ¶
- Variables
- type Decoder
- func (d *Decoder) GetBigIntWithByteHeader() (value *big.Int, err error)
- func (d *Decoder) GetDataSegment(size int) (data []byte, err error)
- func (d *Decoder) GetDataSegmentWith2BytesHeader() (data []byte, err error)
- func (d *Decoder) GetDataSegmentWithByteHeader() (data []byte, err error)
- func (d *Decoder) GetInt16() (value int16, err error)
- func (d *Decoder) GetInt32() (value int32, err error)
- func (d *Decoder) GetInt64() (value int64, err error)
- func (d *Decoder) GetInt8() (value int8, err error)
- func (d *Decoder) GetString() (value string, err error)
- func (d *Decoder) GetTimeWithUint8Header() (value time.Time, err error)
- func (d *Decoder) GetUint16() (value uint16, err error)
- func (d *Decoder) GetUint32() (value uint32, err error)
- func (d *Decoder) GetUint64() (value uint64, err error)
- func (d *Decoder) GetUint8() (value uint8, err error)
- func (d *Decoder) UnmarshalDataSegment(size int, destination encoding.BinaryUnmarshaler) (err error)
- func (d *Decoder) UnmarshalDataSegmentWith2BytesHeader(destination encoding.BinaryUnmarshaler) (err error)
- func (d *Decoder) UnmarshalDataSegmentWithByteHeader(destination encoding.BinaryUnmarshaler) (err error)
- type Encoder
- func (e *Encoder) CollectDataAndReleaseBuffers() (data []byte)
- func (e *Encoder) MarshallFixedSizeDataSegment(s encoding.BinaryMarshaler) (err error)
- func (e *Encoder) MarshallVariadicDataWith2BytesHeader(s encoding.BinaryMarshaler) (err error)
- func (e *Encoder) MarshallVariadicDataWithByteHeader(s encoding.BinaryMarshaler) (err error)
- func (e *Encoder) PutBigIntWithByteHeader(value *big.Int) (err error)
- func (e *Encoder) PutFixedSizeDataSegment(data []byte) (err error)
- func (e *Encoder) PutInt16(value int16) (err error)
- func (e *Encoder) PutInt32(value int32) (err error)
- func (e *Encoder) PutInt64(value int64) (err error)
- func (e *Encoder) PutInt8(value int8) (err error)
- func (e *Encoder) PutString(value string) (err error)
- func (e *Encoder) PutTimeWithByte8Header(value time.Time) (err error)
- func (e *Encoder) PutUint16(value uint16) (err error)
- func (e *Encoder) PutUint32(value uint32) (err error)
- func (e *Encoder) PutUint64(value uint64) (err error)
- func (e *Encoder) PutUint8(value uint8) (err error)
- func (e *Encoder) PutVariadicDataWith2BytesHeader(data []byte) (err error)
- func (e *Encoder) PutVariadicDataWithByteHeader(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoderFromReader ¶
func (*Decoder) GetBigIntWithByteHeader ¶
func (*Decoder) GetDataSegment ¶
func (*Decoder) GetDataSegmentWith2BytesHeader ¶
func (*Decoder) GetDataSegmentWithByteHeader ¶
func (*Decoder) GetTimeWithUint8Header ¶
func (*Decoder) UnmarshalDataSegment ¶
func (d *Decoder) UnmarshalDataSegment(size int, destination encoding.BinaryUnmarshaler) (err error)
func (*Decoder) UnmarshalDataSegmentWith2BytesHeader ¶
func (d *Decoder) UnmarshalDataSegmentWith2BytesHeader(destination encoding.BinaryUnmarshaler) (err error)
func (*Decoder) UnmarshalDataSegmentWithByteHeader ¶
func (d *Decoder) UnmarshalDataSegmentWithByteHeader(destination encoding.BinaryUnmarshaler) (err error)
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() (encoder *Encoder)
func (*Encoder) CollectDataAndReleaseBuffers ¶
func (*Encoder) MarshallFixedSizeDataSegment ¶
func (e *Encoder) MarshallFixedSizeDataSegment(s encoding.BinaryMarshaler) (err error)
func (*Encoder) MarshallVariadicDataWith2BytesHeader ¶
func (e *Encoder) MarshallVariadicDataWith2BytesHeader(s encoding.BinaryMarshaler) (err error)
func (*Encoder) MarshallVariadicDataWithByteHeader ¶
func (e *Encoder) MarshallVariadicDataWithByteHeader(s encoding.BinaryMarshaler) (err error)
func (*Encoder) PutBigIntWithByteHeader ¶
func (*Encoder) PutFixedSizeDataSegment ¶
func (*Encoder) PutTimeWithByte8Header ¶
func (*Encoder) PutVariadicDataWith2BytesHeader ¶
func (*Encoder) PutVariadicDataWithByteHeader ¶
Click to show internal directories.
Click to hide internal directories.