parsing

package
v0.0.0-...-79bc9d6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBytes

func ParseBytes(data []byte, idx int, length int) (int, []byte, error)

func ParseCString

func ParseCString(data []byte, idx int) (int, string, error)

func ParseInt16

func ParseInt16(data []byte, idx int) (int, int)

func ParseInt32

func ParseInt32(data []byte, idx int) (int, int)

Functions to parse from a byte slice

func ReadInt32

func ReadInt32(reader io.Reader) (int, error)

Functions to read from a reader

func WriteByte

func WriteByte(data []byte, idx int, value byte) int

func WriteByteSafe

func WriteByteSafe(data []byte, idx int, value byte) (int, []byte)

func WriteBytes

func WriteBytes(data []byte, idx int, value []byte) int

func WriteBytesSafe

func WriteBytesSafe(data []byte, idx int, value []byte) (int, []byte)

func WriteCString

func WriteCString(data []byte, idx int, value string) int

func WriteCStringSafe

func WriteCStringSafe(data []byte, idx int, value string) (int, []byte)

func WriteInt16

func WriteInt16(data []byte, idx int, value int) int

func WriteInt16Safe

func WriteInt16Safe(data []byte, idx int, value int) (int, []byte)

func WriteInt32

func WriteInt32(data []byte, idx int, value int) int

func WriteInt32Safe

func WriteInt32Safe(data []byte, idx int, value int) (int, []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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