Documentation
¶
Overview ¶
Copyright (c) 2014, Quamotion Ported from DiscUtils.HfsPlus File.cs / CompressionAttribute (MIT).
Copyright (c) 2008-2011, Kenneth Bell Ported from DiscUtils HFS+ (MIT).
Index ¶
- Constants
- func Format(c disk.Content, opt Options) error
- type Extent
- type Fork
- type Options
- type Volume
- func (v *Volume) CanWrite() bool
- func (v *Volume) Close() error
- func (v *Volume) CreateDir(path string) error
- func (v *Volume) CreateFile(path string) error
- func (v *Volume) Flush() error
- func (v *Volume) Header() VolumeHeader
- func (v *Volume) MkdirAll(path string) error
- func (v *Volume) Name() string
- func (v *Volume) OpenFile(path string, fork vfs.Fork, flag int) (vfs.File, error)
- func (v *Volume) ReadDir(path string) ([]vfs.FileInfo, error)
- func (v *Volume) Remove(path string) error
- func (v *Volume) Rename(oldpath, newpath string) error
- func (v *Volume) SetInfo(path string, info vfs.FileInfo) error
- func (v *Volume) Stat(path string) (vfs.FileInfo, error)
- func (v *Volume) VolumeLabel() string
- type VolumeHeader
Constants ¶
View Source
const ( SigHFSPlus = 0x482b SigHFSX = 0x4858 HeaderOff = 1024 HeaderSize = 512 CNIDRootParent = 1 CNIDRootFolder = 2 CNIDExtents = 3 CNIDCatalog = 4 CNIDBadBlocks = 5 CNIDAllocation = 6 CNIDStartup = 7 CNIDAttributes = 8 CNIDFirstUser = 16 AttrJournaled = 0x00002000 AttrUnmounted = 0x00000100 AttrSoftwareLock = 0x00008000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
Volume is a mounted HFS+ or HFSX filesystem.
func (*Volume) CreateFile ¶
func (*Volume) Header ¶
func (v *Volume) Header() VolumeHeader
func (*Volume) VolumeLabel ¶
type VolumeHeader ¶
type VolumeHeader struct {
Signature uint16
Version uint16
Attributes uint32
LastMountedVersion uint32
JournalInfoBlock uint32
CreateDate uint32
ModifyDate uint32
BackupDate uint32
CheckedDate uint32
FileCount uint32
FolderCount uint32
BlockSize uint32
TotalBlocks uint32
FreeBlocks uint32
NextAllocation uint32
RsrcClumpSize uint32
DataClumpSize uint32
NextCatalogID uint32
WriteCount uint32
EncodingsBitmap uint64
FinderInfo [8]uint32
AllocationFile Fork
ExtentsFile Fork
CatalogFile Fork
AttributesFile Fork
StartupFile Fork
}
func ParseHeader ¶
func ParseHeader(b []byte) VolumeHeader
func (VolumeHeader) CaseSensitive ¶
func (h VolumeHeader) CaseSensitive() bool
func (VolumeHeader) Journaled ¶
func (h VolumeHeader) Journaled() bool
func (VolumeHeader) Marshal ¶
func (h VolumeHeader) Marshal() []byte
func (VolumeHeader) Valid ¶
func (h VolumeHeader) Valid() bool
Click to show internal directories.
Click to hide internal directories.