Interface SMFB2SectionType

  • All Known Implementing Classes:
    SMFB2Section

    @Immutable
    public interface SMFB2SectionType
    A parsed section.
    • 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 of SECTION_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.