dataconv

package
v0.0.0-...-b0deb01 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fill

func Fill(w io.Writer, v byte, l int)

Fills with a given byte

func GetUint16

func GetUint16(buf []byte) uint16

func GetUint32

func GetUint32(buf []byte) uint32

func NullString

func NullString(buf []byte) string

func Pad

func Pad(w io.Writer, l int)

Writes zero-padding

func PutBool

func PutBool(w io.Writer, v bool)

Writes a boolean value

func PutByte

func PutByte(w io.Writer, v byte)

Writes a single byte

func PutString

func PutString(w io.Writer, s string)

Writes a null-terminated string

func PutStringN

func PutStringN(w io.Writer, s string, n int)

Writes a fixed-length string

func PutStringNWithNull

func PutStringNWithNull(w io.Writer, s string, n int)

Writes a fixed-length string that always ends with a null

func PutUTF16LEString

func PutUTF16LEString(w io.Writer, s string)

Writes a null-terminated UTF16 string in Little Endian format

func PutUTF16LEStringN

func PutUTF16LEStringN(w io.Writer, s string, n int)

Writes a UTF16 string in Little Endian format with no terminator

func PutUTF16String

func PutUTF16String(w io.Writer, s string)

Writes a null-terminated UTF16 string in Big Endian format

func PutUTF16StringN

func PutUTF16StringN(w io.Writer, s string, n int)

Writes a UTF16 string in Big Endian format with no terminator

func PutUint16

func PutUint16(w io.Writer, v uint16)

Writes a 16-bit numeric value

func PutUint32

func PutUint32(w io.Writer, v uint32)

Writes a 32-bit numeric value

func UTF16String

func UTF16String(b []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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