swapreader

package
v0.0.0-...-d6f1904 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT, MIT Imports: 1 Imported by: 1

README

swapreader

-- import "github.com/cmcoffee/snugforge/swapreader"

Usage

type Reader
type Reader struct {
}

Swap Reader allows for swapping the io.Reader backed []bytes

func (*Reader) Read
func (r *Reader) Read(p []byte) (n int, err error)

swap_reader Read function.

func (*Reader) SetBytes
func (r *Reader) SetBytes(in []byte)

Set []byte for reader

func (*Reader) SetReader
func (r *Reader) SetReader(in io.Reader)

Set Reader to Reader

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

Swap Reader allows for swapping the io.Reader backed []bytes

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

swap_reader Read function.

func (*Reader) SetBytes

func (r *Reader) SetBytes(in []byte)

Set []byte for reader

func (*Reader) SetReader

func (r *Reader) SetReader(in io.Reader)

Set Reader to Reader

Jump to

Keyboard shortcuts

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