hashgroup

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FLICPointerLimit int = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type HashGroup

type HashGroup struct {
	Pointers []SizedPointer
	// contains filtered or unexported fields
}

func CreateEmptyHashGroup

func CreateEmptyHashGroup() *HashGroup

func CreateFromTLV

func CreateFromTLV(topLevelTLV codec.TLV) (*HashGroup, error)

func (*HashGroup) AddPointer

func (h *HashGroup) AddPointer(p SizedPointer) bool

func (HashGroup) Children

func (g HashGroup) Children() []codec.TLV

func (HashGroup) Length

func (g HashGroup) Length() uint16

func (HashGroup) String

func (g HashGroup) String() string

func (HashGroup) Type

func (g HashGroup) Type() uint16

func (HashGroup) TypeString

func (g HashGroup) TypeString() string

func (HashGroup) Value

func (g HashGroup) Value() []byte

type HashGroupMetadata

type HashGroupMetadata struct {
	Locator           name.Name
	OverallByteCount  Size
	OverallDataDigest hash.Hash
}

type Size

type Size struct {
	// contains filtered or unexported fields
}

func CreateSize

func CreateSize(sizeType uint16, size uint64) Size

func (Size) Children

func (s Size) Children() []codec.TLV

func (Size) Length

func (s Size) Length() uint16

func (Size) String

func (s Size) String() string

func (Size) Type

func (s Size) Type() uint16

func (Size) TypeString

func (s Size) TypeString() string

func (Size) Value

func (s Size) Value() []byte

type SizedDataPointer

type SizedDataPointer struct {
	// contains filtered or unexported fields
}

func CreateSizedDataPointer

func CreateSizedDataPointer(size Size, ptrhash hash.Hash) *SizedDataPointer

func (SizedDataPointer) Children

func (p SizedDataPointer) Children() []codec.TLV

func (SizedDataPointer) GetPointer

func (p SizedDataPointer) GetPointer() hash.Hash

func (SizedDataPointer) GetPointerType

func (p SizedDataPointer) GetPointerType() uint16

func (SizedDataPointer) GetSize

func (p SizedDataPointer) GetSize() Size

func (SizedDataPointer) Length

func (p SizedDataPointer) Length() uint16

func (SizedDataPointer) String

func (p SizedDataPointer) String() string

func (SizedDataPointer) Type

func (p SizedDataPointer) Type() uint16

func (SizedDataPointer) TypeString

func (p SizedDataPointer) TypeString() string

func (SizedDataPointer) Value

func (p SizedDataPointer) Value() []byte

type SizedManifestPointer

type SizedManifestPointer struct {
	// contains filtered or unexported fields
}

func CreateSizedManifestPointer

func CreateSizedManifestPointer(size Size, ptrhash hash.Hash) *SizedManifestPointer

func (SizedManifestPointer) Children

func (p SizedManifestPointer) Children() []codec.TLV

func (SizedManifestPointer) GetPointer

func (p SizedManifestPointer) GetPointer() hash.Hash

func (SizedManifestPointer) GetPointerType

func (p SizedManifestPointer) GetPointerType() uint16

func (SizedManifestPointer) GetSize

func (p SizedManifestPointer) GetSize() Size

func (SizedManifestPointer) Length

func (p SizedManifestPointer) Length() uint16

func (SizedManifestPointer) String

func (p SizedManifestPointer) String() string

func (SizedManifestPointer) Type

func (p SizedManifestPointer) Type() uint16

func (SizedManifestPointer) TypeString

func (p SizedManifestPointer) TypeString() string

func (SizedManifestPointer) Value

func (p SizedManifestPointer) Value() []byte

type SizedPointer

type SizedPointer interface {
	GetPointerType() uint16
	GetSize() Size
	GetPointer() hash.Hash

	// TLV functions
	Type() uint16
	TypeString() string
	Value() []byte
	Length() uint16
	Children() []codec.TLV
	String() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL