Documentation ¶
Index ¶
- type ChunkBuffer
- func (c *ChunkBuffer) Close() error
- func (c *ChunkBuffer) Len() int
- func (c *ChunkBuffer) Read(p []byte) (int, error)
- func (c *ChunkBuffer) Reset()
- func (c *ChunkBuffer) Seek(offset int64, whence int) (int64, error)
- func (c *ChunkBuffer) Write(p []byte) (int, error)
- func (c *ChunkBuffer) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkBuffer ¶
type ChunkBuffer struct {
// contains filtered or unexported fields
}
ChunkBuffer represents a custom buffer struct with Read/Write and Seek support.
func NewChunkBuffer ¶
func NewChunkBuffer(data []byte) *ChunkBuffer
NewChunkBuffer returns a ChunkBuffer with the given data. if data is nil a ChunkBuffer with 64k is returned. Note that chunkbuf will take over ownership over the buf.
func (*ChunkBuffer) Close ¶
func (c *ChunkBuffer) Close() error
Close is a no-op only existing to fulfill io.Closer
func (*ChunkBuffer) Len ¶
func (c *ChunkBuffer) Len() int
Len tells you the current size of the buffer contents
Click to show internal directories.
Click to hide internal directories.