Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Index ¶
- Constants
- func Fatal(err error) error
- func Fatalf(format string, args ...interface{}) error
- func IsFile(filename string) bool
- func MungeImage(dstFilename, srcFilename string, basename string, files []string) error
- func RewriteImage(dstFile, srcFile string, fatType int, size int64) error
- type FileRecord
- type Image
- func (i *Image) AddFile(dstPathname, srcPathname string) error
- func (i *Image) Close() error
- func (i *Image) FATType() (int, error)
- func (i *Image) GetAttr(filename string) (ffs.DirectoryAttr, error)
- func (i *Image) Import(filename string) error
- func (i *Image) Info() (map[string]any, error)
- func (i *Image) IsDir(name string) (bool, error)
- func (i *Image) Mkdir(pathname string) error
- func (i *Image) OEMName() (string, error)
- func (i *Image) ReadFile(filename string) ([]byte, error)
- func (i *Image) ScanFiles() ([]FileRecord, error)
- func (i *Image) SetAttr(filename string, attr ffs.DirectoryAttr, state bool) error
- func (i *Image) VolumeLabel() (string, error)
Constants ¶
View Source
const MB = 1024 * 1024
View Source
const PAD_BYTES = 512
Variables ¶
This section is empty.
Functions ¶
func MungeImage ¶
Types ¶
type FileRecord ¶
type Image ¶
type Image struct {
Filename string
// contains filtered or unexported fields
}
func CreateImage ¶
func (*Image) ScanFiles ¶
func (i *Image) ScanFiles() ([]FileRecord, error)
func (*Image) VolumeLabel ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.