Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonDecoder ¶ added in v0.4.0
type JsonDecoder struct {
// contains filtered or unexported fields
}
func NewJsonDecoder ¶ added in v0.4.0
func NewJsonDecoder( customReflection bool, ) *JsonDecoder
func NewJsonDecoderWithConfig ¶ added in v0.4.0
func NewJsonDecoderWithConfig( c *config.Config, ) *JsonDecoder
type JsonEncoder ¶ added in v0.4.0
type JsonEncoder struct {
// contains filtered or unexported fields
}
func NewJsonEncoder ¶ added in v0.4.0
func NewJsonEncoder( customReflection bool, ) *JsonEncoder
func NewJsonEncoderWithConfig ¶ added in v0.4.0
func NewJsonEncoderWithConfig( c *config.Config, ) *JsonEncoder
type ReadBuffer ¶
type ReadBuffer interface {
ReadBit() (bool, error)
ReadBool() (bool, error)
ReadInt8() (int8, error)
ReadInt16() (int16, error)
ReadInt32() (int32, error)
ReadInt64() (int64, error)
ReadUint8() (uint8, error)
ReadUint16() (uint16, error)
ReadUint32() (uint32, error)
ReadUint64() (uint64, error)
ReadFloat32() (float32, error)
ReadFloat64() (float64, error)
ReadString() (string, error)
ReadBytes() ([]byte, error)
}
func NewReadBuffer ¶
func NewReadBuffer( buffer *bytes.Buffer, ) ReadBuffer
type WriteBuffer ¶
type WriteBuffer interface {
PutBit(
val bool,
) error
PutBool(
val bool,
) error
PutInt8(
val int8,
) error
PutInt16(
val int16,
) error
PutInt32(
val int32,
) error
PutInt64(
val int64,
) error
PutUint8(
val uint8,
) error
PutUint16(
val uint16,
) error
PutUint32(
val uint32,
) error
PutUint64(
val uint64,
) error
PutFloat32(
val float32,
) error
PutFloat64(
val float64,
) error
PutString(
val string,
) error
PutBytes(
val []byte,
) error
Length() int
Bytes() []byte
}
func NewWriteBuffer ¶
func NewWriteBuffer( initialCapacity int, ) WriteBuffer
Click to show internal directories.
Click to hide internal directories.