binary

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MPL-2.0 Imports: 3 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 {
	Order binary.ByteOrder
	Src   io.Reader
	Index int
	Err   error
	// contains filtered or unexported fields
}

func (*Reader) Read

func (br *Reader) Read(n int) (ok bool)

func (*Reader) ReadBits

func (br *Reader) ReadBits(i *uint8) (ok bool)

func (*Reader) ReadInt16

func (br *Reader) ReadInt16(i *int) (ok bool)

func (*Reader) ReadNullString

func (br *Reader) ReadNullString(s *string, max int) (ok bool)

func (*Reader) ReadRune

func (br *Reader) ReadRune(r *rune) (ok bool)

func (*Reader) ReadString

func (br *Reader) ReadString(s *string, c int) (ok bool)

func (*Reader) ReadUInt8

func (br *Reader) ReadUInt8(i *int) (ok bool)

func (*Reader) ReadUInt16

func (br *Reader) ReadUInt16(i *int) (ok bool)

func (*Reader) ReadUInt32

func (br *Reader) ReadUInt32(i *int) (ok bool)

type Writer

type Writer struct {
	Order binary.ByteOrder
	Dst   io.Writer
	Err   error
}

func (*Writer) Write

func (bw *Writer) Write(p []byte) (ok bool)

func (*Writer) WriteBits

func (bw *Writer) WriteBits(b uint8) (ok bool)

func (*Writer) WriteInt8

func (bw *Writer) WriteInt8(i int8) (ok bool)

func (*Writer) WriteInt16

func (bw *Writer) WriteInt16(i int16) (ok bool)

func (*Writer) WriteInt32

func (bw *Writer) WriteInt32(i int32) (ok bool)

func (*Writer) WriteNullString

func (bw *Writer) WriteNullString(s string) (ok bool)

func (*Writer) WriteString

func (bw *Writer) WriteString(s string) (ok bool)

func (*Writer) WriteUInt8

func (bw *Writer) WriteUInt8(i uint8) (ok bool)

func (*Writer) WriteUInt16

func (bw *Writer) WriteUInt16(i uint16) (ok bool)

func (*Writer) WriteUInt32

func (bw *Writer) WriteUInt32(i uint32) (ok bool)

Jump to

Keyboard shortcuts

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