cbor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

cbor handling parallel to the json package

Index

Constants

View Source
const (
	CborMap   = CborType(0xA0)
	CborArray = CborType(0x80)
)

Variables

This section is empty.

Functions

func IsArray

func IsArray(bytes []byte) bool

func IsMap

func IsMap(bytes []byte) bool

func Marshal

func Marshal(v interface{}) ([]byte, error)

func NewDecoder

func NewDecoder(r io.Reader) *codec.Decoder

func NewDecoderBytes

func NewDecoderBytes(data []byte) *codec.Decoder

func NewEncoder

func NewEncoder(w io.Writer) *codec.Encoder

func NewEncoderBytes

func NewEncoderBytes(out *[]byte) *codec.Encoder

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Types

type CborType

type CborType byte

func MajorType

func MajorType(data byte) CborType

Jump to

Keyboard shortcuts

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