cappedbuffer

package
v0.0.0-...-4f4fead Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Credit: https://github.com/ranna-go/ranna/blob/master/pkg/cappedbuffer/cappedbuffer.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CappedBuffer

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

func New

func New(buf []byte, cap int) *CappedBuffer

func (*CappedBuffer) Write

func (cb *CappedBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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