multibuffer

package
v0.0.0-...-3b681cf Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package multibuffer contains a buffer with multiple levels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiBuffer

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

MultiBuffer implements software multi buffering, that allows to reuse existing buffers without creating new ones, improving performance.

func New

func New(count uint64, size uint64) *MultiBuffer

New allocates a MultiBuffer.

func (*MultiBuffer) Next

func (mb *MultiBuffer) Next() []byte

Next gets the current buffer and sets the next buffer as the current one.

Jump to

Keyboard shortcuts

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