binary

package
v0.0.0-...-e6fb8a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
}

func NewReader

func NewReader(input io.Reader) *Reader

func (*Reader) Bool

func (reader *Reader) Bool() (bool, error)

func (*Reader) Bytes

func (reader *Reader) Bytes(ln int) ([]byte, error)

func (*Reader) Float32

func (reader *Reader) Float32() (float32, error)

func (*Reader) Float64

func (reader *Reader) Float64() (float64, error)

func (*Reader) Int32

func (reader *Reader) Int32() (int32, error)

func (*Reader) Int64

func (reader *Reader) Int64() (int64, error)

func (*Reader) Int8

func (reader *Reader) Int8() (int8, error)

func (*Reader) ReadByte

func (reader *Reader) ReadByte() (byte, error)

func (*Reader) String

func (reader *Reader) String() (string, error)

func (*Reader) UInt32

func (reader *Reader) UInt32() (uint32, error)

func (*Reader) UInt64

func (reader *Reader) UInt64() (uint64, error)

func (*Reader) UInt8

func (reader *Reader) UInt8() (uint8, error)

func (*Reader) Uvarint

func (reader *Reader) Uvarint() (uint64, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Bool

func (writer *Writer) Bool(v bool) error

func (*Writer) Bytes

func (writer *Writer) Bytes(str []byte) error

func (*Writer) Float32

func (writer *Writer) Float32(v float32) error

func (*Writer) Float64

func (writer *Writer) Float64(v float64) error

func (*Writer) Flush

func (writer *Writer) Flush() error

func (*Writer) Int32

func (writer *Writer) Int32(v int32) error

func (*Writer) Int64

func (writer *Writer) Int64(v int64) error

func (*Writer) Int8

func (writer *Writer) Int8(v int8) error

func (*Writer) String

func (writer *Writer) String(v string) error

func (*Writer) UInt32

func (writer *Writer) UInt32(v uint32) error

func (*Writer) UInt64

func (writer *Writer) UInt64(v uint64) error

func (*Writer) UInt8

func (writer *Writer) UInt8(v uint8) error

func (*Writer) Uvarint

func (writer *Writer) Uvarint(v uint64) error

func (*Writer) Write

func (writer *Writer) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL