bufferproxy

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package bufferproxy is a package that provides a buffer proxy for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer interface {
	ReadFrom(r ioproxy.ReaderInstanceInterface) (int64, error)
	Reset()
	String() string
	Write(p []byte) (n int, err error)
}

Buffer is an interface for buffer.

func New

func New() Buffer

New is a constructor for BufferProxy.

type BufferProxy

type BufferProxy struct {
	bytes.Buffer
}

BufferProxy is a struct that implements Buffer.

func (*BufferProxy) ReadFrom

func (b *BufferProxy) ReadFrom(r ioproxy.ReaderInstanceInterface) (int64, error)

ReadFrom is a proxy for buffer.ReadFrom.

func (*BufferProxy) Reset

func (b *BufferProxy) Reset()

Reset is a proxy for buffer.Reset.

func (*BufferProxy) String

func (b *BufferProxy) String() string

String is a proxy for buffer.String.

func (*BufferProxy) Write

func (b *BufferProxy) Write(p []byte) (n int, err error)

Write is a proxy for buffer.Write.

Jump to

Keyboard shortcuts

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