util

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes added in v0.5.20

func FromBytes(id int, positionX, positionY, width, height int, length int, data []byte) []byte

func FromBytesSigned added in v0.5.20

func FromBytesSigned(id uint32, positionX, positionY, width, height uint16, length uint32, data []byte) []byte

func FromRGBA added in v0.5.20

func FromRGBA(id uint32, positionX, positionY uint16, img *image.RGBA) []byte

func MapToStruct added in v0.5.20

func MapToStruct(in any, out any) error

func Uint16ToBytesBE added in v0.5.20

func Uint16ToBytesBE(value uint16) []byte

func Uint32ToBytesBE added in v0.5.20

func Uint32ToBytesBE(value uint32) []byte

func WaitingWithContext added in v0.5.20

func WaitingWithContext[T any](ctx context.Context, ch chan T) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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