Package overrungl

Enum Class FunctionDescriptors

java.lang.Object
java.lang.Enum<FunctionDescriptors>
overrungl.FunctionDescriptors
All Implemented Interfaces:
Serializable, Comparable<FunctionDescriptors>, Constable

public enum FunctionDescriptors extends Enum<FunctionDescriptors>
FunctionDescriptors relies on preview features of the Java platform:
Programs can only use FunctionDescriptors when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The function descriptors.

Mappings

switch (c) {
    case 'B' -> JAVA_BYTE;
    case 'S' -> JAVA_SHORT;
    case 'I' -> JAVA_INT;
    case 'J' -> JAVA_LONG;
    case 'C' -> JAVA_CHAR;
    case 'Z' -> JAVA_BOOLEAN;
    case 'F' -> JAVA_FLOAT;
    case 'D' -> JAVA_DOUBLE;
    case 'P' -> ADDRESS;
    case 'p' -> MemoryUtil.ADDRESS_UNBOUNDED;
    default -> throw new IllegalStateException();
}
Since:
0.1.0
Author:
squid233