Documentation
¶
Overview ¶
Package readerat provides utilities for the io.ReaderAt type.
Index ¶
- func Init() error
- type ReadSeeker
- type ZstdFile
- func (z *ZstdFile) CheckReservedLock() (bool, error)
- func (z *ZstdFile) Close() error
- func (z *ZstdFile) DeviceCharacteristics() sqlite3vfs.DeviceCharacteristic
- func (z *ZstdFile) FileSize() (int64, error)
- func (z *ZstdFile) Lock(elock sqlite3vfs.LockType) error
- func (z *ZstdFile) ReadAt(p []byte, off int64) (int, error)
- func (z *ZstdFile) SectorSize() int64
- func (z *ZstdFile) Sync(flag sqlite3vfs.SyncType) error
- func (z *ZstdFile) Truncate(size int64) error
- func (z *ZstdFile) Unlock(elock sqlite3vfs.LockType) error
- func (z *ZstdFile) WriteAt(p []byte, off int64) (int, error)
- type ZstdVFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReadSeeker ¶
type ReadSeeker struct {
ReaderAt io.ReaderAt
Size int64
// contains filtered or unexported fields
}
ReadSeeker is an io.ReadSeeker implementation based on an io.ReaderAt (and an int64 size).
For example, an os.File is both an io.ReaderAt and an io.ReadSeeker, but its io.ReadSeeker methods are not safe to use concurrently. In comparison, multiple readerat.ReadSeeker values (using the same os.File as their io.ReaderAt) are safe to use concurrently. Each can Read and Seek independently.
A single readerat.ReadSeeker is not safe to use concurrently.
Do not modify its exported fields after calling any of its methods.
type ZstdFile ¶
type ZstdFile struct {
// contains filtered or unexported fields
}
func (*ZstdFile) CheckReservedLock ¶
func (*ZstdFile) DeviceCharacteristics ¶
func (z *ZstdFile) DeviceCharacteristics() sqlite3vfs.DeviceCharacteristic
func (*ZstdFile) SectorSize ¶
type ZstdVFS ¶
type ZstdVFS struct{}
func (*ZstdVFS) Access ¶
func (z *ZstdVFS) Access(name string, flags sqlite3vfs.AccessFlag) (bool, error)
func (*ZstdVFS) FullPathname ¶
func (*ZstdVFS) Open ¶
func (z *ZstdVFS) Open(name string, flags sqlite3vfs.OpenFlag) (sqlite3vfs.File, sqlite3vfs.OpenFlag, error)
Click to show internal directories.
Click to hide internal directories.