buffer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 Writer

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

Writer writes data into a buffer

func NewBufferWriter

func NewBufferWriter(buf *bytes.Buffer) *Writer

func (*Writer) Bytes

func (w *Writer) Bytes() []byte

func (*Writer) Len

func (w *Writer) Len() int

func (*Writer) PutUint16

func (w *Writer) PutUint16(v uint16)

func (*Writer) PutUint32

func (w *Writer) PutUint32(v uint32)

func (*Writer) PutUint64

func (w *Writer) PutUint64(v uint64)

func (*Writer) Reset

func (w *Writer) Reset()

func (*Writer) Write

func (w *Writer) Write(p []byte)

func (*Writer) WriteTo

func (w *Writer) WriteTo(other *Writer) (n int64)

Jump to

Keyboard shortcuts

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