Object structure.
More...
#include <Object.h>
Object structure.
- Note
- all objects conform to this structure. Only the first word (4 bytes) are required to nagivate the file system. All objects have an 8, 16 or 24-bit size field. Content is always immediately after this field. Reference objects are always 8-bit sized.
◆ Attributes
◆ ID
◆ Attribute
Object attributes.
- Note
- these are bit values
| Enumerator |
|---|
| ReadOnly | Object should not be modified or deleted.
|
| Archive | Object modified flag.
- Note
- Object has been changed on disk. Typically used by backup applications
|
| MAX | |
◆ Type
◆ childTableOffset()
| uint32_t IFS::Object::childTableOffset |
( |
| ) |
const |
|
inline |
◆ childTableSize()
| uint32_t IFS::Object::childTableSize |
( |
| ) |
const |
|
inline |
◆ contentOffset()
| size_t IFS::Object::contentOffset |
( |
| ) |
const |
|
inline |
return offset to start of object content
◆ contentSize()
| uint32_t IFS::Object::contentSize |
( |
| ) |
const |
|
inline |
return size of object content, excluding header and size fields
- Return values
-
- Note
- must check return error code
◆ isData()
| bool IFS::Object::isData |
( |
| ) |
const |
|
inline |
◆ isDir()
| bool IFS::Object::isDir |
( |
| ) |
const |
|
inline |
◆ isMountPoint()
| bool IFS::Object::isMountPoint |
( |
| ) |
const |
|
inline |
◆ isNamed()
| bool IFS::Object::isNamed |
( |
| ) |
const |
|
inline |
◆ isRef()
| bool IFS::Object::isRef |
( |
| ) |
const |
|
inline |
◆ size()
| uint32_t IFS::Object::size |
( |
| ) |
const |
|
inline |
total size this object occupies in the image
- Return values
-
- Note
- objects are word-aligned but this method returns only the used size
◆ sizeAligned()
| uint32_t IFS::Object::sizeAligned |
( |
| ) |
const |
|
inline |
◆ type()
| Type IFS::Object::type |
( |
| ) |
const |
|
inline |
◆ @18
◆ _contentSize [1/2]
| uint8_t IFS::Object::_contentSize |
◆ _contentSize [2/2]
Object size (excluding this header)
◆ _contentSizeHigh
| uint8_t IFS::Object::_contentSizeHigh |
Allows data up to 16MByte.
◆ ace
| struct { ... } IFS::Object::ace |
◆ attr
| uint8_t IFS::Object::attr |
◆ checksum
| uint32_t IFS::Object::checksum |
◆ compression
| struct { ... } IFS::Object::compression |
◆ data16
| struct { ... } IFS::Object::data16 |
◆ data24
| struct { ... } IFS::Object::data24 |
◆ data8
| struct { ... } IFS::Object::data8 |
◆ end
| struct { ... } IFS::Object::end |
◆ FWOBT_REF
| constexpr uint8_t IFS::Object::FWOBT_REF {0x80} |
|
static |
◆ id
◆ id32
| struct { ... } IFS::Object::id32 |
◆ mtime
◆ named
| struct { ... } IFS::Object::named |
◆ namelen
| uint8_t IFS::Object::namelen |
◆ objectAttributes
| struct { ... } IFS::Object::objectAttributes |
◆ objectStore
| struct { ... } IFS::Object::objectStore |
◆ originalSize
| uint32_t IFS::Object::originalSize |
◆ ref
| struct { ... } IFS::Object::ref |
◆ role
◆ storenum
| uint8_t IFS::Object::storenum |
◆ type
◆ typeData
| uint8_t IFS::Object::typeData |
◆ value
| uint32_t IFS::Object::value |
32-bit identifier, e.g. volume ID
The documentation for this struct was generated from the following file: