package binary
import "github.com/ClickHouse/clickhouse-go/lib/binary"
Index ¶
- func Str2Bytes(str string) []byte
- type Decoder
- func NewDecoder(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) 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) 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
- func NewEncoder(output io.Writer) *Encoder
- func (enc *Encoder) Bool(v bool) error
- func (enc *Encoder) Float32(v float32) error
- func (enc *Encoder) Float64(v float64) error
- func (enc *Encoder) Int16(v int16) error
- func (enc *Encoder) Int32(v int32) error
- func (enc *Encoder) Int64(v int64) error
- func (enc *Encoder) Int8(v int8) error
- func (enc *Encoder) RawString(str []byte) error
- func (enc *Encoder) String(v string) error
- func (enc *Encoder) UInt16(v uint16) error
- func (enc *Encoder) UInt32(v uint32) error
- func (enc *Encoder) UInt64(v uint64) error
- func (enc *Encoder) UInt8(v uint8) error
- func (enc *Encoder) Uvarint(v uint64) error
- func (enc *Encoder) Write(b []byte) (int, error)
- type FixedReader
Functions ¶
func Str2Bytes ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) Bool ¶
func (*Decoder) Fixed ¶
func (*Decoder) Float32 ¶
func (*Decoder) Float64 ¶
func (*Decoder) Int16 ¶
func (*Decoder) Int32 ¶
func (*Decoder) Int64 ¶
func (*Decoder) Int8 ¶
func (*Decoder) ReadByte ¶
func (*Decoder) String ¶
func (*Decoder) UInt16 ¶
func (*Decoder) UInt32 ¶
func (*Decoder) UInt64 ¶
func (*Decoder) UInt8 ¶
func (*Decoder) Uvarint ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) Bool ¶
func (*Encoder) Float32 ¶
func (*Encoder) Float64 ¶
func (*Encoder) Int16 ¶
func (*Encoder) Int32 ¶
func (*Encoder) Int64 ¶
func (*Encoder) Int8 ¶
func (*Encoder) RawString ¶
func (*Encoder) String ¶
func (*Encoder) UInt16 ¶
func (*Encoder) UInt32 ¶
func (*Encoder) UInt64 ¶
func (*Encoder) UInt8 ¶
func (*Encoder) Uvarint ¶
func (*Encoder) Write ¶
type FixedReader ¶
Source Files ¶
- Version
- v1.3.5
- Published
- Nov 16, 2018
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 37 minutes ago –
Tools for package owners.