Interface Struct<T>

  • All Known Subinterfaces:
    Address<T>
    All Known Implementing Classes:
    StructBase

    public interface Struct<T>
    Struct must be supported by all structures (including data and addresses).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ru.ispras.fortress.data.types.bitvector.BitVector asBitVector()
      Converts the struct to the bit vector.
      int getBitSize()
      Returns the bit size of the struct.
      T newStruct​(ru.ispras.fortress.data.types.bitvector.BitVector value)
      Returns the struct initialized by the given bit vector.
    • Method Detail

      • getBitSize

        int getBitSize()
        Returns the bit size of the struct.
        Returns:
        the bit size as an integer value
      • newStruct

        T newStruct​(ru.ispras.fortress.data.types.bitvector.BitVector value)
        Returns the struct initialized by the given bit vector.
        Parameters:
        value - the bit vector representing all fields of the struct.
        Returns:
        the data struct.
      • asBitVector

        ru.ispras.fortress.data.types.bitvector.BitVector asBitVector()
        Converts the struct to the bit vector.
        Returns:
        the bit vector representing all fields of the struct.