overrun.marshal.internal.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marshal Show documentation
Show all versions of marshal Show documentation
Marshaler of native libraries
/*
* MIT License
*
* Copyright (c) 2024 Overrun Organization
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*/
package overrun.marshal.internal;
import java.lang.constant.ClassDesc;
import java.lang.constant.DynamicConstantDesc;
import java.lang.constant.MethodTypeDesc;
import static java.lang.constant.ConstantDescs.*;
/**
* Constant descriptors
*
* @author squid233
* @since 0.1.0
*/
public final class Constants {
/**
* CD_Arena
*/
public static final ClassDesc CD_Arena = ClassDesc.of("java.lang.foreign.Arena");
/**
* CD_Charset
*/
public static final ClassDesc CD_Charset = ClassDesc.of("java.nio.charset.Charset");
/**
* CD_Checks
*/
public static final ClassDesc CD_Checks = ClassDesc.of("overrun.marshal.Checks");
/**
* CD_DowncallData
*/
public static final ClassDesc CD_DowncallData = ClassDesc.of("overrun.marshal.internal.data.DowncallData");
/**
* CD_IllegalStateException
*/
public static final ClassDesc CD_IllegalStateException = ClassDesc.of("java.lang.IllegalStateException");
/**
* CD_Marshal
*/
public static final ClassDesc CD_Marshal = ClassDesc.of("overrun.marshal.Marshal");
/**
* CD_MemoryLayout$PathElement
*/
public static final ClassDesc CD_MemoryLayout$PathElement = ClassDesc.of("java.lang.foreign.MemoryLayout$PathElement");
/**
* CD_MemorySegment
*/
public static final ClassDesc CD_MemorySegment = ClassDesc.of("java.lang.foreign.MemorySegment");
/**
* CD_MemoryStack
*/
public static final ClassDesc CD_MemoryStack = ClassDesc.of("io.github.overrun.memstack.MemoryStack");
/**
* CD_ProcessorType
*/
public static final ClassDesc CD_ProcessorType = ClassDesc.of("overrun.marshal.gen.processor.ProcessorType");
/**
* CD_ProcessorType$Struct
*/
public static final ClassDesc CD_ProcessorType$Struct = ClassDesc.of("overrun.marshal.gen.processor.ProcessorType$Struct");
/**
* CD_ProcessorType$Upcall
*/
public static final ClassDesc CD_ProcessorType$Upcall = ClassDesc.of("overrun.marshal.gen.processor.ProcessorType$Upcall");
/**
* CD_ProcessorType$Upcall$Factory
*/
public static final ClassDesc CD_ProcessorType$Upcall$Factory = ClassDesc.of("overrun.marshal.gen.processor.ProcessorType$Upcall$Factory");
/**
* CD_ProcessorTypes
*/
public static final ClassDesc CD_ProcessorTypes = ClassDesc.of("overrun.marshal.gen.processor.ProcessorTypes");
/**
* CD_SegmentAllocator
*/
public static final ClassDesc CD_SegmentAllocator = ClassDesc.of("java.lang.foreign.SegmentAllocator");
/**
* CD_StandardCharsets
*/
public static final ClassDesc CD_StandardCharsets = ClassDesc.of("java.nio.charset.StandardCharsets");
/**
* CD_Struct
*/
public static final ClassDesc CD_Struct = ClassDesc.of("overrun.marshal.struct.Struct");
/**
* CD_StructAllocatorSpec
*/
public static final ClassDesc CD_StructAllocatorSpec = ClassDesc.of("overrun.marshal.struct.StructAllocatorSpec");
/**
* CD_StructLayout
*/
public static final ClassDesc CD_StructLayout = ClassDesc.of("java.lang.foreign.StructLayout");
/**
* CD_SymbolLookup
*/
public static final ClassDesc CD_SymbolLookup = ClassDesc.of("java.lang.foreign.SymbolLookup");
/**
* CD_Unmarshal
*/
public static final ClassDesc CD_Unmarshal = ClassDesc.of("overrun.marshal.Unmarshal");
/**
* CD_Upcall
*/
public static final ClassDesc CD_Upcall = ClassDesc.of("overrun.marshal.Upcall");
/**
* MTD_boolean_char
*/
public static final MethodTypeDesc MTD_boolean_char = MethodTypeDesc.of(CD_boolean, CD_char);
/**
* MTD_boolean_byte
*/
public static final MethodTypeDesc MTD_boolean_byte = MethodTypeDesc.of(CD_boolean, CD_byte);
/**
* MTD_boolean_short
*/
public static final MethodTypeDesc MTD_boolean_short = MethodTypeDesc.of(CD_boolean, CD_short);
/**
* MTD_boolean_int
*/
public static final MethodTypeDesc MTD_boolean_int = MethodTypeDesc.of(CD_boolean, CD_int);
/**
* MTD_boolean_long
*/
public static final MethodTypeDesc MTD_boolean_long = MethodTypeDesc.of(CD_boolean, CD_long);
/**
* MTD_boolean_float
*/
public static final MethodTypeDesc MTD_boolean_float = MethodTypeDesc.of(CD_boolean, CD_float);
/**
* MTD_boolean_double
*/
public static final MethodTypeDesc MTD_boolean_double = MethodTypeDesc.of(CD_boolean, CD_double);
/**
* MTD_char_boolean
*/
public static final MethodTypeDesc MTD_char_boolean = MethodTypeDesc.of(CD_char, CD_boolean);
/**
* MTD_byte_boolean
*/
public static final MethodTypeDesc MTD_byte_boolean = MethodTypeDesc.of(CD_byte, CD_boolean);
/**
* MTD_short_boolean
*/
public static final MethodTypeDesc MTD_short_boolean = MethodTypeDesc.of(CD_short, CD_boolean);
/**
* MTD_int_boolean
*/
public static final MethodTypeDesc MTD_int_boolean = MethodTypeDesc.of(CD_int, CD_boolean);
/**
* MTD_long_boolean
*/
public static final MethodTypeDesc MTD_long_boolean = MethodTypeDesc.of(CD_long, CD_boolean);
/**
* MTD_float_boolean
*/
public static final MethodTypeDesc MTD_float_boolean = MethodTypeDesc.of(CD_float, CD_boolean);
/**
* MTD_double_boolean
*/
public static final MethodTypeDesc MTD_double_boolean = MethodTypeDesc.of(CD_double, CD_boolean);
/**
* MTD_booleanArray_MemorySegment
*/
public static final MethodTypeDesc MTD_booleanArray_MemorySegment = MethodTypeDesc.of(CD_boolean.arrayType(), CD_MemorySegment);
/**
* MTD_charArray_MemorySegment
*/
public static final MethodTypeDesc MTD_charArray_MemorySegment = MethodTypeDesc.of(CD_boolean.arrayType(), CD_MemorySegment);
/**
* MTD_byteArray_MemorySegment
*/
public static final MethodTypeDesc MTD_byteArray_MemorySegment = MethodTypeDesc.of(CD_byte.arrayType(), CD_MemorySegment);
/**
* MTD_shortArray_MemorySegment
*/
public static final MethodTypeDesc MTD_shortArray_MemorySegment = MethodTypeDesc.of(CD_short.arrayType(), CD_MemorySegment);
/**
* MTD_intArray_MemorySegment
*/
public static final MethodTypeDesc MTD_intArray_MemorySegment = MethodTypeDesc.of(CD_int.arrayType(), CD_MemorySegment);
/**
* MTD_longArray_MemorySegment
*/
public static final MethodTypeDesc MTD_longArray_MemorySegment = MethodTypeDesc.of(CD_long.arrayType(), CD_MemorySegment);
/**
* MTD_floatArray_MemorySegment
*/
public static final MethodTypeDesc MTD_floatArray_MemorySegment = MethodTypeDesc.of(CD_float.arrayType(), CD_MemorySegment);
/**
* MTD_doubleArray_MemorySegment
*/
public static final MethodTypeDesc MTD_doubleArray_MemorySegment = MethodTypeDesc.of(CD_double.arrayType(), CD_MemorySegment);
/**
* MTD_MemorySegmentArray_MemorySegment
*/
public static final MethodTypeDesc MTD_MemorySegmentArray_MemorySegment = MethodTypeDesc.of(CD_MemorySegment.arrayType(), CD_MemorySegment);
/**
* MTD_Charset_String
*/
public static final MethodTypeDesc MTD_Charset_String = MethodTypeDesc.of(CD_Charset, CD_String);
/**
* MTD_long
*/
public static final MethodTypeDesc MTD_long = MethodTypeDesc.of(CD_long);
/**
* MTD_long_long_long
*/
public static final MethodTypeDesc MTD_long_long_long = MethodTypeDesc.of(CD_long, CD_long, CD_long);
/**
* MTD_Map
*/
public static final MethodTypeDesc MTD_Map = MethodTypeDesc.of(CD_Map);
/**
* MTD_MemoryLayout$PathElement
*/
public static final MethodTypeDesc MTD_MemoryLayout$PathElement = MethodTypeDesc.of(CD_MemoryLayout$PathElement);
/**
* MTD_MemoryLayout$PathElement_String
*/
public static final MethodTypeDesc MTD_MemoryLayout$PathElement_String = MethodTypeDesc.of(CD_MemoryLayout$PathElement, CD_String);
/**
* MTD_MemorySegment
*/
public static final MethodTypeDesc MTD_MemorySegment = MethodTypeDesc.of(CD_MemorySegment);
/**
* MTD_MemorySegment_Arena_Upcall
*/
public static final MethodTypeDesc MTD_MemorySegment_Arena_Upcall = MethodTypeDesc.of(CD_MemorySegment, CD_Arena, CD_Upcall);
/**
* MTD_MemorySegment_Arena_UpcallArray
*/
public static final MethodTypeDesc MTD_MemorySegment_Arena_UpcallArray = MethodTypeDesc.of(CD_MemorySegment, CD_Arena, CD_Upcall.arrayType());
/**
* MTD_MemorySegment_long_long_long
*/
public static final MethodTypeDesc MTD_MemorySegment_long_long_long = MethodTypeDesc.of(CD_MemorySegment, CD_long, CD_long, CD_long);
/**
* MTD_MemorySegment_SegmentAllocator_booleanArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_booleanArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_boolean.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_charArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_charArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_char.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_byteArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_byteArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_byte.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_shortArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_shortArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_short.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_intArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_intArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_int.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_longArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_longArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_long.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_floatArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_floatArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_float.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_doubleArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_doubleArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_double.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_MemorySegmentArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_MemorySegmentArray = MethodTypeDesc.of(CD_MemorySegment, CD_SegmentAllocator, CD_MemorySegment.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_String
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_String = MethodTypeDesc.of(CD_MemorySegment,
CD_SegmentAllocator,
CD_String);
/**
* MTD_MemorySegment_SegmentAllocator_String_Charset
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_String_Charset = MethodTypeDesc.of(CD_MemorySegment,
CD_SegmentAllocator,
CD_String,
CD_Charset);
/**
* MTD_MemorySegment_SegmentAllocator_StringArray
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_StringArray = MethodTypeDesc.of(CD_MemorySegment,
CD_SegmentAllocator,
CD_String.arrayType());
/**
* MTD_MemorySegment_SegmentAllocator_StringArray_Charset
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_StringArray_Charset = MethodTypeDesc.of(CD_MemorySegment,
CD_SegmentAllocator,
CD_String.arrayType(),
CD_Charset);
/**
* MTD_MemorySegment_SegmentAllocator_Struct
*/
public static final MethodTypeDesc MTD_MemorySegment_SegmentAllocator_StructArray = MethodTypeDesc.of(CD_MemorySegment,
CD_SegmentAllocator,
CD_Struct.arrayType());
/**
* MTD_MemorySegment_Struct
*/
public static final MethodTypeDesc MTD_MemorySegment_Struct = MethodTypeDesc.of(CD_MemorySegment, CD_Struct);
/**
* MTD_MemoryStack
*/
public static final MethodTypeDesc MTD_MemoryStack = MethodTypeDesc.of(CD_MemoryStack);
/**
* MTD_Object_MemorySegment
*/
public static final MethodTypeDesc MTD_Object_MemorySegment = MethodTypeDesc.of(CD_Object, CD_MemorySegment);
/**
* MTD_Object_Object
*/
public static final MethodTypeDesc MTD_Object_Object = MethodTypeDesc.of(CD_Object, CD_Object);
/**
* MTD_ProcessorType$Upcall$Factory
*/
public static final MethodTypeDesc MTD_ProcessorType$Upcall$Factory = MethodTypeDesc.of(CD_ProcessorType$Upcall$Factory);
/**
* MTD_ProcessorType_Class
*/
public static final MethodTypeDesc MTD_ProcessorType_Class = MethodTypeDesc.of(CD_ProcessorType, CD_Class);
/**
* MTD_String_MemorySegment
*/
public static final MethodTypeDesc MTD_String_MemorySegment = MethodTypeDesc.of(CD_String, CD_MemorySegment);
/**
* MTD_String_MemorySegment_Charset
*/
public static final MethodTypeDesc MTD_String_MemorySegment_Charset = MethodTypeDesc.of(CD_String, CD_MemorySegment, CD_Charset);
/**
* MTD_StringArray_MemorySegment
*/
public static final MethodTypeDesc MTD_StringArray_MemorySegment = MethodTypeDesc.of(CD_String.arrayType(), CD_MemorySegment);
/**
* MTD_StringArray_MemorySegment_Charset
*/
public static final MethodTypeDesc MTD_StringArray_MemorySegment_Charset = MethodTypeDesc.of(CD_String.arrayType(), CD_MemorySegment, CD_Charset);
/**
* MTD_StructAllocatorSpec
*/
public static final MethodTypeDesc MTD_StructAllocatorSpec = MethodTypeDesc.of(CD_StructAllocatorSpec);
/**
* MTD_StructLayout
*/
public static final MethodTypeDesc MTD_StructLayout = MethodTypeDesc.of(CD_StructLayout);
/**
* MTD_SymbolLookup
*/
public static final MethodTypeDesc MTD_SymbolLookup = MethodTypeDesc.of(CD_SymbolLookup);
/**
* MTD_Upcall_MemorySegment
*/
public static final MethodTypeDesc MTD_Upcall_MemorySegment = MethodTypeDesc.of(CD_Upcall, CD_MemorySegment);
/**
* MTD_VarHandle_MemoryLayout$PathElementArray
*/
public static final MethodTypeDesc MTD_VarHandle_MemoryLayout$PathElementArray = MethodTypeDesc.of(CD_VarHandle, CD_MemoryLayout$PathElement.arrayType());
/**
* MTD_void_long_int
*/
public static final MethodTypeDesc MTD_void_long_int = MethodTypeDesc.of(CD_void, CD_long, CD_int);
/**
* MTD_void_MemorySegment_long
*/
public static final MethodTypeDesc MTD_void_MemorySegment_long = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_long);
/**
* MTD_void_MemorySegment_booleanArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_booleanArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_boolean.arrayType());
/**
* MTD_void_MemorySegment_charArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_charArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_char.arrayType());
/**
* MTD_void_MemorySegment_byteArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_byteArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_byte.arrayType());
/**
* MTD_void_MemorySegment_shortArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_shortArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_short.arrayType());
/**
* MTD_void_MemorySegment_intArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_intArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_int.arrayType());
/**
* MTD_void_MemorySegment_longArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_longArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_long.arrayType());
/**
* MTD_void_MemorySegment_floatArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_floatArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_float.arrayType());
/**
* MTD_void_MemorySegment_doubleArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_doubleArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_double.arrayType());
/**
* MTD_void_MemorySegment_MemorySegmentArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_MemorySegmentArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_MemorySegment.arrayType());
/**
* MTD_void_MemorySegment_StringArray
*/
public static final MethodTypeDesc MTD_void_MemorySegment_StringArray = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_String.arrayType());
/**
* MTD_void_MemorySegment_StringArray_Charset
*/
public static final MethodTypeDesc MTD_void_MemorySegment_StringArray_Charset = MethodTypeDesc.of(CD_void, CD_MemorySegment, CD_String.arrayType(), CD_Charset);
/**
* MTD_void_String_Throwable
*/
public static final MethodTypeDesc MTD_void_String_Throwable = MethodTypeDesc.of(CD_void, CD_String, CD_Throwable);
/**
* DCD_classData_DowncallData
*/
public static final DynamicConstantDesc> DCD_classData_DowncallData = DynamicConstantDesc.ofNamed(BSM_CLASS_DATA, DEFAULT_NAME, CD_DowncallData);
/**
* DCD_classData_StructLayout
*/
public static final DynamicConstantDesc> DCD_classData_StructLayout = DynamicConstantDesc.ofNamed(BSM_CLASS_DATA, DEFAULT_NAME, CD_StructLayout);
private Constants() {
}
}