Versions in this module Expand all Collapse all v1 v1.0.21 Dec 12, 2023 v1.0.20 Dec 12, 2023 Changes in this version + var BigEndian = binary.BigEndian + var LittleEndian = binary.LittleEndian + func Marshal(v interface{}) (output []byte, err error) + func MarshalTo(v interface{}, dst io.Writer) (err error) + func ToBytes(v string) (b []byte) + func ToString(b *[]byte) string — darwin/amd64, linux/amd64, windows/amd64 + func Unmarshal(b []byte, v interface{}) (err error) + type Codec interface + DecodeTo func(*Decoder, reflect.Value) error + EncodeTo func(*Encoder, reflect.Value) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v interface{}) (err error) + func (d *Decoder) Read(b []byte) (int, error) + func (d *Decoder) ReadBool() (bool, error) + func (d *Decoder) ReadFloat32() (out float32, err error) + func (d *Decoder) ReadFloat64() (out float64, err error) + func (d *Decoder) ReadSlice() (b []byte, err error) + func (d *Decoder) ReadString() (out string, err error) + func (d *Decoder) ReadUint16() (out uint16, err error) + func (d *Decoder) ReadUint32() (out uint32, err error) + func (d *Decoder) ReadUint64() (out uint64, err error) + func (d *Decoder) ReadUvarint() (uint64, error) + func (d *Decoder) ReadVarint() (int64, error) + func (d *Decoder) Slice(n int) ([]byte, error) + type Encoder struct + func NewEncoder(out io.Writer) *Encoder + func (e *Encoder) Buffer() io.Writer + func (e *Encoder) Encode(v interface{}) (err error) + func (e *Encoder) Reset(out io.Writer) + func (e *Encoder) Write(p []byte) + func (e *Encoder) WriteFloat32(v float32) + func (e *Encoder) WriteFloat64(v float64) + func (e *Encoder) WriteString(v string) + func (e *Encoder) WriteUint16(v uint16) + func (e *Encoder) WriteUint32(v uint32) + func (e *Encoder) WriteUint64(v uint64) + func (e *Encoder) WriteUvarint(x uint64) + func (e *Encoder) WriteVarint(v int64) + type Reader interface