Documentation ¶
Index ¶
Constants ¶
View Source
const MinRead = 512
MinRead is the minimum slice size passed to a Read call by Buffer.ReadFrom. As long as the Buffer has at least MinRead bytes beyond what is required to hold the contents of r, ReadFrom will not grow the underlying buffer.
Variables ¶
View Source
var ErrReadOnly = errors.New("diskbuffer.Buffer: mutating operation attempted on read only buffer")
View Source
var ErrTooLarge = errors.New("diskbuffer.Buffer: too large")
ErrTooLarge is passed to panic if memory cannot be allocated to store data in a buffer.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type ErrMaxSizeExceeded ¶
type ErrMaxSizeExceeded int64
ErrMaxSizeExceeded is returned when the maximum allowed buffer size is reached when writing
func (ErrMaxSizeExceeded) Error ¶
func (e ErrMaxSizeExceeded) Error() string
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
BrowserControllerOption configures BrowserController.
func WithMaxMemBytes ¶
func WithMaxTotalBytes ¶
func WithMemBufferSizeHint ¶
func WithTmpDir ¶
Click to show internal directories.
Click to hide internal directories.