Interface SMFB2SectionType
-
- All Known Implementing Classes:
SMFB2Section
@Immutable public interface SMFB2SectionType
A parsed section.
-
-
Field Summary
Fields Modifier and Type Field Description static int
SECTION_ALIGNMENT
The required natural alignment of sections.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
checkPreconditions()
Check preconditions for the type.long
id()
long
offset()
long
sizeOfData()
The size of the section data, not including the magic number or this size value.default long
sizeTotal()
-
-
-
Field Detail
-
SECTION_ALIGNMENT
static final int SECTION_ALIGNMENT
The required natural alignment of sections.- See Also:
- Constant Field Values
-
-
Method Detail
-
id
@Parameter long id()
- Returns:
- The identifier of this section
-
sizeOfData
@Parameter long sizeOfData()
The size of the section data, not including the magic number or this size value.
sizeOfData() + 8 + 8
must be a multiple ofSECTION_ALIGNMENT
- Returns:
- The size of this section
-
offset
@Parameter long offset()
- Returns:
- The absolute offset of the start of the section
-
sizeTotal
@Derived default long sizeTotal()
- Returns:
- The total size of the section: The size of the data plus the header
-
checkPreconditions
@Check default void checkPreconditions()
Check preconditions for the type.
-
-