utils

package
v1.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VmReader

type VmReader struct {
	BaseStream []byte
	// contains filtered or unexported fields
}

func NewVmReader

func NewVmReader(b []byte) *VmReader

func (*VmReader) Length

func (r *VmReader) Length() int

func (*VmReader) Position

func (r *VmReader) Position() int

func (*VmReader) ReadByte

func (r *VmReader) ReadByte() (byte, error)

func (*VmReader) ReadBytes

func (r *VmReader) ReadBytes(count int) ([]byte, error)

func (*VmReader) ReadBytesInto added in v1.5.1

func (r *VmReader) ReadBytesInto(b []byte) error

func (*VmReader) ReadInt16

func (r *VmReader) ReadInt16() (int16, error)

func (*VmReader) ReadInt32

func (r *VmReader) ReadInt32() (int32, error)

func (*VmReader) ReadUint16

func (r *VmReader) ReadUint16() (uint16, error)

func (*VmReader) ReadUint32 added in v1.5.1

func (r *VmReader) ReadUint32() (uint32, error)

func (*VmReader) ReadUint64 added in v1.5.1

func (r *VmReader) ReadUint64() (uint64, error)

func (*VmReader) ReadVarBytes

func (r *VmReader) ReadVarBytes(max uint32) ([]byte, error)

func (*VmReader) ReadVarInt

func (r *VmReader) ReadVarInt(max uint64) (uint64, error)

func (*VmReader) ReadVarString

func (r *VmReader) ReadVarString(maxlen uint32) (string, error)

func (*VmReader) Seek

func (r *VmReader) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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