orderedwriter

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package orderedwriter implements an unbounded buffer for ordering concurrent writes for non-seekable writers. It keeps an internal linked list that keeps the chunks in order and flushes buffered chunks when the expected offset is available.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderedWriterAt

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

func New

func New(w io.Writer) *OrderedWriterAt

func (*OrderedWriterAt) WriteAt

func (w *OrderedWriterAt) WriteAt(p []byte, offset int64) (int, error)

Jump to

Keyboard shortcuts

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