bunsafe

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBytesToSmall = errors.New("insufficient data, given bytes are too small")

Functions

func MarshalString

func MarshalString(n int, b []byte, str string) int

func MarshalStringMD added in v1.0.4

func MarshalStringMD(n int, b []byte, str string) int

func UnmarshalString

func UnmarshalString(n int, b []byte) (int, string, error)

func UnmarshalStringMD added in v1.0.4

func UnmarshalStringMD(n int, b []byte) (int, string, error)

Types

type StringHeader added in v1.0.5

type StringHeader struct {
	Data *byte
	Len  int
}

Jump to

Keyboard shortcuts

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