Documentation ¶
Index ¶
- type AssetReaderFactory
- type Header
- func (a *Header) Compressed(storeSize int64) *Header
- func (a *Header) Digest() *[sha256.Size]byte
- func (a *Header) DigestReader() func() [sha256.Size]byte
- func (a *Header) IsCompressed() bool
- func (a *Header) LoadDigest(allW ...io.Writer) error
- func (a *Header) Marshal(w io.Writer) (err error)
- func (a *Header) Unmarshal(r io.Reader) (err error)
- type Headers
- func (headers Headers) Append(pth string, wrap ...func(w io.WriteCloser) io.WriteCloser) (err error)
- func (headers Headers) AppendGz(pth string) (err error)
- func (headers Headers) AppendW(w io.Writer) (err error)
- func (headers Headers) Assets(readerFactory AssetReaderFactory) (assets []xbcommon.Asset)
- func (headers Headers) EachAssets(readerFactory AssetReaderFactory, cb func(i int, asset xbcommon.Asset))
- func (headers Headers) Store(w io.Writer) (err error)
- func (headers Headers) StoreFile(pth string, wrap ...func(w io.WriteCloser) io.WriteCloser) (err error)
- func (headers Headers) StoreFileGz(pth string) (err error)
- type Outlined
- func (outlined *Outlined) Assets(readerFactory ...AssetReaderFactory) (assets []xbcommon.Asset)
- func (outlined *Outlined) AssetsMap(readerFactory ...AssetReaderFactory) (assets map[string]xbcommon.Asset)
- func (outlined *Outlined) EachAsset(cb func(i int, asset xbcommon.Asset), readerFactory ...AssetReaderFactory)
- func (outlined *Outlined) Read(r io.Reader) (err error)
- func (outlined *Outlined) ReadFile(pth string, ended ...bool) (err error)
- func (outlined *Outlined) ReaderFactory(start, size int64) func() (reader iocommon.ReadSeekCloser, err error)
- func (outlined *Outlined) Uncompress(pth string) (n int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetReaderFactory ¶
type Headers ¶
type Headers []*Header
func (Headers) Append ¶
func (headers Headers) Append(pth string, wrap ...func(w io.WriteCloser) io.WriteCloser) (err error)
func (Headers) Assets ¶
func (headers Headers) Assets(readerFactory AssetReaderFactory) (assets []xbcommon.Asset)
func (Headers) EachAssets ¶
func (headers Headers) EachAssets(readerFactory AssetReaderFactory, cb func(i int, asset xbcommon.Asset))
func (Headers) StoreFile ¶
func (headers Headers) StoreFile(pth string, wrap ...func(w io.WriteCloser) io.WriteCloser) (err error)
func (Headers) StoreFileGz ¶
type Outlined ¶
type Outlined struct { Headers Headers HeadersSize int64 Path string Len int Hash [sha256.Size]byte BuildDate time.Time StartPos int64 }
func (*Outlined) Assets ¶
func (outlined *Outlined) Assets(readerFactory ...AssetReaderFactory) (assets []xbcommon.Asset)
func (*Outlined) AssetsMap ¶
func (outlined *Outlined) AssetsMap(readerFactory ...AssetReaderFactory) (assets map[string]xbcommon.Asset)
func (*Outlined) EachAsset ¶
func (outlined *Outlined) EachAsset(cb func(i int, asset xbcommon.Asset), readerFactory ...AssetReaderFactory)
func (*Outlined) ReaderFactory ¶
Click to show internal directories.
Click to hide internal directories.