v1

package
v0.0.0-...-22113b6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Encoding = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectDecoder

type ObjectDecoder struct {
	SegmentDecoder
}

func NewObjectDecoder

func NewObjectDecoder() *ObjectDecoder

func (*ObjectDecoder) FastRange

func (o *ObjectDecoder) FastRange(obj []byte) (uint32, error)

func (*ObjectDecoder) PrepareForRead

func (o *ObjectDecoder) PrepareForRead(obj []byte) (*deep_tp.Snapshot, error)

type SegmentDecoder

type SegmentDecoder struct{}

func NewSegmentDecoder

func NewSegmentDecoder() *SegmentDecoder

NewSegmentDecoder() returns a v1 segment decoder.

func (*SegmentDecoder) FastRange

func (s *SegmentDecoder) FastRange(segment []byte) (uint32, error)

func (*SegmentDecoder) PrepareForRead

func (s *SegmentDecoder) PrepareForRead(segment []byte) (*deeptp.Snapshot, error)

func (*SegmentDecoder) PrepareForWrite

func (s *SegmentDecoder) PrepareForWrite(snapshot *deeptp.Snapshot, start uint32) ([]byte, error)

func (*SegmentDecoder) ToObject

func (s *SegmentDecoder) ToObject(segment []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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