buffer

package
v0.40.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferIterator

type BufferIterator struct {
	// contains filtered or unexported fields
}

func (*BufferIterator) AsReader

func (itr *BufferIterator) AsReader() io.Reader

func (*BufferIterator) FlushTo

func (itr *BufferIterator) FlushTo(wr io.Writer) error

func (*BufferIterator) Next

func (itr *BufferIterator) Next() ([]byte, error)

func (*BufferIterator) NumBlocks

func (itr *BufferIterator) NumBlocks() int

type DynamicBuffer

type DynamicBuffer struct {
	// contains filtered or unexported fields
}

func New

func New(blockSize int) *DynamicBuffer

func (*DynamicBuffer) Append

func (buf *DynamicBuffer) Append(bytes []byte)

func (*DynamicBuffer) Close

func (buf *DynamicBuffer) Close() *BufferIterator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL