Documentation
¶
Index ¶
- func Debug(arg interface{})
- func DlvBreak()
- func GetComponents(path string) []string
- func ParseString(reader io.ReaderAt, offset int64, length int64) string
- func ParseTerminatedString(reader io.ReaderAt, offset int64) string
- func ParseTerminatedUTF16String(reader io.ReaderAt, offset int64) string
- func ParseUTF16String(reader io.ReaderAt, offset int64, length int64) string
- func ParseUint16(reader io.ReaderAt, offset int64) uint16
- func ParseUint32(reader io.ReaderAt, offset int64) uint32
- func ParseUint8(reader io.ReaderAt, offset int64) byte
- func UTF16BytesToUTF8(b []byte, o binary.ByteOrder) string
- type DirectoryEntry
- type DirectoryListing
- type FAT32MBR
- func (self *FAT32MBR) ClusterOfRoot() uint32
- func (self *FAT32MBR) DebugString() string
- func (self *FAT32MBR) Flags() uint16
- func (self *FAT32MBR) Magic() uint16
- func (self *FAT32MBR) SectorsPerFat() uint32
- func (self *FAT32MBR) Signature() byte
- func (self *FAT32MBR) Size() int
- func (self *FAT32MBR) System_id() string
- func (self *FAT32MBR) Version() uint16
- func (self *FAT32MBR) Volume_label() string
- func (self *FAT32MBR) Volume_serial_number() uint32
- type FATContext
- func (self *FATContext) DebugString() string
- func (self *FATContext) FATType() string
- func (self *FATContext) ICat(first_cluster int32) (io.ReaderAt, error)
- func (self *FATContext) ListDirectory(path string) ([]*DirectoryEntry, error)
- func (self *FATContext) Open(path string) (*FATReader, error)
- func (self *FATContext) Stat(path string) (*DirectoryEntry, error)
- type FATProfile
- func (self *FATProfile) DirectoryListing(reader io.ReaderAt, offset int64) *DirectoryListing
- func (self *FATProfile) FAT32MBR(reader io.ReaderAt, offset int64) *FAT32MBR
- func (self *FATProfile) FolderEntry(reader io.ReaderAt, offset int64) *FolderEntry
- func (self *FATProfile) LFNEntry(reader io.ReaderAt, offset int64) *LFNEntry
- func (self *FATProfile) MBR(reader io.ReaderAt, offset int64) *MBR
- type FATReader
- type Flags
- type FolderEntry
- type LFNEntry
- type MBR
- func (self *MBR) Bytes_per_sector() uint16
- func (self *MBR) DebugString() string
- func (self *MBR) Large_sectors() uint32
- func (self *MBR) Magic() uint16
- func (self *MBR) Number_of_fats() byte
- func (self *MBR) Oemname() string
- func (self *MBR) Reserved_sectors() uint16
- func (self *MBR) Root_entries() uint16
- func (self *MBR) Sectors_per_cluster() byte
- func (self *MBR) Sectors_per_fat() uint16
- func (self *MBR) Signature() byte
- func (self *MBR) Size() int
- func (self *MBR) Small_sectors() uint16
- func (self *MBR) System_id() string
- func (self *MBR) Volume_label() string
- func (self *MBR) Volume_serial_number() uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponents ¶
func ParseUTF16String ¶
Types ¶
type DirectoryEntry ¶
type DirectoryListing ¶
type DirectoryListing struct { Reader io.ReaderAt Offset int64 Profile *FATProfile // contains filtered or unexported fields }
func (*DirectoryListing) DebugString ¶
func (self *DirectoryListing) DebugString() string
func (*DirectoryListing) Entries ¶
func (self *DirectoryListing) Entries() []*FolderEntry
func (*DirectoryListing) Size ¶
func (self *DirectoryListing) Size() int
type FAT32MBR ¶
type FAT32MBR struct { Reader io.ReaderAt Offset int64 Profile *FATProfile // contains filtered or unexported fields }
func (*FAT32MBR) ClusterOfRoot ¶
func (*FAT32MBR) DebugString ¶
func (*FAT32MBR) SectorsPerFat ¶
func (*FAT32MBR) Volume_label ¶
func (*FAT32MBR) Volume_serial_number ¶
type FATContext ¶
type FATContext struct { DiskReader io.ReaderAt Profile *FATProfile MBR *MBR FAT32MBR *FAT32MBR Bytes_per_cluster int64 Bytes_per_sector int64 Sectors_per_cluster int64 // contains filtered or unexported fields }
func GetFATContext ¶
func GetFATContext(reader io.ReaderAt) (*FATContext, error)
func (*FATContext) DebugString ¶
func (self *FATContext) DebugString() string
func (*FATContext) FATType ¶
func (self *FATContext) FATType() string
func (*FATContext) ListDirectory ¶
func (self *FATContext) ListDirectory(path string) ([]*DirectoryEntry, error)
func (*FATContext) Stat ¶
func (self *FATContext) Stat(path string) (*DirectoryEntry, error)
type FATProfile ¶
type FATProfile struct { Off_DirectoryListing_Entries int64 Off_FAT32MBR_SectorsPerFat int64 Off_FAT32MBR_Flags int64 Off_FAT32MBR_Version int64 Off_FAT32MBR_ClusterOfRoot int64 Off_FAT32MBR_Signature int64 Off_FAT32MBR_Volume_serial_number int64 Off_FAT32MBR_Volume_label int64 Off_FAT32MBR_System_id int64 Off_FAT32MBR_Magic int64 Off_FolderEntry_Name int64 Off_FolderEntry_Attribute int64 Off_FolderEntry__CreateTimeTenthSeconds int64 Off_FolderEntry__CreateTime int64 Off_FolderEntry__CreateDate int64 Off_FolderEntry__LastAccessDate int64 Off_FolderEntry__ClusterHigh int64 Off_FolderEntry__LastModTime int64 Off_FolderEntry__LastModDate int64 Off_FolderEntry__ClusterLow int64 Off_FolderEntry_FileSize int64 Off_LFNEntry_Order int64 Off_LFNEntry_Name1 int64 Off_LFNEntry_Name2 int64 Off_LFNEntry_Name3 int64 Off_MBR_Oemname int64 Off_MBR_Bytes_per_sector int64 Off_MBR_Sectors_per_cluster int64 Off_MBR_Reserved_sectors int64 Off_MBR_Number_of_fats int64 Off_MBR_Root_entries int64 Off_MBR_Small_sectors int64 Off_MBR_Sectors_per_fat int64 Off_MBR_Large_sectors int64 Off_MBR_Signature int64 Off_MBR_Volume_serial_number int64 Off_MBR_Volume_label int64 Off_MBR_System_id int64 Off_MBR_Magic int64 }
func NewFATProfile ¶
func NewFATProfile() *FATProfile
func (*FATProfile) DirectoryListing ¶
func (self *FATProfile) DirectoryListing(reader io.ReaderAt, offset int64) *DirectoryListing
func (*FATProfile) FAT32MBR ¶
func (self *FATProfile) FAT32MBR(reader io.ReaderAt, offset int64) *FAT32MBR
func (*FATProfile) FolderEntry ¶
func (self *FATProfile) FolderEntry(reader io.ReaderAt, offset int64) *FolderEntry
type FATReader ¶
type FATReader struct { // If present this is the directory we have Info *DirectoryEntry // contains filtered or unexported fields }
func NewFATReader ¶
func NewFATReader(context *FATContext, first_cluster int32) (*FATReader, error)
type Flags ¶
func (Flags) DebugString ¶
type FolderEntry ¶
type FolderEntry struct { Reader io.ReaderAt Offset int64 Profile *FATProfile // contains filtered or unexported fields }
func ParseArray_FolderEntry ¶
func ParseArray_FolderEntry(profile *FATProfile, reader io.ReaderAt, offset int64, count int) []*FolderEntry
func (*FolderEntry) Attribute ¶
func (self *FolderEntry) Attribute() *Flags
func (*FolderEntry) DebugString ¶
func (self *FolderEntry) DebugString() string
func (*FolderEntry) FileSize ¶
func (self *FolderEntry) FileSize() uint32
func (*FolderEntry) Name ¶
func (self *FolderEntry) Name() string
func (*FolderEntry) Size ¶
func (self *FolderEntry) Size() int
type LFNEntry ¶
type LFNEntry struct { Reader io.ReaderAt Offset int64 Profile *FATProfile // contains filtered or unexported fields }
func (*LFNEntry) DebugString ¶
type MBR ¶
type MBR struct { Reader io.ReaderAt Offset int64 Profile *FATProfile // contains filtered or unexported fields }
func (*MBR) Bytes_per_sector ¶
func (*MBR) DebugString ¶
func (*MBR) Large_sectors ¶
func (*MBR) Number_of_fats ¶
func (*MBR) Reserved_sectors ¶
func (*MBR) Root_entries ¶
func (*MBR) Sectors_per_cluster ¶
func (*MBR) Sectors_per_fat ¶
func (*MBR) Small_sectors ¶
func (*MBR) Volume_label ¶
func (*MBR) Volume_serial_number ¶
Click to show internal directories.
Click to hide internal directories.