Documentation ¶
Index ¶
- Constants
- Variables
- type AsyncHashBus
- type DataSource
- type Header
- func (h *Header) Cid() []byte
- func (h *Header) CidBase32() string
- func (h *Header) Content() (c *zcpstring.ZcpString)
- func (h *Header) DummyHashed() bool
- func (h *Header) EvictContent()
- func (h *Header) IsInlined() bool
- func (h *Header) IsSparse() bool
- func (h *Header) SizeBlock() int
- func (h *Header) SizeCumulativeDag() uint64
- func (h *Header) SizeCumulativePayload() uint64
- func (h *Header) SizeLinkSection() int
- func (h *Header) String() string
- type Maker
Constants ¶
View Source
const ( CodecRaw uint = 0x55 CodecPB uint = 0x70 )
Variables ¶
View Source
var AvailableHashers = map[string]hasher{ "none": { // contains filtered or unexported fields }, "sha2-256": { // contains filtered or unexported fields }, "sha3-512": { // contains filtered or unexported fields }, "blake2b-256": { // contains filtered or unexported fields }, "murmur3-128": { // contains filtered or unexported fields }, }
multihash ids come from https://github.com/multiformats/multicodec/blob/master/table.csv
Functions ¶
This section is empty.
Types ¶
type AsyncHashBus ¶
type AsyncHashBus chan<- hashTask
type DataSource ¶
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
func RawDataLeaf ¶
func RawDataLeaf(ds DataSource, bm Maker) *Header
func (*Header) DummyHashed ¶
func (*Header) EvictContent ¶
func (h *Header) EvictContent()
func (*Header) SizeCumulativeDag ¶
func (*Header) SizeCumulativePayload ¶
func (*Header) SizeLinkSection ¶
Click to show internal directories.
Click to hide internal directories.