GNUnet 0.22.1
Value Struct Reference

Entry in the hash map. More...

Collaboration diagram for Value:
[legend]

Data Fields

struct GNUNET_DATACACHE_Block block
 Block data. More...
 
struct GNUNET_CONTAINER_HeapNodehn
 Corresponding node in the heap. More...
 
struct GNUNET_DHT_PathElementput_path
 Put path as a non-const pointer. More...
 
uint32_t distance
 How close is the hash to us? Determines which heap we are in! More...
 
struct GNUNET_HashCode key
 Key for the value. More...
 
const void * data
 Pointer to the value's data (allocated at the end of this struct). More...
 
struct GNUNET_CONTAINER_HeapNodeexpire_heap
 Entry for this value in the 'expire' heap. More...
 
struct GNUNET_CONTAINER_HeapNodereplication_heap
 Entry for this value in the 'replication' heap. More...
 
struct GNUNET_TIME_Absolute expiration
 Expiration time for this value. More...
 
unsigned int zero_anon_offset
 Offset of this value in the array of the 'struct ZeroAnonByType'; only used if anonymity is zero. More...
 
uint32_t size
 Number of bytes in 'data'. More...
 
uint32_t priority
 Priority of the value. More...
 
uint32_t anonymity
 Anonymity level for the value. More...
 
uint32_t replication
 Replication level for the value. More...
 
enum GNUNET_BLOCK_Type type
 Type of 'data'. More...
 

Detailed Description

Entry in the hash map.

A value that we are storing.

Definition at line 63 of file plugin_datacache_heap.c.

Field Documentation

◆ block

◆ hn

struct GNUNET_CONTAINER_HeapNode* Value::hn

Corresponding node in the heap.

Definition at line 73 of file plugin_datacache_heap.c.

Referenced by heap_plugin_put(), and put_cb().

◆ put_path

struct GNUNET_DHT_PathElement* Value::put_path

Put path as a non-const pointer.

Definition at line 78 of file plugin_datacache_heap.c.

Referenced by heap_plugin_del(), heap_plugin_put(), libgnunet_plugin_datacache_heap_done(), and put_cb().

◆ distance

uint32_t Value::distance

How close is the hash to us? Determines which heap we are in!

Definition at line 83 of file plugin_datacache_heap.c.

Referenced by heap_plugin_put().

◆ key

struct GNUNET_HashCode Value::key

◆ data

const void* Value::data

Pointer to the value's data (allocated at the end of this struct).

Definition at line 47 of file plugin_datastore_heap.c.

Referenced by typescriptdomain.TypeScriptDomain::objects(), httpdomain.httpdomain.HTTPDomain::resolve_xref(), and httpdomain.httpdomain.HTTPDomain::routes().

◆ expire_heap

struct GNUNET_CONTAINER_HeapNode* Value::expire_heap

Entry for this value in the 'expire' heap.

Definition at line 52 of file plugin_datastore_heap.c.

◆ replication_heap

struct GNUNET_CONTAINER_HeapNode* Value::replication_heap

Entry for this value in the 'replication' heap.

Definition at line 57 of file plugin_datastore_heap.c.

◆ expiration

struct GNUNET_TIME_Absolute Value::expiration

Expiration time for this value.

Definition at line 62 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().

◆ zero_anon_offset

unsigned int Value::zero_anon_offset

Offset of this value in the array of the 'struct ZeroAnonByType'; only used if anonymity is zero.

Definition at line 68 of file plugin_datastore_heap.c.

Referenced by delete_value().

◆ size

uint32_t Value::size

Number of bytes in 'data'.

Definition at line 73 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().

◆ priority

uint32_t Value::priority

Priority of the value.

Definition at line 78 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().

◆ anonymity

uint32_t Value::anonymity

Anonymity level for the value.

Definition at line 83 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().

◆ replication

uint32_t Value::replication

Replication level for the value.

Definition at line 88 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().

◆ type

enum GNUNET_BLOCK_Type Value::type

Type of 'data'.

Definition at line 93 of file plugin_datastore_heap.c.

Referenced by heap_plugin_get_key().


The documentation for this struct was generated from the following files: