Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Typedefs | Functions
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. 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...
 

Typedef Documentation

◆ secp256k1_scratch

◆ secp256k1_scratch_space

Definition at line 24 of file scratch.h.

Function Documentation

◆ secp256k1_scratch_alloc()

static 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()

static 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()

static 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()

static 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()

static 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()

static 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: