io_r

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0, LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst io.Writer, src io.Reader) result.Result[int64]

func CopyBuffer

func CopyBuffer(dst io.Writer, src io.Reader, buf []byte) result.Result[int64]

func CopyN

func CopyN(dst io.Writer, src io.Reader, n int64) result.Result[int64]

func Read

func Read(r io.Reader, p []byte) result.Result[int]

func ReadAll

func ReadAll(r io.Reader) result.Result[[]byte]

func ReadAt

func ReadAt(r io.ReaderAt, p []byte, off int64) result.Result[int]

func ReadAtLeast

func ReadAtLeast(r io.Reader, buf []byte, min int) result.Result[int]

func ReadFull

func ReadFull(r io.Reader, buf []byte) result.Result[int]

func Write

func Write(w io.Writer, p []byte) result.Result[int]

func WriteAt

func WriteAt(w io.WriterAt, p []byte, off int64) result.Result[int]

func WriteString

func WriteString(w io.Writer, s string) result.Result[int]

Types

type Reader

type Reader interface {
	Read(p []byte) result.Result[int]
}

func WrapReader

func WrapReader(r io.Reader) Reader

type Writer

type Writer interface {
	Write(p []byte) result.Result[int]
}

func WrapWriter

func WrapWriter(r io.Writer) Writer

Jump to

Keyboard shortcuts

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