//
pkg.gl
Category
github.com/superfly/litefs
internal
chunk
package
0.5.11
Repository:
https://github.com/superfly/litefs.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
2
Files
100 SLOC
#
Functions
NewReader
NewReader implements an io.Reader from a chunked byte stream.
NewWriter
NewWriter implements an io.Writer from a chunked byte stream.
#
Constants
EOF
EOF is the end-of-file marker value for the size.
MaxChunkSize
MaxChunkSize is the largest allowable chunk size (64KB).
#
Structs
Reader
Reader wraps a stream of chunks and converts it into an io.Reader.
Writer
Writer wraps an io.Writer to convert it to a chunked byte stream.