binary

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	Buffer []byte
	Offset int
}

func NewStream

func NewStream(Buffer []byte) *Stream

func (*Stream) PutBool

func (s *Stream) PutBool(b bool)

func (*Stream) PutFloat32

func (s *Stream) PutFloat32(f float32)

func (*Stream) PutFloat64

func (s *Stream) PutFloat64(f float64)

func (*Stream) PutInt16

func (s *Stream) PutInt16(i int16)

func (*Stream) PutInt32

func (s *Stream) PutInt32(i int32)

func (*Stream) PutInt64

func (s *Stream) PutInt64(i int64)

func (*Stream) PutInt8

func (s *Stream) PutInt8(i int8)

func (*Stream) PutString

func (s *Stream) PutString(st string)

func (*Stream) PutUInt16

func (s *Stream) PutUInt16(i uint16)

func (*Stream) PutUInt32

func (s *Stream) PutUInt32(i uint32)

func (*Stream) PutUInt64

func (s *Stream) PutUInt64(i uint64)

func (*Stream) PutUInt8

func (s *Stream) PutUInt8(i uint8)

func (*Stream) ReadBool

func (s *Stream) ReadBool() bool

func (*Stream) ReadFloat32

func (s *Stream) ReadFloat32() float32

func (*Stream) ReadFloat64

func (s *Stream) ReadFloat64() float64

func (*Stream) ReadInt16

func (s *Stream) ReadInt16() int16

func (*Stream) ReadInt32

func (s *Stream) ReadInt32() int32

func (*Stream) ReadInt64

func (s *Stream) ReadInt64() int64

func (*Stream) ReadInt8

func (s *Stream) ReadInt8() int8

func (*Stream) ReadString added in v0.1.1

func (s *Stream) ReadString() string

func (*Stream) ReadUInt16

func (s *Stream) ReadUInt16() uint16

func (*Stream) ReadUInt32

func (s *Stream) ReadUInt32() uint32

func (*Stream) ReadUInt64

func (s *Stream) ReadUInt64() uint64

func (*Stream) ReadUInt8

func (s *Stream) ReadUInt8() uint8

Jump to

Keyboard shortcuts

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