Go to the source code of this file.
|
static secp256k1_scratch * | secp256k1_scratch_create (const secp256k1_callback *error_callback, size_t max_size) |
|
static void | secp256k1_scratch_destroy (const secp256k1_callback *error_callback, secp256k1_scratch *scratch) |
|
static size_t | secp256k1_scratch_checkpoint (const secp256k1_callback *error_callback, const secp256k1_scratch *scratch) |
| Returns an opaque object used to "checkpoint" a scratch space. More...
|
|
static void | secp256k1_scratch_apply_checkpoint (const secp256k1_callback *error_callback, secp256k1_scratch *scratch, size_t checkpoint) |
| Applies a check point received from secp256k1_scratch_checkpoint , undoing all allocations since that point. More...
|
|
static size_t | secp256k1_scratch_max_allocation (const secp256k1_callback *error_callback, const secp256k1_scratch *scratch, size_t n_objects) |
| Returns the maximum allocation the scratch space will allow. More...
|
|
static void * | secp256k1_scratch_alloc (const secp256k1_callback *error_callback, secp256k1_scratch *scratch, size_t n) |
| Returns a pointer into the most recently allocated frame, or NULL if there is insufficient available space. More...
|
|
◆ secp256k1_scratch
◆ secp256k1_scratch_alloc()
Returns a pointer into the most recently allocated frame, or NULL if there is insufficient available space.
◆ secp256k1_scratch_apply_checkpoint()
Applies a check point received from secp256k1_scratch_checkpoint
, undoing all allocations since that point.
◆ secp256k1_scratch_checkpoint()
Returns an opaque object used to "checkpoint" a scratch space.
Used with secp256k1_scratch_apply_checkpoint
to undo allocations.
◆ secp256k1_scratch_create()
◆ secp256k1_scratch_destroy()
◆ secp256k1_scratch_max_allocation()
Returns the maximum allocation the scratch space will allow.