writebuffer

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const InitialSize = 256 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type WriteBuffer

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

func New

func New(initSize int) *WriteBuffer

func (*WriteBuffer) Bytes

func (wb *WriteBuffer) Bytes() []byte

func (*WriteBuffer) Reset added in v1.2.2

func (wb *WriteBuffer) Reset()

func (*WriteBuffer) Write

func (wb *WriteBuffer) Write(data []byte) (int, error)

func (*WriteBuffer) WriteTo

func (wb *WriteBuffer) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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