Documentation ¶
Index ¶
- func Chunk(params Params, data []byte) ([][]byte, int, error)
- func Decode(params Params, data [][]byte) ([]byte, error)
- func DecodeOnlyData(params Params, data [][]byte) ([]byte, error)
- func DeflateBlocks(data [][]byte) []byte
- func Encode(params Params, chunks [][]byte) ([][]byte, error)
- func InflateBlocks(data []byte, chunkSize int) [][]byte
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chunk ¶
Function that chunks the data into 1 shard of [][]byte and pads uneven shards with 0x00, shardSize is automatically calculated
func DeflateBlocks ¶
Function that goes over [][]byte and returns []byte
func InflateBlocks ¶
Function that goes over []byte and returns [][]byte splitting by chunkSize
Types ¶
Click to show internal directories.
Click to hide internal directories.