utils

package
v0.0.0-...-2cf7c70 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-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 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

func (*VmReader) ReadInt16

func (r *VmReader) ReadInt16() int16

func (*VmReader) ReadInt32

func (r *VmReader) ReadInt32() int32

func (*VmReader) ReadUInt32

func (r *VmReader) ReadUInt32() uint32

func (*VmReader) ReadUInt64

func (r *VmReader) ReadUInt64() uint64

func (*VmReader) ReadUint16

func (r *VmReader) ReadUint16() uint16

func (*VmReader) ReadVarBytes

func (r *VmReader) ReadVarBytes(max int) []byte

func (*VmReader) ReadVarInt

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

func (*VmReader) ReadVarString

func (r *VmReader) ReadVarString() string

func (*VmReader) Reader

func (r *VmReader) Reader() *bytes.Reader

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