This commit is contained in:
neuecc 2023-02-28 18:40:18 +09:00
parent 032874209e
commit 042c809a12
2 changed files with 0 additions and 337 deletions

View File

@ -1484,260 +1484,4 @@ pub extern "C" fn csbindgen_LZ4F_resetDecompressionContext(
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH_versionNumber(
) -> c_uint
{
unsafe {
return lz4::XXH_versionNumber(
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32(
input: *const c_void,
length: usize,
seed: c_uint
) -> lz4::XXH32_hash_t
{
unsafe {
return lz4::XXH32(
input,
length,
seed
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_createState(
) -> *mut lz4::XXH32_state_t
{
unsafe {
return lz4::XXH32_createState(
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_freeState(
statePtr: *mut lz4::XXH32_state_t
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH32_freeState(
statePtr
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_copyState(
dst_state: *mut lz4::XXH32_state_t,
src_state: *const lz4::XXH32_state_t
)
{
unsafe {
return lz4::XXH32_copyState(
dst_state,
src_state
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_reset(
statePtr: *mut lz4::XXH32_state_t,
seed: c_uint
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH32_reset(
statePtr,
seed
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_update(
statePtr: *mut lz4::XXH32_state_t,
input: *const c_void,
length: usize
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH32_update(
statePtr,
input,
length
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_digest(
statePtr: *const lz4::XXH32_state_t
) -> lz4::XXH32_hash_t
{
unsafe {
return lz4::XXH32_digest(
statePtr
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_canonicalFromHash(
dst: *mut lz4::XXH32_canonical_t,
hash: lz4::XXH32_hash_t
)
{
unsafe {
return lz4::XXH32_canonicalFromHash(
dst,
hash
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH32_hashFromCanonical(
src: *const lz4::XXH32_canonical_t
) -> lz4::XXH32_hash_t
{
unsafe {
return lz4::XXH32_hashFromCanonical(
src
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64(
input: *const c_void,
length: usize,
seed: c_ulonglong
) -> lz4::XXH64_hash_t
{
unsafe {
return lz4::XXH64(
input,
length,
seed
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_createState(
) -> *mut lz4::XXH64_state_t
{
unsafe {
return lz4::XXH64_createState(
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_freeState(
statePtr: *mut lz4::XXH64_state_t
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH64_freeState(
statePtr
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_copyState(
dst_state: *mut lz4::XXH64_state_t,
src_state: *const lz4::XXH64_state_t
)
{
unsafe {
return lz4::XXH64_copyState(
dst_state,
src_state
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_reset(
statePtr: *mut lz4::XXH64_state_t,
seed: c_ulonglong
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH64_reset(
statePtr,
seed
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_update(
statePtr: *mut lz4::XXH64_state_t,
input: *const c_void,
length: usize
) -> lz4::XXH_errorcode
{
unsafe {
return lz4::XXH64_update(
statePtr,
input,
length
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_digest(
statePtr: *const lz4::XXH64_state_t
) -> lz4::XXH64_hash_t
{
unsafe {
return lz4::XXH64_digest(
statePtr
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_canonicalFromHash(
dst: *mut lz4::XXH64_canonical_t,
hash: lz4::XXH64_hash_t
)
{
unsafe {
return lz4::XXH64_canonicalFromHash(
dst,
hash
)
}
}
#[no_mangle]
pub extern "C" fn csbindgen_XXH64_hashFromCanonical(
src: *const lz4::XXH64_canonical_t
) -> lz4::XXH64_hash_t
{
unsafe {
return lz4::XXH64_hashFromCanonical(
src
)
}
}

View File

@ -289,63 +289,6 @@ namespace CsBindgen
[DllImport(__DllName, EntryPoint = "csbindgen_LZ4F_resetDecompressionContext", CallingConvention = CallingConvention.Cdecl)]
public static extern void LZ4F_resetDecompressionContext(LZ4F_dctx_s* dctx);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH_versionNumber", CallingConvention = CallingConvention.Cdecl)]
public static extern uint XXH_versionNumber();
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32", CallingConvention = CallingConvention.Cdecl)]
public static extern uint XXH32(void* input, UIntPtr length, uint seed);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_createState", CallingConvention = CallingConvention.Cdecl)]
public static extern XXH32_state_s* XXH32_createState();
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_freeState", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH32_freeState(XXH32_state_s* statePtr);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_copyState", CallingConvention = CallingConvention.Cdecl)]
public static extern void XXH32_copyState(XXH32_state_s* dst_state, XXH32_state_s* src_state);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_reset", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH32_reset(XXH32_state_s* statePtr, uint seed);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_update", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH32_update(XXH32_state_s* statePtr, void* input, UIntPtr length);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_digest", CallingConvention = CallingConvention.Cdecl)]
public static extern uint XXH32_digest(XXH32_state_s* statePtr);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_canonicalFromHash", CallingConvention = CallingConvention.Cdecl)]
public static extern void XXH32_canonicalFromHash(XXH32_canonical_t* dst, uint hash);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH32_hashFromCanonical", CallingConvention = CallingConvention.Cdecl)]
public static extern uint XXH32_hashFromCanonical(XXH32_canonical_t* src);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong XXH64(void* input, UIntPtr length, ulong seed);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_createState", CallingConvention = CallingConvention.Cdecl)]
public static extern XXH64_state_s* XXH64_createState();
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_freeState", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH64_freeState(XXH64_state_s* statePtr);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_copyState", CallingConvention = CallingConvention.Cdecl)]
public static extern void XXH64_copyState(XXH64_state_s* dst_state, XXH64_state_s* src_state);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_reset", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH64_reset(XXH64_state_s* statePtr, ulong seed);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_update", CallingConvention = CallingConvention.Cdecl)]
public static extern int XXH64_update(XXH64_state_s* statePtr, void* input, UIntPtr length);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_digest", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong XXH64_digest(XXH64_state_s* statePtr);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_canonicalFromHash", CallingConvention = CallingConvention.Cdecl)]
public static extern void XXH64_canonicalFromHash(XXH64_canonical_t* dst, ulong hash);
[DllImport(__DllName, EntryPoint = "csbindgen_XXH64_hashFromCanonical", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong XXH64_hashFromCanonical(XXH64_canonical_t* src);
}
@ -463,30 +406,6 @@ namespace CsBindgen
public uint reserved0;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct XXH32_state_s
{
public fixed byte _unused[1];
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct XXH32_canonical_t
{
public fixed byte digest[4];
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct XXH64_state_s
{
public fixed byte _unused[1];
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct XXH64_canonical_t
{
public fixed byte digest[8];
}
}