Documentation
¶
Index ¶
- type Reader
- func (r *Reader) Bool() (bool, error)
- func (r *Reader) Close() (err error)
- func (r *Reader) Float32() (float32, error)
- func (r *Reader) Float64() (float64, error)
- func (r *Reader) Int() (int, error)
- func (r *Reader) Int8() (int8, error)
- func (r *Reader) Int16() (int16, error)
- func (r *Reader) Int32() (int32, error)
- func (r *Reader) Int64() (int64, error)
- func (r *Reader) IntArray() ([]int, error)
- func (r *Reader) Object() (result []byte, err error)
- func (r *Reader) ObjectArray() ([][]byte, error)
- func (r *Reader) String() (string, error)
- func (r *Reader) StringArray() ([]string, error)
- func (r *Reader) Timestamp() (entity.Timestamp, error)
- func (r *Reader) Uint() (uint, error)
- func (r *Reader) Uint8() (uint8, error)
- func (r *Reader) Uint16() (uint16, error)
- func (r *Reader) Uint32() (uint32, error)
- func (r *Reader) Uint64() (v uint64, err error)
- type Writer
- func (w *Writer) Bool(v bool) *Writer
- func (w *Writer) Close() (err error)
- func (w *Writer) Float32(v float32) *Writer
- func (w *Writer) Float32Array(v []float32) *Writer
- func (w *Writer) Float64(v float64) *Writer
- func (w *Writer) Float64Array(v []float64) *Writer
- func (w *Writer) GetBytes() []byte
- func (w *Writer) Int(v int) *Writer
- func (w *Writer) Int8(v int8) *Writer
- func (w *Writer) Int16(v int16) *Writer
- func (w *Writer) Int32(v int32) *Writer
- func (w *Writer) Int64(v int64) *Writer
- func (w *Writer) IntArray(v []int) *Writer
- func (w *Writer) Object(v *[]byte) *Writer
- func (w *Writer) ObjectArray(v *[][]byte) *Writer
- func (w *Writer) Reset()
- func (w *Writer) String(v string) *Writer
- func (w *Writer) StringArray(v []string) *Writer
- func (w *Writer) Timestamp(v entity.Timestamp) *Writer
- func (w *Writer) Uint(v uint) *Writer
- func (w *Writer) Uint8(v uint8) *Writer
- func (w *Writer) Uint16(v uint16) *Writer
- func (w *Writer) Uint32(v uint32) *Writer
- func (w *Writer) Uint64(v uint64) *Writer
- func (w *Writer) WriteTo(dest io.Writer) (int64, error)
- func (w *Writer) Written() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader manages the reading of binary data
func (*Reader) ObjectArray ¶
ObjectArray read variable length array of arbitrary objects
func (*Reader) StringArray ¶
StringArray read array of strings
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer manages the writing of the output
func (*Writer) Float32Array ¶
Float32Array will encode variable length array of float32 values
func (*Writer) Float64Array ¶
Float64Array will encode variable length array of float64 values
func (*Writer) Int64 ¶
Int64 will encode int 64 bit value (-9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807)
func (*Writer) Object ¶
Object will encode an arbitrary object represented as variable length byte array
func (*Writer) ObjectArray ¶
ObjectArray will encode variable length array of arbitrary objects
func (*Writer) Reset ¶
func (w *Writer) Reset()
Reset will reset the underlying bytes of the Encoder
func (*Writer) StringArray ¶
StringArray will encode variable length array of strings
func (*Writer) Uint64 ¶
Uint64 will encode unsigned int 64 bits value (0 .. 18,446,744,073,709,551,615)