Added the preallocated FFI

This commit is contained in:
Elichai Turkel 2019-05-28 20:48:26 +03:00
parent d710e5885b
commit 5f93474512
No known key found for this signature in database
GPG Key ID: 9383CDE9E8E66A7F
1 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,16 @@ extern "C" {
// Contexts
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_destroy(cx: *mut Context);