Documentation
¶
Overview ¶
Package packed provides packfile reading and associated indexes.
Index ¶
- type Store
- func (store *Store) Close() error
- func (store *Store) ReadBytesContent(id objectid.ObjectID) (objecttype.Type, []byte, error)
- func (store *Store) ReadBytesFull(id objectid.ObjectID) ([]byte, error)
- func (store *Store) ReadHeader(id objectid.ObjectID) (objecttype.Type, int64, error)
- func (store *Store) ReadReaderContent(id objectid.ObjectID) (objecttype.Type, int64, io.ReadCloser, error)
- func (store *Store) ReadReaderFull(id objectid.ObjectID) (io.ReadCloser, error)
- func (store *Store) ReadSize(id objectid.ObjectID) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store reads Git objects from pack/index files under an objects/pack root.
Store owns root and closes it in Close.
func (*Store) ReadBytesContent ¶
ReadBytesContent reads an object's type and content bytes.
func (*Store) ReadBytesFull ¶
ReadBytesFull reads a full serialized object as "type size\0content".
func (*Store) ReadHeader ¶
ReadHeader reads an object's type and declared content size.
func (*Store) ReadReaderContent ¶
func (store *Store) ReadReaderContent(id objectid.ObjectID) (objecttype.Type, int64, io.ReadCloser, error)
ReadReaderContent reads an object's type, declared content size, and content stream.
The caller must close the returned reader.
func (*Store) ReadReaderFull ¶
ReadReaderFull reads a full serialized object stream as "type size\0content".
The caller must close the returned reader.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.