Documentation ¶
Overview ¶
Package fat16 provides an io/fs implementation of the FAT16 file systems.
Copyright (c) 2019-2020 Siemens AG Copyright (c) 2019-2021 Jonas Plum
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Author(s): Jonas Plum
Index ¶
- type FS
- type Item
- func (*Item) Close() error
- func (i *Item) IsDir() bool
- func (*Item) ModTime() time.Time
- func (i *Item) Mode() fs.FileMode
- func (i *Item) Name() string
- func (i *Item) Read(p []byte) (n int, err error)
- func (i *Item) ReadAt(p []byte, off int64) (n int, err error)
- func (i *Item) ReadDir(n int) ([]fs.DirEntry, error)
- func (i *Item) Seek(offset int64, whence int) (int64, error)
- func (i *Item) Size() int64
- func (i *Item) Stat() (fs.FileInfo, error)
- func (i *Item) Sys() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements a read-only file system for the FAT16 file system.
type Item ¶
type Item struct { *io.SectionReader // contains filtered or unexported fields }
Item describes files and directories in the FAT16 file system.
func (*Item) Close ¶
Close closes the file freeing the resource. Usually additional IO operations fail after closing.