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)
Click to show internal directories.
Click to hide internal directories.