encoding

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package encoding defines types that deal with document encoding. Genji codecs are designed to support buffer reuse during encoding and optional random-access, i.e. decoding one path without decoding the entire document, during decoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec added in v0.8.0

type Codec interface {
	EncodeValue(io.Writer, types.Value) error
	DecodeValue([]byte) (types.Value, error)
}

A Codec is able to create encoders and decoders for a specific encoding format.

Directories

Path Synopsis
Package encodingtest provides a test suite for testing codec implementations.
Package encodingtest provides a test suite for testing codec implementations.

Jump to

Keyboard shortcuts

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