Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
 

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 voidsecp256k1_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

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: