mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-23 06:56:27 +00:00
more generate_const
This commit is contained in:
parent
6e5a623352
commit
1aa65e75fa
@ -172,6 +172,7 @@ csbindgen::Builder::default()
|
|||||||
.csharp_use_function_pointer(true) // optional, default: true
|
.csharp_use_function_pointer(true) // optional, default: true
|
||||||
.csharp_disable_emit_dll_name(false) // optional, default: false
|
.csharp_disable_emit_dll_name(false) // optional, default: false
|
||||||
.csharp_imported_namespaces("MyLib") // optional, default: empty
|
.csharp_imported_namespaces("MyLib") // optional, default: empty
|
||||||
|
.csharp_generate_const (false) // optional, default: false
|
||||||
.csharp_dll_name_if("UNITY_IOS && !UNITY_EDITOR", "__Internal") // optional, default: ""
|
.csharp_dll_name_if("UNITY_IOS && !UNITY_EDITOR", "__Internal") // optional, default: ""
|
||||||
.generate_csharp_file("../dotnet-sandbox/NativeMethods.cs") // required
|
.generate_csharp_file("../dotnet-sandbox/NativeMethods.cs") // required
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -195,6 +196,8 @@ namespace {csharp_namespace}
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{csharp_generate_const}
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "{csharp_entry_point_prefix}LZ4_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "{csharp_entry_point_prefix}LZ4_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern int {csharp_method_prefix}LZ4_versionNumber();
|
public static extern int {csharp_method_prefix}LZ4_versionNumber();
|
||||||
}
|
}
|
||||||
@ -204,6 +207,8 @@ namespace {csharp_namespace}
|
|||||||
|
|
||||||
`csharp_disable_emit_dll_name` is optional, if set to true then don't emit `const string __DllName`. It is useful for generate same class-name from different builder.
|
`csharp_disable_emit_dll_name` is optional, if set to true then don't emit `const string __DllName`. It is useful for generate same class-name from different builder.
|
||||||
|
|
||||||
|
`csharp_generate_const` is optional, if set to true then generate C# `const` field from Rust `const`.
|
||||||
|
|
||||||
`input_extern_file` and `input_bindgen_file` allow mulitple call, if you need to add dependent struct, use this.
|
`input_extern_file` and `input_bindgen_file` allow mulitple call, if you need to add dependent struct, use this.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
@ -267,6 +272,7 @@ csbindgen::Builder::default()
|
|||||||
.csharp_method_prefix("") // optional, default: ""
|
.csharp_method_prefix("") // optional, default: ""
|
||||||
.csharp_use_function_pointer(true) // optional, default: true
|
.csharp_use_function_pointer(true) // optional, default: true
|
||||||
.csharp_imported_namespaces("MyLib") // optional, default: empty
|
.csharp_imported_namespaces("MyLib") // optional, default: empty
|
||||||
|
.csharp_generate_const (false) // optional, default: false
|
||||||
.csharp_dll_name_if("UNITY_IOS && !UNITY_EDITOR", "__Internal") // optional, default: ""
|
.csharp_dll_name_if("UNITY_IOS && !UNITY_EDITOR", "__Internal") // optional, default: ""
|
||||||
.generate_to_file("src/lz4_ffi.rs", "../dotnet-sandbox/lz4_bindgen.cs") // required
|
.generate_to_file("src/lz4_ffi.rs", "../dotnet-sandbox/lz4_bindgen.cs") // required
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
3
csbindgen-tests/build.rs
vendored
3
csbindgen-tests/build.rs
vendored
@ -62,6 +62,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
//.csharp_c_long_convert("int")
|
//.csharp_c_long_convert("int")
|
||||||
//.csharp_c_ulong_convert("uint")
|
//.csharp_c_ulong_convert("uint")
|
||||||
// .csharp_use_function_pointer(true)
|
// .csharp_use_function_pointer(true)
|
||||||
|
.csharp_generate_const(true)
|
||||||
.generate_to_file("src/lz4_ffi.rs", "../dotnet-sandbox/lz4_bindgen.cs")
|
.generate_to_file("src/lz4_ffi.rs", "../dotnet-sandbox/lz4_bindgen.cs")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
@ -88,6 +89,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
.csharp_class_name("NativeMethods")
|
.csharp_class_name("NativeMethods")
|
||||||
.csharp_dll_name("csbindgen_tests")
|
.csharp_dll_name("csbindgen_tests")
|
||||||
.csharp_use_function_pointer(true)
|
.csharp_use_function_pointer(true)
|
||||||
|
.csharp_generate_const(true)
|
||||||
.generate_csharp_file("../dotnet-sandbox/NativeMethods.cs")
|
.generate_csharp_file("../dotnet-sandbox/NativeMethods.cs")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
@ -121,6 +123,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||||||
.rust_file_header("use super::bullet3::*;")
|
.rust_file_header("use super::bullet3::*;")
|
||||||
.csharp_class_name("LibBullet3")
|
.csharp_class_name("LibBullet3")
|
||||||
.csharp_dll_name("libbullet3")
|
.csharp_dll_name("libbullet3")
|
||||||
|
.csharp_generate_const(true)
|
||||||
.generate_to_file("src/bullet3_ffi.rs", "../dotnet-sandbox/bullet3_bindgen.cs")?;
|
.generate_to_file("src/bullet3_ffi.rs", "../dotnet-sandbox/bullet3_bindgen.cs")?;
|
||||||
|
|
||||||
|
|
||||||
|
12
csbindgen-tests/src/lib.rs
vendored
12
csbindgen-tests/src/lib.rs
vendored
@ -115,6 +115,18 @@ bitflags! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const FOO: i32 = 10;
|
||||||
|
pub const BAR: f32 = 120.432;
|
||||||
|
pub const BAR32: f32 = 120.431;
|
||||||
|
pub const BAR64: f64 = 120.432;
|
||||||
|
pub const STR: &str = "aiueo3";
|
||||||
|
pub const BSTR: &[u8] = b"kakikukeko"; // currently not supported.
|
||||||
|
pub const CBYTE: u8 = b'A';
|
||||||
|
pub const CCHAR: char = 'あ';
|
||||||
|
pub const BOOLCONST_T: bool = true;
|
||||||
|
pub const BOOLCONST_F: bool = false;
|
||||||
|
|
||||||
|
|
||||||
/// my comment!
|
/// my comment!
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
extern "C" fn comment_one(_flags: EnumFlags) {}
|
extern "C" fn comment_one(_flags: EnumFlags) {}
|
||||||
|
@ -293,7 +293,7 @@ pub fn emit_csharp(
|
|||||||
|
|
||||||
let mut const_string = String::new();
|
let mut const_string = String::new();
|
||||||
for item in consts {
|
for item in consts {
|
||||||
let type_name = item.rust_type.to_csharp_string(
|
let mut type_name = item.rust_type.to_csharp_string(
|
||||||
options,
|
options,
|
||||||
aliases,
|
aliases,
|
||||||
false,
|
false,
|
||||||
@ -301,15 +301,41 @@ pub fn emit_csharp(
|
|||||||
&"".to_string(),
|
&"".to_string(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// special case for string, char, ByteStr
|
||||||
|
if item.value.starts_with("\"") {
|
||||||
|
type_name = "string".to_string();
|
||||||
|
} else if item.value.starts_with("\'") {
|
||||||
|
type_name = "char".to_string();
|
||||||
|
}
|
||||||
|
|
||||||
|
if item.value.starts_with("[") {
|
||||||
const_string.push_str(
|
const_string.push_str(
|
||||||
format!(
|
format!(
|
||||||
" public {} {} = {};",
|
" {} static ReadOnlySpan<byte> {} => new byte[] {};\n",
|
||||||
type_name,
|
accessibility,
|
||||||
escape_name(item.const_name.as_str()),
|
escape_name(item.const_name.as_str()),
|
||||||
item.value
|
item.value.replace("[", "{ ").replace("]", " }")
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
let value = if type_name == "float" {
|
||||||
|
format!("{}f", item.value)
|
||||||
|
}else {
|
||||||
|
item.value.to_string()
|
||||||
|
};
|
||||||
|
|
||||||
|
const_string.push_str(
|
||||||
|
format!(
|
||||||
|
" {} const {} {} = {};\n",
|
||||||
|
accessibility,
|
||||||
|
type_name,
|
||||||
|
escape_name(item.const_name.as_str()),
|
||||||
|
value
|
||||||
|
)
|
||||||
|
.as_str(),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut imported_namespaces = String::new();
|
let mut imported_namespaces = String::new();
|
||||||
@ -334,12 +360,13 @@ namespace {namespace}
|
|||||||
{{
|
{{
|
||||||
{dll_name}
|
{dll_name}
|
||||||
|
|
||||||
|
{const_string}
|
||||||
|
|
||||||
{method_list_string}
|
{method_list_string}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{structs_string}
|
{structs_string}
|
||||||
{enum_string}
|
{enum_string}
|
||||||
{const_string}
|
|
||||||
}}
|
}}
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
|
@ -242,13 +242,13 @@ pub fn collect_const(ast: &syn::File, result: &mut Vec<RustConst>) {
|
|||||||
if let syn::Expr::Lit(lit_expr) = &*ct.expr {
|
if let syn::Expr::Lit(lit_expr) = &*ct.expr {
|
||||||
let value = match &lit_expr.lit {
|
let value = match &lit_expr.lit {
|
||||||
syn::Lit::Str(s) => {
|
syn::Lit::Str(s) => {
|
||||||
format!("{}", s.value())
|
format!("\"{}\"", s.value())
|
||||||
}
|
}
|
||||||
syn::Lit::ByteStr(bs) => {
|
syn::Lit::ByteStr(bs) => {
|
||||||
format!("{:?}", bs.value())
|
format!("{:?}", bs.value())
|
||||||
}
|
}
|
||||||
syn::Lit::Byte(b) => {
|
syn::Lit::Byte(b) => {
|
||||||
format!("{:?}", b.value())
|
format!("{}", b.value())
|
||||||
}
|
}
|
||||||
syn::Lit::Char(c) => {
|
syn::Lit::Char(c) => {
|
||||||
format!("'{}'", c.value())
|
format!("'{}'", c.value())
|
||||||
|
13
dotnet-sandbox/NativeMethods.cs
vendored
13
dotnet-sandbox/NativeMethods.cs
vendored
@ -14,6 +14,18 @@ namespace CsBindgen
|
|||||||
{
|
{
|
||||||
const string __DllName = "csbindgen_tests";
|
const string __DllName = "csbindgen_tests";
|
||||||
|
|
||||||
|
internal const int FOO = 10;
|
||||||
|
internal const float BAR = 120.432f;
|
||||||
|
internal const float BAR32 = 120.431f;
|
||||||
|
internal const double BAR64 = 120.432;
|
||||||
|
internal const string STR = "aiueo3";
|
||||||
|
internal static ReadOnlySpan<byte> BSTR => new byte[] { 107, 97, 107, 105, 107, 117, 107, 101, 107, 111 };
|
||||||
|
internal const byte CBYTE = 65;
|
||||||
|
internal const char CCHAR = 'あ';
|
||||||
|
internal const bool BOOLCONST_T = true;
|
||||||
|
internal const bool BOOLCONST_F = false;
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "JPH_PruneContactPoints", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "JPH_PruneContactPoints", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern void JPH_PruneContactPoints(void/* UInt128[] */* ioContactPointsOn1, JPH_ContactManifold* ioContactPointsOn2);
|
public static extern void JPH_PruneContactPoints(void/* UInt128[] */* ioContactPointsOn1, JPH_ContactManifold* ioContactPointsOn2);
|
||||||
|
|
||||||
@ -248,6 +260,5 @@ namespace CsBindgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
dotnet-sandbox/NestedModuleTests.cs
vendored
3
dotnet-sandbox/NestedModuleTests.cs
vendored
@ -14,6 +14,8 @@ namespace CsBindgen
|
|||||||
{
|
{
|
||||||
const string __DllName = "csbindgen_tests_nested_module";
|
const string __DllName = "csbindgen_tests_nested_module";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "triple_input", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "triple_input", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern int triple_input(NumberStruct input);
|
public static extern int triple_input(NumberStruct input);
|
||||||
|
|
||||||
@ -41,6 +43,5 @@ namespace CsBindgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
424
dotnet-sandbox/bullet3_bindgen.cs
vendored
424
dotnet-sandbox/bullet3_bindgen.cs
vendored
@ -14,6 +14,429 @@ namespace CsBindgen
|
|||||||
{
|
{
|
||||||
const string __DllName = "libbullet3";
|
const string __DllName = "libbullet3";
|
||||||
|
|
||||||
|
internal const uint SHARED_MEMORY_KEY = 12347;
|
||||||
|
internal const uint SHARED_MEMORY_MAGIC_NUMBER = 202010061;
|
||||||
|
internal const uint MAX_VR_ANALOG_AXIS = 5;
|
||||||
|
internal const uint MAX_VR_BUTTONS = 64;
|
||||||
|
internal const uint MAX_VR_CONTROLLERS = 8;
|
||||||
|
internal const uint MAX_KEYBOARD_EVENTS = 256;
|
||||||
|
internal const uint MAX_MOUSE_EVENTS = 256;
|
||||||
|
internal const uint MAX_SDF_BODIES = 512;
|
||||||
|
internal const uint MAX_USER_DATA_KEY_LENGTH = 256;
|
||||||
|
internal const uint MAX_REQUESTED_BODIES_LENGTH = 256;
|
||||||
|
internal const uint MAX_RAY_INTERSECTION_BATCH_SIZE = 256;
|
||||||
|
internal const uint MAX_RAY_INTERSECTION_BATCH_SIZE_STREAMING = 16384;
|
||||||
|
internal const uint MAX_RAY_HITS = 256;
|
||||||
|
internal const uint VISUAL_SHAPE_MAX_PATH_LEN = 1024;
|
||||||
|
internal const uint B3_MAX_PLUGIN_ARG_SIZE = 128;
|
||||||
|
internal const uint B3_MAX_PLUGIN_ARG_TEXT_LEN = 1024;
|
||||||
|
internal const uint MAX_ISLANDS_ANALYTICS = 64;
|
||||||
|
internal const uint B3_MAX_NUM_VERTICES = 131072;
|
||||||
|
internal const uint B3_MAX_NUM_INDICES = 524288;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_INVALID = 0;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_SDF = 1;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_URDF = 2;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_BULLET = 3;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SAVE_BULLET = 4;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_MJCF = 5;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_SOFT_BODY = 6;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SEND_BULLET_DATA_STREAM = 7;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_BOX_COLLISION_SHAPE = 8;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_RIGID_BODY = 9;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_DELETE_RIGID_BODY = 10;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_SENSOR = 11;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_INIT_POSE = 12;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SEND_PHYSICS_SIMULATION_PARAMETERS = 13;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SEND_DESIRED_STATE = 14;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_ACTUAL_STATE = 15;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_DEBUG_LINES = 16;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_BODY_INFO = 17;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_INTERNAL_DATA = 18;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_STEP_FORWARD_SIMULATION = 19;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_RESET_SIMULATION = 20;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_PICK_BODY = 21;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_MOVE_PICKED_BODY = 22;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REMOVE_PICKING_CONSTRAINT_BODY = 23;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_CAMERA_IMAGE_DATA = 24;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_APPLY_EXTERNAL_FORCE = 25;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CALCULATE_INVERSE_DYNAMICS = 26;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CALCULATE_INVERSE_KINEMATICS = 27;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CALCULATE_JACOBIAN = 28;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CALCULATE_MASS_MATRIX = 29;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_USER_CONSTRAINT = 30;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_CONTACT_POINT_INFORMATION = 31;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_RAY_CAST_INTERSECTIONS = 32;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_AABB_OVERLAP = 33;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SAVE_WORLD = 34;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_VISUAL_SHAPE_INFO = 35;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_UPDATE_VISUAL_SHAPE = 36;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_LOAD_TEXTURE = 37;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SET_SHADOW = 38;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_USER_DEBUG_DRAW = 39;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_VR_EVENTS_DATA = 40;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SET_VR_CAMERA_STATE = 41;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SYNC_BODY_INFO = 42;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_STATE_LOGGING = 43;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CONFIGURE_OPENGL_VISUALIZER = 44;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_KEYBOARD_EVENTS_DATA = 45;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_OPENGL_VISUALIZER_CAMERA = 46;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REMOVE_BODY = 47;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CHANGE_DYNAMICS_INFO = 48;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_GET_DYNAMICS_INFO = 49;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_PROFILE_TIMING = 50;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_COLLISION_SHAPE = 51;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_VISUAL_SHAPE = 52;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CREATE_MULTI_BODY = 53;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_COLLISION_INFO = 54;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_MOUSE_EVENTS_DATA = 55;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CHANGE_TEXTURE = 56;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SET_ADDITIONAL_SEARCH_PATH = 57;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_CUSTOM_COMMAND = 58;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_PHYSICS_SIMULATION_PARAMETERS = 59;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SAVE_STATE = 60;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_RESTORE_STATE = 61;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REMOVE_STATE = 62;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_COLLISION_SHAPE_INFO = 63;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_SYNC_USER_DATA = 64;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_USER_DATA = 65;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_ADD_USER_DATA = 66;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REMOVE_USER_DATA = 67;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_COLLISION_FILTER = 68;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_MESH_DATA = 69;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_PERFORM_COLLISION_DETECTION = 70;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_RESET_MESH_DATA = 71;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_REQUEST_TETRA_MESH_DATA = 72;
|
||||||
|
internal const int EnumSharedMemoryClientCommand_CMD_MAX_CLIENT_COMMANDS = 73;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SHARED_MEMORY_NOT_INITIALIZED = 0;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_WAITING_FOR_CLIENT_COMMAND = 1;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CLIENT_COMMAND_COMPLETED = 2;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_UNKNOWN_COMMAND_FLUSHED = 3;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SDF_LOADING_COMPLETED = 4;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SDF_LOADING_FAILED = 5;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_URDF_LOADING_COMPLETED = 6;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_URDF_LOADING_FAILED = 7;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_LOADING_COMPLETED = 8;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_LOADING_FAILED = 9;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_SAVING_COMPLETED = 10;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_SAVING_FAILED = 11;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_MJCF_LOADING_COMPLETED = 12;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_MJCF_LOADING_FAILED = 13;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_INTERNAL_DATA_COMPLETED = 14;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_INTERNAL_DATA_FAILED = 15;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_DATA_STREAM_RECEIVED_COMPLETED = 16;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BULLET_DATA_STREAM_RECEIVED_FAILED = 17;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BOX_COLLISION_SHAPE_CREATION_COMPLETED = 18;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RIGID_BODY_CREATION_COMPLETED = 19;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SET_JOINT_FEEDBACK_COMPLETED = 20;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_ACTUAL_STATE_UPDATE_COMPLETED = 21;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_ACTUAL_STATE_UPDATE_FAILED = 22;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_DEBUG_LINES_COMPLETED = 23;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_DEBUG_LINES_OVERFLOW_FAILED = 24;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_DESIRED_STATE_RECEIVED_COMPLETED = 25;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_STEP_FORWARD_SIMULATION_COMPLETED = 26;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RESET_SIMULATION_COMPLETED = 27;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CAMERA_IMAGE_COMPLETED = 28;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CAMERA_IMAGE_FAILED = 29;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BODY_INFO_COMPLETED = 30;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_BODY_INFO_FAILED = 31;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_INVALID_STATUS = 32;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_INVERSE_DYNAMICS_COMPLETED = 33;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_INVERSE_DYNAMICS_FAILED = 34;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_JACOBIAN_COMPLETED = 35;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_JACOBIAN_FAILED = 36;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_MASS_MATRIX_COMPLETED = 37;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATED_MASS_MATRIX_FAILED = 38;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CONTACT_POINT_INFORMATION_COMPLETED = 39;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CONTACT_POINT_INFORMATION_FAILED = 40;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_AABB_OVERLAP_COMPLETED = 41;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_AABB_OVERLAP_FAILED = 42;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATE_INVERSE_KINEMATICS_COMPLETED = 43;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CALCULATE_INVERSE_KINEMATICS_FAILED = 44;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SAVE_WORLD_COMPLETED = 45;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SAVE_WORLD_FAILED = 46;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_VISUAL_SHAPE_INFO_COMPLETED = 47;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_VISUAL_SHAPE_INFO_FAILED = 48;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_VISUAL_SHAPE_UPDATE_COMPLETED = 49;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_VISUAL_SHAPE_UPDATE_FAILED = 50;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_LOAD_TEXTURE_COMPLETED = 51;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_LOAD_TEXTURE_FAILED = 52;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_DEBUG_DRAW_COMPLETED = 53;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_DEBUG_DRAW_PARAMETER_COMPLETED = 54;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_DEBUG_DRAW_FAILED = 55;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_CONSTRAINT_COMPLETED = 56;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_CONSTRAINT_INFO_COMPLETED = 57;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_CONSTRAINT_REQUEST_STATE_COMPLETED = 58;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_USER_CONSTRAINT_COMPLETED = 59;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CHANGE_USER_CONSTRAINT_COMPLETED = 60;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_USER_CONSTRAINT_FAILED = 61;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CHANGE_USER_CONSTRAINT_FAILED = 62;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_USER_CONSTRAINT_FAILED = 63;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_VR_EVENTS_DATA_COMPLETED = 64;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_RAY_CAST_INTERSECTIONS_COMPLETED = 65;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SYNC_BODY_INFO_COMPLETED = 66;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SYNC_BODY_INFO_FAILED = 67;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_STATE_LOGGING_COMPLETED = 68;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_STATE_LOGGING_START_COMPLETED = 69;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_STATE_LOGGING_FAILED = 70;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_KEYBOARD_EVENTS_DATA_COMPLETED = 71;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_KEYBOARD_EVENTS_DATA_FAILED = 72;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_OPENGL_VISUALIZER_CAMERA_FAILED = 73;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_OPENGL_VISUALIZER_CAMERA_COMPLETED = 74;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_BODY_COMPLETED = 75;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_BODY_FAILED = 76;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_GET_DYNAMICS_INFO_COMPLETED = 77;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_GET_DYNAMICS_INFO_FAILED = 78;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_COLLISION_SHAPE_FAILED = 79;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_COLLISION_SHAPE_COMPLETED = 80;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_VISUAL_SHAPE_FAILED = 81;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_VISUAL_SHAPE_COMPLETED = 82;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_MULTI_BODY_FAILED = 83;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CREATE_MULTI_BODY_COMPLETED = 84;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_COLLISION_INFO_COMPLETED = 85;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_COLLISION_INFO_FAILED = 86;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED = 87;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CHANGE_TEXTURE_COMMAND_FAILED = 88;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CUSTOM_COMMAND_COMPLETED = 89;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_CUSTOM_COMMAND_FAILED = 90;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_PHYSICS_SIMULATION_PARAMETERS_COMPLETED = 91;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SAVE_STATE_FAILED = 92;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SAVE_STATE_COMPLETED = 93;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RESTORE_STATE_FAILED = 94;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RESTORE_STATE_COMPLETED = 95;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_COLLISION_SHAPE_INFO_COMPLETED = 96;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_COLLISION_SHAPE_INFO_FAILED = 97;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_LOAD_SOFT_BODY_FAILED = 98;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_LOAD_SOFT_BODY_COMPLETED = 99;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SYNC_USER_DATA_COMPLETED = 100;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_SYNC_USER_DATA_FAILED = 101;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_USER_DATA_COMPLETED = 102;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_USER_DATA_FAILED = 103;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_ADD_USER_DATA_COMPLETED = 104;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_ADD_USER_DATA_FAILED = 105;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_USER_DATA_COMPLETED = 106;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_USER_DATA_FAILED = 107;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_STATE_COMPLETED = 108;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REMOVE_STATE_FAILED = 109;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_MESH_DATA_COMPLETED = 110;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_MESH_DATA_FAILED = 111;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_PERFORM_COLLISION_DETECTION_COMPLETED = 112;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RESET_MESH_DATA_COMPLETED = 113;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_RESET_MESH_DATA_FAILED = 114;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_TETRA_MESH_DATA_COMPLETED = 115;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_REQUEST_TETRA_MESH_DATA_FAILED = 116;
|
||||||
|
internal const int EnumSharedMemoryServerStatus_CMD_MAX_SERVER_COMMANDS = 117;
|
||||||
|
internal const int JointInfoFlags_JOINT_HAS_MOTORIZED_POWER = 1;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_BOX = 1;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CYLINDER_X = 2;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CYLINDER_Y = 3;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CYLINDER_Z = 4;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CAPSULE_X = 5;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CAPSULE_Y = 6;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_CAPSULE_Z = 7;
|
||||||
|
internal const int COLLISION_SHAPE_TYPE_SPHERE = 8;
|
||||||
|
internal const int JointType_eRevoluteType = 0;
|
||||||
|
internal const int JointType_ePrismaticType = 1;
|
||||||
|
internal const int JointType_eSphericalType = 2;
|
||||||
|
internal const int JointType_ePlanarType = 3;
|
||||||
|
internal const int JointType_eFixedType = 4;
|
||||||
|
internal const int JointType_ePoint2PointType = 5;
|
||||||
|
internal const int JointType_eGearType = 6;
|
||||||
|
internal const int b3JointInfoFlags_eJointChangeMaxForce = 1;
|
||||||
|
internal const int b3JointInfoFlags_eJointChangeChildFramePosition = 2;
|
||||||
|
internal const int b3JointInfoFlags_eJointChangeChildFrameOrientation = 4;
|
||||||
|
internal const int UserDataValueType_USER_DATA_VALUE_TYPE_BYTES = 0;
|
||||||
|
internal const int UserDataValueType_USER_DATA_VALUE_TYPE_STRING = 1;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_ADD_CONSTRAINT = 1;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_REMOVE_CONSTRAINT = 2;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_CONSTRAINT = 4;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_PIVOT_IN_B = 8;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_FRAME_ORN_IN_B = 16;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_MAX_FORCE = 32;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_REQUEST_INFO = 64;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_GEAR_RATIO = 128;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_GEAR_AUX_LINK = 256;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_RELATIVE_POSITION_TARGET = 512;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_CHANGE_ERP = 1024;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_REQUEST_STATE = 2048;
|
||||||
|
internal const int EnumUserConstraintFlags_USER_CONSTRAINT_ADD_SOFT_BODY_ANCHOR = 4096;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateEnableSleeping = 1;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateDisableSleeping = 2;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateWakeUp = 4;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateSleep = 8;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateEnableWakeup = 16;
|
||||||
|
internal const int DynamicsActivationState_eActivationStateDisableWakeup = 32;
|
||||||
|
internal const int b3BodyType_BT_RIGID_BODY = 1;
|
||||||
|
internal const int b3BodyType_BT_MULTI_BODY = 2;
|
||||||
|
internal const int b3BodyType_BT_SOFT_BODY = 3;
|
||||||
|
internal const int SensorType_eSensorForceTorqueType = 1;
|
||||||
|
internal const int eMeshDataFlags_B3_MESH_DATA_SIMULATION_MESH = 1;
|
||||||
|
internal const int eMeshDataFlags_B3_MESH_DATA_SIMULATION_INDICES = 2;
|
||||||
|
internal const int eMeshDataFlags_B3_MESH_DATA_GRAPHICS_INDICES = 4;
|
||||||
|
internal const int eMeshDataFlags_B3_MESH_DATA_SIMULATION_MESH_VELOCITY = 8;
|
||||||
|
internal const int eMeshDataEnum_B3_MESH_DATA_COLLISIONSHAPEINDEX = 1;
|
||||||
|
internal const int eMeshDataEnum_B3_MESH_DATA_FLAGS = 2;
|
||||||
|
internal const int eTetraMeshDataEnum_B3_TETRA_MESH_DATA_FLAGS = 2;
|
||||||
|
internal const int b3VREventType_VR_CONTROLLER_MOVE_EVENT = 1;
|
||||||
|
internal const int b3VREventType_VR_CONTROLLER_BUTTON_EVENT = 2;
|
||||||
|
internal const int b3VREventType_VR_HMD_MOVE_EVENT = 4;
|
||||||
|
internal const int b3VREventType_VR_GENERIC_TRACKER_MOVE_EVENT = 8;
|
||||||
|
internal const int b3VRButtonInfo_eButtonIsDown = 1;
|
||||||
|
internal const int b3VRButtonInfo_eButtonTriggered = 2;
|
||||||
|
internal const int b3VRButtonInfo_eButtonReleased = 4;
|
||||||
|
internal const int eVRDeviceTypeEnums_VR_DEVICE_CONTROLLER = 1;
|
||||||
|
internal const int eVRDeviceTypeEnums_VR_DEVICE_HMD = 2;
|
||||||
|
internal const int eVRDeviceTypeEnums_VR_DEVICE_GENERIC_TRACKER = 4;
|
||||||
|
internal const int EVRCameraFlags_VR_CAMERA_TRACK_OBJECT_ORIENTATION = 1;
|
||||||
|
internal const int eMouseEventTypeEnums_MOUSE_MOVE_EVENT = 1;
|
||||||
|
internal const int eMouseEventTypeEnums_MOUSE_BUTTON_EVENT = 2;
|
||||||
|
internal const int b3NotificationType_SIMULATION_RESET = 0;
|
||||||
|
internal const int b3NotificationType_BODY_ADDED = 1;
|
||||||
|
internal const int b3NotificationType_BODY_REMOVED = 2;
|
||||||
|
internal const int b3NotificationType_USER_DATA_ADDED = 3;
|
||||||
|
internal const int b3NotificationType_USER_DATA_REMOVED = 4;
|
||||||
|
internal const int b3NotificationType_LINK_DYNAMICS_CHANGED = 5;
|
||||||
|
internal const int b3NotificationType_VISUAL_SHAPE_CHANGED = 6;
|
||||||
|
internal const int b3NotificationType_TRANSFORM_CHANGED = 7;
|
||||||
|
internal const int b3NotificationType_SIMULATION_STEPPED = 8;
|
||||||
|
internal const int b3NotificationType_SOFTBODY_CHANGED = 9;
|
||||||
|
internal const int b3ResetSimulationFlags_RESET_USE_DEFORMABLE_WORLD = 1;
|
||||||
|
internal const int b3ResetSimulationFlags_RESET_USE_DISCRETE_DYNAMICS_WORLD = 2;
|
||||||
|
internal const int b3ResetSimulationFlags_RESET_USE_SIMPLE_BROADPHASE = 4;
|
||||||
|
internal const int b3ResetSimulationFlags_RESET_USE_REDUCED_DEFORMABLE_WORLD = 8;
|
||||||
|
internal const int CONTACT_QUERY_MODE_REPORT_EXISTING_CONTACT_POINTS = 0;
|
||||||
|
internal const int CONTACT_QUERY_MODE_COMPUTE_CLOSEST_POINTS = 1;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_MINITAUR = 0;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_GENERIC_ROBOT = 1;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_VR_CONTROLLERS = 2;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_VIDEO_MP4 = 3;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_COMMANDS = 4;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_CONTACT_POINTS = 5;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_PROFILE_TIMINGS = 6;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_ALL_COMMANDS = 7;
|
||||||
|
internal const int b3StateLoggingType_STATE_REPLAY_ALL_COMMANDS = 8;
|
||||||
|
internal const int b3StateLoggingType_STATE_LOGGING_CUSTOM_TIMER = 9;
|
||||||
|
internal const int b3VisualShapeDataFlags_eVISUAL_SHAPE_DATA_TEXTURE_UNIQUE_IDS = 1;
|
||||||
|
internal const int eLinkStateFlags_ACTUAL_STATE_COMPUTE_LINKVELOCITY = 1;
|
||||||
|
internal const int eLinkStateFlags_ACTUAL_STATE_COMPUTE_FORWARD_KINEMATICS = 2;
|
||||||
|
internal const int CONTROL_MODE_VELOCITY = 0;
|
||||||
|
internal const int CONTROL_MODE_TORQUE = 1;
|
||||||
|
internal const int CONTROL_MODE_POSITION_VELOCITY_PD = 2;
|
||||||
|
internal const int CONTROL_MODE_PD = 3;
|
||||||
|
internal const int CONTROL_MODE_STABLE_PD = 4;
|
||||||
|
internal const int EnumExternalForceFlags_EF_LINK_FRAME = 1;
|
||||||
|
internal const int EnumExternalForceFlags_EF_WORLD_FRAME = 2;
|
||||||
|
internal const int EnumRenderer_ER_TINY_RENDERER = 65536;
|
||||||
|
internal const int EnumRenderer_ER_BULLET_HARDWARE_OPENGL = 131072;
|
||||||
|
internal const int EnumRendererAuxFlags_ER_SEGMENTATION_MASK_OBJECT_AND_LINKINDEX = 1;
|
||||||
|
internal const int EnumRendererAuxFlags_ER_USE_PROJECTIVE_TEXTURE = 2;
|
||||||
|
internal const int EnumRendererAuxFlags_ER_NO_SEGMENTATION_MASK = 4;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_DLS = 0;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_SDLS = 1;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_TARGET_POSITION = 16;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_TARGET_ORIENTATION = 32;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_NULL_SPACE_VELOCITY = 64;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_JOINT_DAMPING = 128;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_CURRENT_JOINT_POSITIONS = 256;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_MAX_ITERATIONS = 512;
|
||||||
|
internal const int EnumCalculateInverseKinematicsFlags_IK_HAS_RESIDUAL_THRESHOLD = 1024;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_GUI = 1;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_SHADOWS = 2;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_WIREFRAME = 3;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_VR_TELEPORTING = 4;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_VR_PICKING = 5;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_VR_RENDER_CONTROLLERS = 6;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_RENDERING = 7;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_SYNC_RENDERING_INTERNAL = 8;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_KEYBOARD_SHORTCUTS = 9;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_MOUSE_PICKING = 10;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_Y_AXIS_UP = 11;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_TINY_RENDERER = 12;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_RGB_BUFFER_PREVIEW = 13;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_DEPTH_BUFFER_PREVIEW = 14;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_SEGMENTATION_MARK_PREVIEW = 15;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_PLANAR_REFLECTION = 16;
|
||||||
|
internal const int b3ConfigureDebugVisualizerEnum_COV_ENABLE_SINGLE_STEP_RENDERING = 17;
|
||||||
|
internal const int b3AddUserDebugItemEnum_DEB_DEBUG_TEXT_ALWAYS_FACE_CAMERA = 1;
|
||||||
|
internal const int b3AddUserDebugItemEnum_DEB_DEBUG_TEXT_USE_TRUE_TYPE_FONTS = 2;
|
||||||
|
internal const int b3AddUserDebugItemEnum_DEB_DEBUG_TEXT_HAS_TRACKING_OBJECT = 4;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GUI = 1;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_DIRECT = 2;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_SHARED_MEMORY = 3;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_UDP = 4;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_TCP = 5;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_EXISTING_EXAMPLE_BROWSER = 6;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GUI_SERVER = 7;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GUI_MAIN_THREAD = 8;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_SHARED_MEMORY_SERVER = 9;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_DART = 10;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_MUJOCO = 11;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GRPC = 12;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_PHYSX = 13;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_SHARED_MEMORY_GUI = 14;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GRAPHICS_SERVER = 15;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GRAPHICS_SERVER_TCP = 16;
|
||||||
|
internal const int eCONNECT_METHOD_eCONNECT_GRAPHICS_SERVER_MAIN_THREAD = 17;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_INERTIA_FROM_FILE = 2;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_SELF_COLLISION = 8;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_SELF_COLLISION_EXCLUDE_PARENT = 16;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS = 32;
|
||||||
|
internal const int eURDF_Flags_URDF_RESERVED = 64;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_IMPLICIT_CYLINDER = 128;
|
||||||
|
internal const int eURDF_Flags_URDF_GLOBAL_VELOCITIES_MB = 256;
|
||||||
|
internal const int eURDF_Flags_MJCF_COLORS_FROM_FILE = 512;
|
||||||
|
internal const int eURDF_Flags_URDF_ENABLE_CACHED_GRAPHICS_SHAPES = 1024;
|
||||||
|
internal const int eURDF_Flags_URDF_ENABLE_SLEEPING = 2048;
|
||||||
|
internal const int eURDF_Flags_URDF_INITIALIZE_SAT_FEATURES = 4096;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_SELF_COLLISION_INCLUDE_PARENT = 8192;
|
||||||
|
internal const int eURDF_Flags_URDF_PARSE_SENSORS = 16384;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_MATERIAL_COLORS_FROM_MTL = 32768;
|
||||||
|
internal const int eURDF_Flags_URDF_USE_MATERIAL_TRANSPARANCY_FROM_MTL = 65536;
|
||||||
|
internal const int eURDF_Flags_URDF_MAINTAIN_LINK_ORDER = 131072;
|
||||||
|
internal const int eURDF_Flags_URDF_ENABLE_WAKEUP = 262144;
|
||||||
|
internal const int eURDF_Flags_URDF_MERGE_FIXED_LINKS = 524288;
|
||||||
|
internal const int eURDF_Flags_URDF_IGNORE_VISUAL_SHAPES = 1048576;
|
||||||
|
internal const int eURDF_Flags_URDF_IGNORE_COLLISION_SHAPES = 2097152;
|
||||||
|
internal const int eURDF_Flags_URDF_PRINT_URDF_INFO = 4194304;
|
||||||
|
internal const int eURDF_Flags_URDF_GOOGLEY_UNDEFINED_COLORS = 8388608;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_SPHERE = 2;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_BOX = 3;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_CYLINDER = 4;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_MESH = 5;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_PLANE = 6;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_CAPSULE = 7;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_SDF = 8;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_HEIGHTFIELD = 9;
|
||||||
|
internal const int eUrdfGeomTypes_GEOM_UNKNOWN = 10;
|
||||||
|
internal const int eUrdfCollisionFlags_GEOM_FORCE_CONCAVE_TRIMESH = 1;
|
||||||
|
internal const int eUrdfCollisionFlags_GEOM_CONCAVE_INTERNAL_EDGE = 2;
|
||||||
|
internal const int eUrdfCollisionFlags_GEOM_INITIALIZE_SAT_FEATURES = 4096;
|
||||||
|
internal const int eUrdfVisualFlags_GEOM_VISUAL_HAS_RGBA_COLOR = 1;
|
||||||
|
internal const int eUrdfVisualFlags_GEOM_VISUAL_HAS_SPECULAR_COLOR = 2;
|
||||||
|
internal const int eStateLoggingFlags_STATE_LOG_JOINT_MOTOR_TORQUES = 1;
|
||||||
|
internal const int eStateLoggingFlags_STATE_LOG_JOINT_USER_TORQUES = 2;
|
||||||
|
internal const int eStateLoggingFlags_STATE_LOG_JOINT_TORQUES = 3;
|
||||||
|
internal const int eJointFeedbackModes_JOINT_FEEDBACK_IN_WORLD_SPACE = 1;
|
||||||
|
internal const int eJointFeedbackModes_JOINT_FEEDBACK_IN_JOINT_FRAME = 2;
|
||||||
|
internal const int eInternalSimFlags_eVRTinyGUI = 2;
|
||||||
|
internal const int eInternalSimFlags_eDeformableAlternativeIndexing = 4;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_SI = 1;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_PGS = 2;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_DANTZIG = 3;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_LEMKE = 4;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_NNCG = 5;
|
||||||
|
internal const int eConstraintSolverTypes_eConstraintSolverLCP_BLOCK_PGS = 6;
|
||||||
|
internal const int eDynamicTypes_eDynamic = 0;
|
||||||
|
internal const int eDynamicTypes_eStatic = 1;
|
||||||
|
internal const int eDynamicTypes_eKinematic = 2;
|
||||||
|
internal const int eFileIOActions_eAddFileIOAction = 1024;
|
||||||
|
internal const int eFileIOActions_eRemoveFileIOAction = 1025;
|
||||||
|
internal const int eFileIOTypes_ePosixFileIO = 1;
|
||||||
|
internal const int eFileIOTypes_eZipFileIO = 2;
|
||||||
|
internal const int eFileIOTypes_eCNSFileIO = 3;
|
||||||
|
internal const int eFileIOTypes_eInMemoryFileIO = 4;
|
||||||
|
internal const int eEnumUpdateVisualShapeFlags_eVISUAL_SHAPE_DOUBLE_SIDED = 4;
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "b3ConnectSharedMemory", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "b3ConnectSharedMemory", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern b3PhysicsClientHandle__* b3ConnectSharedMemory(int key);
|
public static extern b3PhysicsClientHandle__* b3ConnectSharedMemory(int key);
|
||||||
|
|
||||||
@ -1790,6 +2213,5 @@ namespace CsBindgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
dotnet-sandbox/libphysx_csbindgen.cs
vendored
3
dotnet-sandbox/libphysx_csbindgen.cs
vendored
@ -14,6 +14,8 @@ namespace Physx
|
|||||||
{
|
{
|
||||||
const string __DllName = "libphys";
|
const string __DllName = "libphys";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "physx_create_foundation", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "physx_create_foundation", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern PxFoundation* physx_create_foundation();
|
public static extern PxFoundation* physx_create_foundation();
|
||||||
|
|
||||||
@ -11268,6 +11270,5 @@ namespace Physx
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
dotnet-sandbox/libpng16_csbindgen.cs
vendored
3
dotnet-sandbox/libpng16_csbindgen.cs
vendored
@ -14,6 +14,8 @@ namespace PixivApi.ImageFile
|
|||||||
{
|
{
|
||||||
const string __DllName = "libpng16";
|
const string __DllName = "libpng16";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "fgetwc", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "fgetwc", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern ushort fgetwc(_iobuf* _Stream);
|
public static extern ushort fgetwc(_iobuf* _Stream);
|
||||||
|
|
||||||
@ -1088,6 +1090,5 @@ namespace PixivApi.ImageFile
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
74
dotnet-sandbox/lz4_bindgen.cs
vendored
74
dotnet-sandbox/lz4_bindgen.cs
vendored
@ -19,6 +19,79 @@ namespace CsBindgen
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
public const uint LZ4_FREESTANDING = 0;
|
||||||
|
public const uint LZ4_VERSION_MAJOR = 1;
|
||||||
|
public const uint LZ4_VERSION_MINOR = 9;
|
||||||
|
public const uint LZ4_VERSION_RELEASE = 4;
|
||||||
|
public const uint LZ4_VERSION_NUMBER = 10904;
|
||||||
|
public const uint LZ4_MEMORY_USAGE_MIN = 10;
|
||||||
|
public const uint LZ4_MEMORY_USAGE_DEFAULT = 14;
|
||||||
|
public const uint LZ4_MEMORY_USAGE_MAX = 20;
|
||||||
|
public const uint LZ4_MEMORY_USAGE = 14;
|
||||||
|
public const uint LZ4_MAX_INPUT_SIZE = 2113929216;
|
||||||
|
public const uint LZ4_HASHLOG = 12;
|
||||||
|
public const uint LZ4_HASHTABLESIZE = 16384;
|
||||||
|
public const uint LZ4_HASH_SIZE_U32 = 4096;
|
||||||
|
public const uint _VCRT_COMPILER_PREPROCESSOR = 1;
|
||||||
|
public const uint _SAL_VERSION = 20;
|
||||||
|
public const uint __SAL_H_VERSION = 180000000;
|
||||||
|
public const uint _USE_DECLSPECS_FOR_SAL = 0;
|
||||||
|
public const uint _USE_ATTRIBUTES_FOR_SAL = 0;
|
||||||
|
public const uint _CRT_PACKING = 8;
|
||||||
|
public const uint _HAS_EXCEPTIONS = 1;
|
||||||
|
public const uint _STL_LANG = 0;
|
||||||
|
public const uint _HAS_CXX17 = 0;
|
||||||
|
public const uint _HAS_CXX20 = 0;
|
||||||
|
public const uint _HAS_CXX23 = 0;
|
||||||
|
public const uint _HAS_NODISCARD = 0;
|
||||||
|
public const uint WCHAR_MIN = 0;
|
||||||
|
public const uint WCHAR_MAX = 65535;
|
||||||
|
public const uint WINT_MIN = 0;
|
||||||
|
public const uint WINT_MAX = 65535;
|
||||||
|
public const uint LZ4_STREAM_MINSIZE = 16416;
|
||||||
|
public const uint LZ4_STREAMDECODE_MINSIZE = 32;
|
||||||
|
public const uint LZ4HC_CLEVEL_MIN = 3;
|
||||||
|
public const uint LZ4HC_CLEVEL_DEFAULT = 9;
|
||||||
|
public const uint LZ4HC_CLEVEL_OPT_MIN = 10;
|
||||||
|
public const uint LZ4HC_CLEVEL_MAX = 12;
|
||||||
|
public const uint LZ4HC_DICTIONARY_LOGSIZE = 16;
|
||||||
|
public const uint LZ4HC_MAXD = 65536;
|
||||||
|
public const uint LZ4HC_MAXD_MASK = 65535;
|
||||||
|
public const uint LZ4HC_HASH_LOG = 15;
|
||||||
|
public const uint LZ4HC_HASHTABLESIZE = 32768;
|
||||||
|
public const uint LZ4HC_HASH_MASK = 32767;
|
||||||
|
public const uint LZ4_STREAMHC_MINSIZE = 262200;
|
||||||
|
public const uint LZ4F_VERSION = 100;
|
||||||
|
public const uint LZ4F_HEADER_SIZE_MIN = 7;
|
||||||
|
public const uint LZ4F_HEADER_SIZE_MAX = 19;
|
||||||
|
public const uint LZ4F_BLOCK_HEADER_SIZE = 4;
|
||||||
|
public const uint LZ4F_BLOCK_CHECKSUM_SIZE = 4;
|
||||||
|
public const uint LZ4F_CONTENT_CHECKSUM_SIZE = 4;
|
||||||
|
public const uint LZ4F_MAGICNUMBER = 407708164;
|
||||||
|
public const uint LZ4F_MAGIC_SKIPPABLE_START = 407710288;
|
||||||
|
public const uint LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH = 5;
|
||||||
|
public const uint XXHASH_H_5627135585666179 = 1;
|
||||||
|
public const uint XXH_VERSION_MAJOR = 0;
|
||||||
|
public const uint XXH_VERSION_MINOR = 6;
|
||||||
|
public const uint XXH_VERSION_RELEASE = 5;
|
||||||
|
public const uint XXH_VERSION_NUMBER = 605;
|
||||||
|
public const int LZ4F_blockSizeID_t_LZ4F_default = 0;
|
||||||
|
public const int LZ4F_blockSizeID_t_LZ4F_max64KB = 4;
|
||||||
|
public const int LZ4F_blockSizeID_t_LZ4F_max256KB = 5;
|
||||||
|
public const int LZ4F_blockSizeID_t_LZ4F_max1MB = 6;
|
||||||
|
public const int LZ4F_blockSizeID_t_LZ4F_max4MB = 7;
|
||||||
|
public const int LZ4F_blockMode_t_LZ4F_blockLinked = 0;
|
||||||
|
public const int LZ4F_blockMode_t_LZ4F_blockIndependent = 1;
|
||||||
|
public const int LZ4F_contentChecksum_t_LZ4F_noContentChecksum = 0;
|
||||||
|
public const int LZ4F_contentChecksum_t_LZ4F_contentChecksumEnabled = 1;
|
||||||
|
public const int LZ4F_blockChecksum_t_LZ4F_noBlockChecksum = 0;
|
||||||
|
public const int LZ4F_blockChecksum_t_LZ4F_blockChecksumEnabled = 1;
|
||||||
|
public const int LZ4F_frameType_t_LZ4F_frame = 0;
|
||||||
|
public const int LZ4F_frameType_t_LZ4F_skippableFrame = 1;
|
||||||
|
public const int XXH_errorcode_XXH_OK = 0;
|
||||||
|
public const int XXH_errorcode_XXH_ERROR = 1;
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "csbindgen_LZ4_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "csbindgen_LZ4_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern int LZ4_versionNumber();
|
public static extern int LZ4_versionNumber();
|
||||||
|
|
||||||
@ -451,6 +524,5 @@ namespace CsBindgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
dotnet-sandbox/quiche_bindgen.cs
vendored
3
dotnet-sandbox/quiche_bindgen.cs
vendored
@ -14,6 +14,8 @@ namespace CsBindgen
|
|||||||
{
|
{
|
||||||
const string __DllName = "libquiche";
|
const string __DllName = "libquiche";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "quiche_version", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "quiche_version", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern byte* quiche_version();
|
public static extern byte* quiche_version();
|
||||||
|
|
||||||
@ -559,6 +561,5 @@ namespace CsBindgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
dotnet-sandbox/zstd_bindgen.cs
vendored
3
dotnet-sandbox/zstd_bindgen.cs
vendored
@ -14,6 +14,8 @@ namespace CsBindgen
|
|||||||
{
|
{
|
||||||
const string __DllName = "libzsd";
|
const string __DllName = "libzsd";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>ZSTD_versionNumber() : Return runtime library version, the value is (MAJOR*100*100 + MINOR*100 + RELEASE).</summary>
|
/// <summary>ZSTD_versionNumber() : Return runtime library version, the value is (MAJOR*100*100 + MINOR*100 + RELEASE).</summary>
|
||||||
[DllImport(__DllName, EntryPoint = "ZSTD_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[DllImport(__DllName, EntryPoint = "ZSTD_versionNumber", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern uint ZSTD_versionNumber();
|
public static extern uint ZSTD_versionNumber();
|
||||||
@ -307,6 +309,5 @@ namespace CsBindgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user