Class StructDefSeg

    • Constructor Detail

      • StructDefSeg

        protected StructDefSeg​(byte segtype)
    • Method Detail

      • getCRC

        public abstract java.lang.Integer getCRC()
      • setCRC

        public abstract void setCRC​(int CRC)
      • getTypeName

        public abstract java.lang.String getTypeName()
      • setTypeName

        public abstract void setTypeName​(java.lang.String typeName)
      • getSizeImpl

        protected int getSizeImpl​(DataContext ctx)
        Description copied from class: DataDefinitionSeg
        Return the number of bytes occupied by a single instance of the given data type. When the data is indirect, size is zero. When the data is variable length, size is -1;
        Specified by:
        getSizeImpl in class DataDefinitionSeg
        Returns:
        Number of bytes.
      • minSize

        public int minSize​(DataContext ctx)
        Description copied from class: DataDefinitionSeg
        Some data types need to offer a range of sizes for the encoded form of their data. The common case is fixed.
        Overrides:
        minSize in class DataDefinitionSeg
        Returns:
      • maxSize

        public int maxSize​(DataContext ctx)
        Description copied from class: DataDefinitionSeg
        Some data types need to offer a range of sizes for the encoded form of their data. The common case is fixed.
        Overrides:
        maxSize in class DataDefinitionSeg
        Returns:
      • alignment

        public int alignment​(DataContext ctx)
        Description copied from class: DataDefinitionSeg
        Alignment is normally the natural size of a primitive element. Structured types and variable length types must override this method.
        Overrides:
        alignment in class DataDefinitionSeg
        Returns:
      • simpleString

        public java.lang.String simpleString()
        Description copied from class: PathSegment
        Supply s simple descriptive name usable when browsing a hierarchy. A simple type name for elementary types, a non-detailed description for complex types.
        Specified by:
        simpleString in class PathSegment
        Returns: