Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockOrigin ¶
func (*BlockOrigin) GetSize ¶
func (bo *BlockOrigin) GetSize() int64
type Composition ¶
func (*Composition) Append ¶
func (comp *Composition) Append(origin Origin)
func (*Composition) String ¶
func (comp *Composition) String() string
type CompositionListener ¶
type CompositionListener func(comp *Composition)
type FreshOrigin ¶
type FreshOrigin struct {
Size int64
}
func (*FreshOrigin) GetSize ¶
func (fo *FreshOrigin) GetSize() int64
type Genie ¶
type Genie struct { BlockSize int64 PatchWire *wire.ReadContext TargetContainer *tlc.Container SourceContainer *tlc.Container }
A Genie analyzes a patch to figure out which parts of the target container are used to build individual blocks of the source container.
func (*Genie) ParseContents ¶
func (g *Genie) ParseContents(onComp CompositionListener) error
ParseContents sends a Composition for each block of the source container
func (*Genie) ParseHeader ¶
func (g *Genie) ParseHeader(patchReader savior.SeekSource) error
ParseHeader is the first step of the genie's operation - it reads both containers, leaving the caller a chance to use them later, when parsing the contents
Click to show internal directories.
Click to hide internal directories.