internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 Buffer

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

Buffer is a simplified version of bytes.Buffer that implements io.Seeker.

func (*Buffer) Bytes

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

Bytes returns the remaining bytes from the buffer.

func (*Buffer) Len

func (b *Buffer) Len() int

Len returns the number of remaining bytes from the buffer.

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (n int, err error)

Read reads from the current read position into p.

func (*Buffer) Seek

func (b *Buffer) Seek(offset int64, whence int) (int64, error)

Seek moves write offset to the given position.

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

Write writes p to the current position in the buffer.

Jump to

Keyboard shortcuts

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