encoding

package
v0.0.0-...-ae8c3b3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDecompressedSize = 16 << 20

MaxDecompressedSize is the upper bound on decompressed payload size (16 MB). This prevents a crafted LZ4 stream from causing unbounded memory allocation.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal serializes v as LZ4-compressed msgpack bytes.

func Unmarshal

func Unmarshal(data []byte, v any) error

Unmarshal decompresses LZ4-compressed msgpack bytes into v.

Types

This section is empty.

Jump to

Keyboard shortcuts

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