buffer

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintAsHex

func PrintAsHex(w io.Writer, data []byte, begin, end int)

Types

type ByteBuffer

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

func NewByteBuffer

func NewByteBuffer(buf []byte) *ByteBuffer

func (*ByteBuffer) Alloc

func (this *ByteBuffer) Alloc(size int)

func (*ByteBuffer) Bytes

func (this *ByteBuffer) Bytes() []byte

func (*ByteBuffer) Len

func (this *ByteBuffer) Len() int

func (*ByteBuffer) Print

func (this *ByteBuffer) Print(args ...interface{})

func (*ByteBuffer) PrintAsHex

func (this *ByteBuffer) PrintAsHex(w Writer, begin, end int)

func (*ByteBuffer) Printf

func (this *ByteBuffer) Printf(format string, args ...interface{})

func (*ByteBuffer) Printfln

func (this *ByteBuffer) Printfln(format string, args ...interface{})

func (*ByteBuffer) Println

func (this *ByteBuffer) Println(args ...interface{})

func (*ByteBuffer) Reset

func (this *ByteBuffer) Reset()

func (*ByteBuffer) String

func (this *ByteBuffer) String() string

func (*ByteBuffer) Write

func (this *ByteBuffer) Write(val []byte) (int, error)

func (*ByteBuffer) WriteByte

func (this *ByteBuffer) WriteByte(val byte) error

func (*ByteBuffer) WriteByteN

func (this *ByteBuffer) WriteByteN(val byte, num int) error

func (*ByteBuffer) WritePercentEscape

func (this *ByteBuffer) WritePercentEscape(val []byte, charset *[256]uint32, mask uint32) (int, error)

func (*ByteBuffer) WriteString

func (this *ByteBuffer) WriteString(val string) (int, error)

type Writer

type Writer interface {
	Write(val []byte) (int, error)
	WriteString(val string) (int, error)
	WriteByte(val byte) error
}

Jump to

Keyboard shortcuts

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