Interface Dynamic

    • Method Detail

      • getLength

        int getLength​(MemBuffer buf,
                      int maxLength)
        Compute the length for this data-type which corresponds to the specified memory location.
        Parameters:
        buf - memory location
        maxLength - maximum number of bytes to consume in computing length, or -1 for unspecified.
        Returns:
        data length or -1 if it could not be determined. Returned length may exceed maxLength if data-type does not supported constrained lengths.
      • canSpecifyLength

        boolean canSpecifyLength()
        Returns true if a user-specified length can be used
      • getReplacementBaseType

        DataType getReplacementBaseType()
        Returns a suitable replacement base data-type for pointers and arrays when exporting to C code
        Returns:
        suitable base data-type for this Dynamic data-type