parser

package
v0.0.0-...-1c28861 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataParser

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

func NewParser

func NewParser(data, dataLen uintptr) (*DataParser, error)

NewParser takes a pointer to the data and the length of the data and returns a DataParser object

func (*DataParser) GetData

func (dp *DataParser) GetData() ([]byte, error)

GetData returns a slice of bytes. The underlying data could be a string, a file, etc.

func (*DataParser) GetDataLength

func (dp *DataParser) GetDataLength() int

GetDataLength returns the remaining length of unparsed data

func (*DataParser) GetInt

func (dp *DataParser) GetInt() (uint32, error)

GetInt returns a uint32 from the DataParser

func (*DataParser) GetShort

func (dp *DataParser) GetShort() (uint16, error)

GetShort returns a uint16 from the DataParser

func (*DataParser) GetString

func (dp *DataParser) GetString() (string, error)

func (*DataParser) GetWString

func (dp *DataParser) GetWString() (string, error)

type OutputBuffer

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

func NewOutBuffer

func NewOutBuffer(callback uintptr) *OutputBuffer

func (*OutputBuffer) Flush

func (o *OutputBuffer) Flush()

func (*OutputBuffer) SendError

func (o *OutputBuffer) SendError(err error)

func (*OutputBuffer) SendOutput

func (o *OutputBuffer) SendOutput(data string)

Jump to

Keyboard shortcuts

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