Interface IPrimitiveSizes

All Known Implementing Classes:
PrimitiveSizes

@Ser public interface IPrimitiveSizes
Get the sizes of common primitives. The sizes are returned in bytes.
  • Method Details

    • getCharSize

      int getCharSize()
      Retrieve the size of char.
      Returns:
      size in bytes
    • getShortSize

      int getShortSize()
      Retrieve the size of short.
      Returns:
      size in bytes
    • getIntSize

      int getIntSize()
      Retrieve the size of int.
      Returns:
      size in bytes
    • getLongSize

      int getLongSize()
      Retrieve the size of long.
      Returns:
      size in bytes
    • getLongLongSize

      int getLongLongSize()
      Retrieve the size of long long.
      Returns:
      size in bytes
    • getFloatSize

      int getFloatSize()
      Retrieve the size of float.
      Returns:
      size in bytes
    • getDoubleSize

      int getDoubleSize()
      Retrieve the size of double.
      Returns:
      size in bytes
    • getLongDoubleSize

      int getLongDoubleSize()
      Retrieve the size of long double.
      Returns:
      size in bytes