chunk_encoding

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteChunk

func WriteChunk(w io.Writer, buf []byte, t DataType) error

writeChunk writes a chunk to the writer.

Types

type DataType

type DataType int
const (
	ChunkDataType   DataType = 0
	PointerDataType DataType = 1
)

func ReadChunk

func ReadChunk(r io.Reader, out io.Writer) (t DataType, err error)

func ReadChunkToBytes

func ReadChunkToBytes(r io.Reader) (b []byte, t DataType, err error)

Jump to

Keyboard shortcuts

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