jreader

package
v1.2.6-sp5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntTo2Bytes

func IntTo2Bytes(i int) []byte

func IntTo4Bytes

func IntTo4Bytes(i int) []byte

func IntToByte

func IntToByte(i int) []byte

func LoadUTFString

func LoadUTFString(r io.Reader) (string, error)

func MarshalBlockDataByte

func MarshalBlockDataByte(data []byte) []byte

func MarshalBlockDataBytes

func MarshalBlockDataBytes(data []byte) []byte

func MarshalUTFString

func MarshalUTFString(str string) []byte

func Read2ByteToInt

func Read2ByteToInt(r io.Reader) (int, error)

func Read4ByteToInt

func Read4ByteToInt(r io.Reader) (int, error)

func Read4ByteToUint64

func Read4ByteToUint64(r io.Reader) (uint64, error)

func Read8BytesToUint64

func Read8BytesToUint64(r io.Reader) (uint64, error)

func ReadByteToInt

func ReadByteToInt(r io.Reader) (int, error)

func ReadBytesLength

func ReadBytesLength(r io.Reader, length uint64) ([]byte, error)

utils method

func ReadBytesLengthInt

func ReadBytesLengthInt(r io.Reader, length int) ([]byte, error)

func Uint64To4Bytes

func Uint64To4Bytes(i uint64) []byte

func Uint64To8Bytes

func Uint64To8Bytes(i uint64) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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