Documentation ¶
Overview ¶
Package compressedbuffer implements a compressed, in-memory, random-access buffer, similar to bytes.Buffer.
Index ¶
Constants ¶
View Source
const (
BlockSize = 4096
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
A Buffer is a variable-sized buffer, with Write and ReadAt methods (Read can be done using io.SectionReader). The zero value for Buffer is an empty buffer ready to use. Buffer contains internal synchronisation, allowing for concurrent use.
func (*Buffer) CompressedSize ¶
Click to show internal directories.
Click to hide internal directories.