rw

package
v0.6.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.0 Imports: 8 Imported by: 124

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard io.Writer = discard{}
View Source
var ZeroBytes = make([]byte, 1024)

Deprecated: wtf is this?

Functions

func CopyFile added in v0.1.1

func CopyFile(srcPath, dstPath string) error

func FileExists deprecated

func FileExists(path string) bool

Deprecated: use IsFile and IsDir instead.

func IsDir added in v0.5.0

func IsDir(path string) bool

func IsFile added in v0.5.0

func IsFile(path string) bool

func MkdirParent added in v0.5.0

func MkdirParent(path string) error

func ReadByte deprecated

func ReadByte(reader io.Reader) (byte, error)

Deprecated: wtf is this?

func ReadBytes deprecated

func ReadBytes(reader io.Reader, size int) ([]byte, error)

Deprecated: wtf is this?

func ReadJSON deprecated

func ReadJSON(path string, data any) error

Deprecated: wtf is this?

func ReadString deprecated

func ReadString(reader io.Reader, size int) (string, error)

Deprecated: wtf is this?

func ReadUVariant deprecated

func ReadUVariant(reader io.Reader) (uint64, error)

Deprecated: Use binary.ReadUvarint instead.

func ReadVString deprecated

func ReadVString(reader io.Reader) (string, error)

Deprecated: Use varbin.ReadValue instead.

func Skip deprecated

func Skip(reader io.Reader) error

Deprecated: wtf is this?

func SkipN

func SkipN(reader io.Reader, size int) error

func ToByteReader deprecated

func ToByteReader(reader io.Reader) io.ByteReader

Deprecated: create a *bufio.Reader instead.

func UVariantLen deprecated

func UVariantLen(x uint64) int

Deprecated: Use varbin.UvarintLen instead.

func WriteByte deprecated

func WriteByte(writer io.Writer, b byte) error

Deprecated: wtf is this?

func WriteBytes deprecated

func WriteBytes(writer io.Writer, b []byte) error

Deprecated: wtf is this?

func WriteFile deprecated

func WriteFile(path string, content []byte) error

Deprecated: use MkdirParent and os.WriteFile instead.

func WriteJSON deprecated

func WriteJSON(path string, data any) error

Deprecated: wtf is this?

func WriteString deprecated

func WriteString(writer io.Writer, str string) error

Deprecated: wtf is this?

func WriteUVariant deprecated

func WriteUVariant(writer io.Writer, value uint64) error

Deprecated: Use varbin.WriteUvarint instead.

func WriteVString deprecated

func WriteVString(writer io.Writer, value string) error

Deprecated: Use varbin.Write instead.

func WriteZero deprecated

func WriteZero(writer io.Writer) error

Deprecated: wtf is this?

func WriteZeroN deprecated

func WriteZeroN(writer io.Writer, size int) error

Deprecated: wtf is this?

Types

This section is empty.

Jump to

Keyboard shortcuts

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