Documentation
¶
Index ¶
Constants ¶
View Source
const ( RefSize = 32 KeySize = 32 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ref ¶
func Encode1KiB ¶
Encode1KiB encodes bytes from the given Reader into 1 kibibyte blocks, emitting the blocks to the WriteFunc as data is streamed in from the Reader. This allows encoding arbitrarily large data in-memory.
Returns the root reference block.
func Encode32KiB ¶
Encode32KiB encodes bytes from the given Reader into 32 kibibyte blocks, emitting the blocks to the WriteFunc as data is streamed in from the Reader. This allows encoding arbitrarily large data in-memory.
Returns the root reference block.
Click to show internal directories.
Click to hide internal directories.