fast

package
v1.0.2-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(bb []byte) *Reader

NewReader wraps bytes with reading buffer.

func (*Reader) Bytes

func (b *Reader) Bytes() []byte

Bytes of internal buffer

func (*Reader) Empty

func (b *Reader) Empty() bool

Empty returns true if the whole buffer is consumed

func (*Reader) Position

func (b *Reader) Position() int

Position of internal cursor.

func (*Reader) Read

func (b *Reader) Read(n int) []byte

Read n bytes.

func (*Reader) ReadByte

func (b *Reader) ReadByte() byte

ReadByte reads 1 byte.

type Writer

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

func NewWriter

func NewWriter(bb []byte) *Writer

NewWriter wraps bytes with writing buffer.

func (*Writer) Bytes

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

Bytes of internal buffer

func (*Writer) Write

func (b *Writer) Write(v []byte)

Write the byte to the buffer.

func (*Writer) WriteByte

func (b *Writer) WriteByte(v byte)

WriteByte to the buffer.

Jump to

Keyboard shortcuts

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