Documentation ¶
Index ¶
- Constants
- type ObjectDecoder
- type SegmentDecoder
- func (s *SegmentDecoder) FastRange(segment []byte) (uint32, error)
- func (s *SegmentDecoder) PrepareForRead(segment []byte) (*deeptp.Snapshot, error)
- func (s *SegmentDecoder) PrepareForWrite(snapshot *deeptp.Snapshot, start uint32) ([]byte, error)
- func (s *SegmentDecoder) ToObject(segment []byte) ([]byte, error)
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.