cborcodec

package
v3.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cborcodec centralizes the CBOR policy used by HTTP handlers and Lua helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeReader

func DecodeReader(r io.Reader, v any) error

DecodeReader reads a bounded CBOR payload from r and decodes it into v.

func DecodeReaderLimit

func DecodeReaderLimit(r io.Reader, v any, limit int64) error

DecodeReaderLimit reads at most limit bytes plus one sentinel byte from r and decodes v.

func Marshal

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

Marshal encodes v as deterministic CBOR using the shared Nauthilus CBOR policy.

func Unmarshal

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

Unmarshal decodes CBOR data into v using the shared Nauthilus CBOR policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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