Class RealInfo

java.lang.Object
com.oss.metadata.TypeInfo
com.oss.metadata.RealInfo

public class RealInfo extends TypeInfo
The RealInfo class represents the properties of an ASN.1 REAL type.
Since:
ASN.1/Java 6.0
  • Method Details

    • getSize

      public int getSize()
      Returns a byte-size of a real variable that is suitable to hold all the values of constrained REAL type. Possible sizes are 4 and 8. 0 is returned is type has no constraints or does not fit to single or double-precision floating point value.
      Returns:
      real variable byte size.
    • getFormat

      public int getFormat()
      Returns the format in which the REAL type is represented. Possible formats are: 6 - as JSON number (base 10 implied) 2 - as JSON number (base 2 implied) 0 - as JSON object with the "base10Value" property.
      Returns:
      format of the real.