Versions in this module Expand all Collapse all v1 v1.4.6 Jun 12, 2021 Changes in this version + const BlockMaxSize + const ChecksumSize + const CompressHeaderSize + const HeaderSize + const LZ4 + const NONE + const ZSTD + func NewCompressReader(r io.Reader) *compressReader + func NewCompressWriter(w io.Writer) *compressWriter + func Str2Bytes(str string) []byte + type CompressionMethodByte byte + type Decoder struct + func NewDecoder(input io.Reader) *Decoder + func NewDecoderWithCompress(input io.Reader) *Decoder + func (decoder *Decoder) Bool() (bool, error) + func (decoder *Decoder) Fixed(ln int) ([]byte, error) + func (decoder *Decoder) Float32() (float32, error) + func (decoder *Decoder) Float64() (float64, error) + func (decoder *Decoder) Get() io.Reader + func (decoder *Decoder) Int16() (int16, error) + func (decoder *Decoder) Int32() (int32, error) + func (decoder *Decoder) Int64() (int64, error) + func (decoder *Decoder) Int8() (int8, error) + func (decoder *Decoder) ReadByte() (byte, error) + func (decoder *Decoder) SelectCompress(compress bool) + func (decoder *Decoder) String() (string, error) + func (decoder *Decoder) UInt16() (uint16, error) + func (decoder *Decoder) UInt32() (uint32, error) + func (decoder *Decoder) UInt64() (uint64, error) + func (decoder *Decoder) UInt8() (uint8, error) + func (decoder *Decoder) Uvarint() (uint64, error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func NewEncoderWithCompress(w io.Writer) *Encoder + func (enc *Encoder) Bool(v bool) error + func (enc *Encoder) BoolNullable(v *bool) error + func (enc *Encoder) Float32(v float32) error + func (enc *Encoder) Float32Nullable(v *float32) error + func (enc *Encoder) Float64(v float64) error + func (enc *Encoder) Float64Nullable(v *float64) error + func (enc *Encoder) Flush() error + func (enc *Encoder) Get() io.Writer + func (enc *Encoder) Int16(v int16) error + func (enc *Encoder) Int16Nullable(v *int16) error + func (enc *Encoder) Int32(v int32) error + func (enc *Encoder) Int32Nullable(v *int32) error + func (enc *Encoder) Int64(v int64) error + func (enc *Encoder) Int64Nullable(v *int64) error + func (enc *Encoder) Int8(v int8) error + func (enc *Encoder) Int8Nullable(v *int8) error + func (enc *Encoder) Nullable(isNull bool) error + func (enc *Encoder) RawString(str []byte) error + func (enc *Encoder) RawStringNullable(str *[]byte) error + func (enc *Encoder) SelectCompress(compress bool) + func (enc *Encoder) String(v string) error + func (enc *Encoder) StringNullable(v *string) error + func (enc *Encoder) UInt16(v uint16) error + func (enc *Encoder) UInt16Nullable(v *uint16) error + func (enc *Encoder) UInt32(v uint32) error + func (enc *Encoder) UInt32Nullable(v *uint32) error + func (enc *Encoder) UInt64(v uint64) error + func (enc *Encoder) UInt64Nullable(v *uint64) error + func (enc *Encoder) UInt8(v uint8) error + func (enc *Encoder) UInt8Nullable(v *uint8) error + func (enc *Encoder) Uvarint(v uint64) error + func (enc *Encoder) UvarintNullable(v *uint64) error + func (enc *Encoder) Write(b []byte) (int, error) + type FixedReader interface + Fixed func(ln int) ([]byte, error) + type WriteFlusher interface + Flush func() error