io

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllWithBuffer

func ReadAllWithBuffer(r io.Reader, estimatedBytes int, b []byte) ([]byte, error)

ReadAllWithBuffer is a fork of https://go.googlesource.com/go/+/go1.16.3/src/io/io.go#626

with a buffer to read into. if the provided buffer is not large enough it will be extended
and returned to the caller

func ReadAllWithEstimate

func ReadAllWithEstimate(r io.Reader, estimatedBytes int64) ([]byte, error)

ReadAllWithEstimate is a fork of https://go.googlesource.com/go/+/go1.16.3/src/io/io.go#626

with a starting buffer size. if none is provided it uses the existing default of 512

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳