Documentation ¶
Overview ¶
Package idxfile implements a encoder/decoder of idx files
Index ¶
Constants ¶
View Source
const (
// VersionSupported is the only idx version supported.
VersionSupported = 2
)
Variables ¶
View Source
var ( // ErrUnsupportedVersion is returned by Decode when the idx file version // is not supported. ErrUnsupportedVersion = errors.New("Unsuported version") // ErrMalformedIdxFile is returned by Decode when the idx file is corrupted. ErrMalformedIdxFile = errors.New("Malformed IDX file") )
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
A Decoder reads and decodes idx files from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
type Encoder ¶
An Encoder writes idx files to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
type Entry ¶
An Entry represents data about an object in the packfile: its hash, offset and CRC32 checksum.
Click to show internal directories.
Click to hide internal directories.