compressedbuffer

package
v0.0.0-...-ba08d48 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package compressedbuffer implements a compressed, in-memory, random-access buffer, similar to bytes.Buffer.

Index

Constants

View Source
const (
	BlockSize = 4096
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

A Buffer is a variable-sized buffer, with Write and ReadAt methods (Read can be done using io.SectionReader). The zero value for Buffer is an empty buffer ready to use. Buffer contains internal synchronisation, allowing for concurrent use.

func (*Buffer) CompressedSize

func (b *Buffer) CompressedSize() int64

func (*Buffer) ReadAt

func (b *Buffer) ReadAt(p []byte, off int64) (int, error)

func (*Buffer) Size

func (b *Buffer) Size() int64

func (*Buffer) Write

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

Jump to

Keyboard shortcuts

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