Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
scratch.h
Go to the documentation of this file.
23 static secp256k1_scratch* secp256k1_scratch_create(const secp256k1_callback* error_callback, size_t max_size);
28 static int secp256k1_scratch_allocate_frame(secp256k1_scratch* scratch, size_t n, size_t objects);
34 static size_t secp256k1_scratch_max_allocation(const secp256k1_scratch* scratch, size_t n_objects);
void * data[SECP256K1_SCRATCH_MAX_FRAMES]
Definition: scratch.h:15
const secp256k1_callback * error_callback
Definition: scratch.h:20
struct secp256k1_scratch_space_struct secp256k1_scratch
static void secp256k1_scratch_destroy(secp256k1_scratch *scratch)
size_t frame_size[SECP256K1_SCRATCH_MAX_FRAMES]
Definition: scratch.h:17
static void secp256k1_scratch_deallocate_frame(secp256k1_scratch *scratch)
Deallocates a stack frame.
static int secp256k1_scratch_allocate_frame(secp256k1_scratch *scratch, size_t n, size_t objects)
Attempts to allocate a new stack frame with n available bytes.
static size_t secp256k1_scratch_max_allocation(const secp256k1_scratch *scratch, size_t n_objects)
Returns the maximum allocation the scratch space will allow.
static void * secp256k1_scratch_alloc(secp256k1_scratch *scratch, size_t n)
Returns a pointer into the most recently allocated frame, or NULL if there is insufficient available ...
Definition: scratch.h:14
static secp256k1_scratch * secp256k1_scratch_create(const secp256k1_callback *error_callback, size_t max_size)
Definition: util.h:18
size_t offset[SECP256K1_SCRATCH_MAX_FRAMES]
Definition: scratch.h:16