Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + type FD struct + func New(fd int) *FD + func NewFromFile(file *os.File) (*FD, error) + func NewFromFiles(files []*os.File) ([]*FD, error) + func Open(path string, openmode int, perm uint32) (*FD, error) + func OpenAt(dir *FD, path string, flags int, mode uint32) (*FD, error) + func (f *FD) Close() error + func (f *FD) File() (*os.File, error) + func (f *FD) Release() int + func (f *FD) ReleaseToFile(name string) *os.File + type ReadWriter struct + func NewReadWriter(fd int) *ReadWriter + func (r *ReadWriter) FD() int + func (r *ReadWriter) Read(b []byte) (int, error) + func (r *ReadWriter) ReadAt(b []byte, off int64) (c int, err error) + func (r *ReadWriter) String() string + func (r *ReadWriter) Write(b []byte) (int, error) + func (r *ReadWriter) WriteAt(b []byte, off int64) (c int, err error)