Documentation ¶
Index ¶
- Variables
- func CloseRead(reader any) error
- func CloseWrite(writer any) error
- func CopyFile(srcPath, dstPath string) error
- func FileExists(path string) bool
- func ReadByte(reader io.Reader) (byte, error)
- func ReadBytes(reader io.Reader, size int) ([]byte, error)
- func ReadJSON(path string, data any) error
- func ReadString(reader io.Reader, size int) (string, error)
- func ReadUVariant(reader io.Reader) (uint64, error)
- func ReadVString(reader io.Reader) (string, error)
- func Skip(reader io.Reader) error
- func SkipN(reader io.Reader, size int) error
- func ToByteReader(reader io.Reader) io.ByteReader
- func UVariantLen(x uint64) int
- func WriteByte(writer io.Writer, b byte) error
- func WriteBytes(writer io.Writer, b []byte) error
- func WriteFile(path string, content []byte) error
- func WriteJSON(path string, data any) error
- func WriteString(writer io.Writer, str string) error
- func WriteUVariant(writer io.Writer, value uint64) error
- func WriteV(fd uintptr, data [][]byte) (int, error)deprecated
- func WriteVString(writer io.Writer, value string) error
- func WriteZero(writer io.Writer) error
- func WriteZeroN(writer io.Writer, size int) error
- type ReadCloser
- type ReadCounter
- type WriteCloser
Constants ¶
This section is empty.
Variables ¶
View Source
var ZeroBytes = make([]byte, 1024)
Functions ¶
func CloseWrite ¶
func FileExists ¶
func ToByteReader ¶
func ToByteReader(reader io.Reader) io.ByteReader
func UVariantLen ¶
Types ¶
type ReadCloser ¶
type ReadCloser interface {
CloseRead() error
}
type ReadCounter ¶
func (*ReadCounter) Count ¶
func (r *ReadCounter) Count() int64
func (*ReadCounter) Reset ¶
func (r *ReadCounter) Reset()
type WriteCloser ¶
type WriteCloser interface {
CloseWrite() error
}
Click to show internal directories.
Click to hide internal directories.