Versions in this module Expand all Collapse all v0 v0.3.0 Sep 22, 2023 v0.1.0 Mar 21, 2023 Changes in this version + var ErrInvalidMemorySize = errors.New("Memory size must be greater 0 and lower math.MaxInt32") + var ErrWriteAfterRead = errors.New("Write is unsupported after a read operation") + type FileBackedBuffer struct + func CreateFromReader(r io.Reader, maxMemorySize int) (*FileBackedBuffer, error) + func New(maxMemorySize int) (*FileBackedBuffer, error) + func (b *FileBackedBuffer) Close() error + func (b *FileBackedBuffer) Read(p []byte) (int, error) + func (b *FileBackedBuffer) ReadAt(p []byte, off int64) (int, error) + func (b *FileBackedBuffer) Seek(offset int64, whence int) (int64, error) + func (b *FileBackedBuffer) Size() int64 + func (b *FileBackedBuffer) Write(p []byte) (int, error)