Documentation ¶
Overview ¶
Package linear implements ClonedBuffer and SharedBuffer.
Index ¶
- Constants
- type Buffer
- func (b *Buffer) BlockPopulated(index int)
- func (b *Buffer) BlocksPopulated(index, count int)
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Close() (err error)
- func (b *Buffer) Closed() <-chan struct{}
- func (b *Buffer) Len() int
- func (b *Buffer) PopulationFinished()
- func (b *Buffer) ReadAt(target []byte, sourceOffset int64) (n int, err error)
- func (b *Buffer) WriteAt(source []byte, targetOffset int64) (n int, err error)
Constants ¶
View Source
const BlockSize = 131072
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) BlockPopulated ¶
BlockPopulated marks a 128 kB block as available for reading.
func (*Buffer) BlocksPopulated ¶
BlocksPopulated marks adjacent 128 kB blocks as available for reading.
func (*Buffer) PopulationFinished ¶
func (b *Buffer) PopulationFinished()
PopulationFinished indicates that no more blocks will become available, either because all have been populated, or due to cancellation or error.
Click to show internal directories.
Click to hide internal directories.