seekablebuffer

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 3 Imported by: 10

Documentation

Overview

Package seekablebuffer contains a bytes.Buffer with an additional Seek() method.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

Buffer is a bytes.Buffer with an additional Seek() method.

func (*Buffer) Read

func (b *Buffer) Read(_ []byte) (int, error)

Read implements io.Reader.

func (*Buffer) Reset

func (b *Buffer) Reset()

Reset resets the buffer state.

func (*Buffer) Seek

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

Seek implements io.Seeker.

func (*Buffer) Write

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

Write implements io.Writer.

Jump to

Keyboard shortcuts

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