io

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(path string, size int64, flag int, sync bool, direct bool) (*os.File, error)

func OpenFile

func OpenFile(path string, flag int, sync bool, direct bool) (*os.File, error)

func ResizeFile

func ResizeFile(f *os.File, size int64) error

Types

type WriteAtFunc

type WriteAtFunc func(b []byte, off int64, so, eo int, cb WriteCallback)

func (WriteAtFunc) WriteAt

func (f WriteAtFunc) WriteAt(b []byte, off int64, so, eo int, cb WriteCallback)

type WriteCallback

type WriteCallback = func(n int, err error)

type WriterAt

type WriterAt interface {
	WriteAt(b []byte, off int64, so, eo int, cb WriteCallback)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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