wire

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package wire encodes portable backend records for remote storage. The private GCH version-1 envelope has a 21-byte header with big-endian signed Unix-nanosecond bit patterns and an optional negative flag, followed by payload. Decode returns copied bytes; no compression or total heap limit is supplied.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(encoded []byte, maxSize int) (cache.Record, error)

Decode validates and deserializes one bounded record envelope.

func Encode

func Encode(record cache.Record, maxSize int) ([]byte, error)

Encode validates and serializes record within maxSize.

Types

This section is empty.

Jump to

Keyboard shortcuts

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