1///|
2pub extern "c" fn malloc(count : 
UInt64
UInt64
) ->
type Ptr[T]
Ptr
[
Byte
Byte
] = "moonbit_native_malloc"
3 4///| 5pub extern "c" fn free(ptr :
type Ptr[T]
Ptr
[
Byte
Byte
]) = "moonbit_native_free"
6 7///| 8pub extern "c" fn realloc(ptr :
type Ptr[T]
Ptr
[
Byte
Byte
], count :
UInt64
UInt64
) ->
type Ptr[T]
Ptr
[
Byte
Byte
] = "moonbit_native_realloc"
9 10///| 11pub extern "c" fn memset(ptr :
type Ptr[T]
Ptr
[
Byte
Byte
], val :
Byte
Byte
, count :
UInt64
UInt64
) = "moonbit_native_memset"
12 13///| 14pub extern "c" fn memcpy( 15 dest :
type Ptr[T]
Ptr
[
Byte
Byte
],
16 src :
type ConstPtr[T]
ConstPtr
[
Byte
Byte
],
17 count :
UInt64
UInt64
18) = "moonbit_native_memcpy" 19 20///| 21pub extern "c" fn memmove( 22 dest :
type Ptr[T]
Ptr
[
Byte
Byte
],
23 src :
type ConstPtr[T]
ConstPtr
[
Byte
Byte
],
24 count :
UInt64
UInt64
25) = "moonbit_native_memmove" 26 27///| 28pub extern "c" fn memcmp( 29 a :
type ConstPtr[T]
ConstPtr
[
Byte
Byte
],
30 b :
type ConstPtr[T]
ConstPtr
[
Byte
Byte
],
31 count :
UInt64
UInt64
32) ->
Int
Int
= "moonbit_native_memcmp"
33