Documentation ¶
Index ¶
- Variables
- type MemoryConstrainedBuffer
- func (m *MemoryConstrainedBuffer) Close() error
- func (m *MemoryConstrainedBuffer) Len() int64
- func (m *MemoryConstrainedBuffer) Read(p []byte) (int, error)
- func (m *MemoryConstrainedBuffer) ReadAt(p []byte, off int64) (int, error)
- func (m *MemoryConstrainedBuffer) ReadFrom(r io.Reader) (int64, error)
- func (m *MemoryConstrainedBuffer) Remove() (err error)
- func (m *MemoryConstrainedBuffer) Seek(offset int64, whence int) (int64, error)
- func (m *MemoryConstrainedBuffer) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultMemorySize int64 = 1 << 17 // 128K FilenamePrefix = "mem-buf-" TempDir = os.TempDir() )
Functions ¶
This section is empty.
Types ¶
type MemoryConstrainedBuffer ¶
type MemoryConstrainedBuffer struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MemoryConstrainedBuffer
func NewWithSize ¶
func NewWithSize(maxMemory int64, removeOnClose bool) *MemoryConstrainedBuffer
func (*MemoryConstrainedBuffer) Close ¶
func (m *MemoryConstrainedBuffer) Close() error
func (*MemoryConstrainedBuffer) Len ¶
func (m *MemoryConstrainedBuffer) Len() int64
func (*MemoryConstrainedBuffer) Read ¶
func (m *MemoryConstrainedBuffer) Read(p []byte) (int, error)
func (*MemoryConstrainedBuffer) ReadAt ¶
func (m *MemoryConstrainedBuffer) ReadAt(p []byte, off int64) (int, error)
func (*MemoryConstrainedBuffer) ReadFrom ¶
func (m *MemoryConstrainedBuffer) ReadFrom(r io.Reader) (int64, error)
func (*MemoryConstrainedBuffer) Remove ¶
func (m *MemoryConstrainedBuffer) Remove() (err error)
Click to show internal directories.
Click to hide internal directories.