Documentation ¶
Index ¶
Constants ¶
View Source
const EOF = uint16(0x0000)
EOF is the end-of-file marker value for the size.
View Source
const MaxChunkSize = math.MaxUint16
MaxChunkSize is the largest allowable chunk size (64KB).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader wraps a stream of chunks and converts it into an io.Reader. This is useful for byte streams where the size is not known beforehand.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer wraps an io.Writer to convert it to a chunked byte stream. This is useful for byte streams where the size is not known beforehand.
Click to show internal directories.
Click to hide internal directories.