Documentation ¶
Index ¶
- Variables
- type DirectoryEntry
- type File
- type FileHeader
- type Object
- type ObjectType
- type SectorReader
- type Storage
- func (s *Storage) Name() string
- func (s *Storage) Path() string
- func (s *Storage) Read(b []byte) (int, error)
- func (s *Storage) ReadAt(b []byte, offset int64) (int, error)
- func (s *Storage) Seek(offset int64, whence int) (int64, error)
- func (s *Storage) Size() uint64
- func (s *Storage) String() string
- func (s *Storage) Type() ObjectType
- type Stream
- func (s *Stream) Name() string
- func (s *Stream) Path() string
- func (s *Stream) Read(b []byte) (int, error)
- func (s *Stream) ReadAt(b []byte, offset int64) (int, error)
- func (s *Stream) Seek(offset int64, whence int) (int64, error)
- func (s *Stream) Size() uint64
- func (s *Stream) String() string
- func (s *Stream) Type() ObjectType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInsufficientData = errors.New("insufficient data") ErrWrongSector = errors.New("wrong sector") ErrInvalidSectorChain = errors.New("invalid sector chain") ErrInvalidSeek = errors.New("invalid seek operation") ErrInvalidOffset = errors.New("invalid offset") ErrWrongObjectType = errors.New("wrong object type") ErrInvalidObject = errors.New("invalid object") ErrObjectNotFound = errors.New("object not found") ErrValidation = errors.New("validation error") )
Functions ¶
This section is empty.
Types ¶
type DirectoryEntry ¶
type DirectoryEntry struct {
// contains filtered or unexported fields
}
func (*DirectoryEntry) Name ¶
func (d *DirectoryEntry) Name() string
func (*DirectoryEntry) Path ¶
func (d *DirectoryEntry) Path() string
func (*DirectoryEntry) Size ¶
func (d *DirectoryEntry) Size() uint64
func (*DirectoryEntry) StartingSector ¶
func (d *DirectoryEntry) StartingSector() uint32
func (*DirectoryEntry) Type ¶
func (d *DirectoryEntry) Type() ObjectType
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Header ¶
func (f *File) Header() *FileHeader
type FileHeader ¶
type FileHeader struct {
// contains filtered or unexported fields
}
func (*FileHeader) MiniSectorSize ¶
func (h *FileHeader) MiniSectorSize() uint32
func (*FileHeader) SectorSize ¶
func (h *FileHeader) SectorSize() uint32
type ObjectType ¶
type ObjectType uint8
const ( UnknownObject ObjectType = 0x00 StorageObject ObjectType = 0x01 StreamObject ObjectType = 0x02 RootStorageObject ObjectType = 0x05 )
func (ObjectType) String ¶
func (i ObjectType) String() string
type SectorReader ¶
type SectorReader struct {
// contains filtered or unexported fields
}
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Type ¶
func (s *Storage) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.