Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
scratch.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  secp256k1_scratch_space_struct

Typedefs

typedef struct secp256k1_scratch_space_struct secp256k1_scratch
typedef struct secp256k1_scratch_space_struct secp256k1_scratch_space

Functions

static secp256k1_scratchsecp256k1_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.
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.
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.
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.

Typedef Documentation

◆ secp256k1_scratch

◆ secp256k1_scratch_space

Definition at line 24 of file scratch.h.

Function Documentation

◆ secp256k1_scratch_alloc()

void * secp256k1_scratch_alloc ( const secp256k1_callback * error_callback,
secp256k1_scratch * scratch,
size_t n )
static

Returns a pointer into the most recently allocated frame, or NULL if there is insufficient available space.

Here is the caller graph for this function:

◆ secp256k1_scratch_apply_checkpoint()

void secp256k1_scratch_apply_checkpoint ( const secp256k1_callback * error_callback,
secp256k1_scratch * scratch,
size_t checkpoint )
static

Applies a check point received from secp256k1_scratch_checkpoint, undoing all allocations since that point.

Here is the caller graph for this function:

◆ secp256k1_scratch_checkpoint()

size_t secp256k1_scratch_checkpoint ( const secp256k1_callback * error_callback,
const secp256k1_scratch * scratch )
static

Returns an opaque object used to "checkpoint" a scratch space.

Used with secp256k1_scratch_apply_checkpoint to undo allocations.

Here is the caller graph for this function:

◆ secp256k1_scratch_create()

secp256k1_scratch * secp256k1_scratch_create ( const secp256k1_callback * error_callback,
size_t max_size )
static
Here is the caller graph for this function:

◆ secp256k1_scratch_destroy()

void secp256k1_scratch_destroy ( const secp256k1_callback * error_callback,
secp256k1_scratch * scratch )
static
Here is the caller graph for this function:

◆ secp256k1_scratch_max_allocation()

size_t secp256k1_scratch_max_allocation ( const secp256k1_callback * error_callback,
const secp256k1_scratch * scratch,
size_t n_objects )
static

Returns the maximum allocation the scratch space will allow.

Here is the caller graph for this function: