![]() |
#include <aerospike/as_util.h>
#include <aerospike/as_val.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | as_pair |
Macros | |
#define | pair_new(a, b) as_pair_new((as_val *) a, (as_val *) b) |
Functions | |
static as_val * | as_pair_1 (as_pair *pair) |
static as_val * | as_pair_2 (as_pair *pair) |
static void | as_pair_destroy (as_pair *pair) |
static as_pair * | as_pair_fromval (const as_val *v) |
as_pair * | as_pair_init (as_pair *pair, as_val *_1, as_val *_2) |
as_pair * | as_pair_new (as_val *_1, as_val *_2) |
static as_val * | as_pair_toval (const as_pair *pair) |
void | as_pair_val_destroy (as_val *) |
uint32_t | as_pair_val_hashcode (const as_val *) |
char * | as_pair_val_tostring (const as_val *) |
#define pair_new | ( | a, | |
b | |||
) | as_pair_new((as_val *) a, (as_val *) b) |
Definition at line 34 of file modules/common/src/include/aerospike/as_pair.h.
Get the first value of the pair
Definition at line 113 of file modules/common/src/include/aerospike/as_pair.h.
References as_pair::_1.
Get the second value of the pair
Definition at line 121 of file modules/common/src/include/aerospike/as_pair.h.
References as_pair::_2.
|
inlinestatic |
Destroy the as_pair
and release associated resources.
Definition at line 99 of file modules/common/src/include/aerospike/as_pair.h.
References as_val_destroy.
Convert from an as_val.
Definition at line 145 of file modules/common/src/include/aerospike/as_pair.h.
References AS_PAIR, and as_util_fromval.
Initializes a stack allocated as_pair
.
pair | The pair to initialize. |
_1 | The first value. |
_2 | The second value. |
Create and initializes a new heap allocated as_pair
.
_1 | The first value. |
_2 | The second value. |
Convert to an as_val.
Definition at line 135 of file modules/common/src/include/aerospike/as_pair.h.
|
private |
Internal helper function for getting the hashcode of an as_val.