Added the preallocated FFI
This commit is contained in:
parent
d710e5885b
commit
5f93474512
10
src/ffi.rs
10
src/ffi.rs
|
@ -144,6 +144,16 @@ extern "C" {
|
||||||
// Contexts
|
// Contexts
|
||||||
pub fn secp256k1_context_create(flags: c_uint) -> *mut Context;
|
pub fn secp256k1_context_create(flags: c_uint) -> *mut Context;
|
||||||
|
|
||||||
|
pub fn secp256k1_context_preallocated_size(flags: c_uint) -> usize;
|
||||||
|
|
||||||
|
pub fn secp256k1_context_preallocated_create(prealloc: *mut c_void, flags: c_uint) -> *mut Context;
|
||||||
|
|
||||||
|
pub fn secp256k1_context_preallocated_destroy(cx: *mut Context);
|
||||||
|
|
||||||
|
pub fn secp256k1_context_preallocated_clone_size(cx: *const Context) -> usize;
|
||||||
|
|
||||||
|
pub fn secp256k1_context_preallocated_clone(cx: *const Context, prealloc: *mut c_void) -> *mut Context;
|
||||||
|
|
||||||
pub fn secp256k1_context_clone(cx: *mut Context) -> *mut Context;
|
pub fn secp256k1_context_clone(cx: *mut Context) -> *mut Context;
|
||||||
|
|
||||||
pub fn secp256k1_context_destroy(cx: *mut Context);
|
pub fn secp256k1_context_destroy(cx: *mut Context);
|
||||||
|
|
Loading…
Reference in New Issue