GNUnet 0.29.1-12-g57a93edc3
 
Loading...
Searching...
No Matches
MapEntry Struct Reference

An entry in a map. More...

Collaboration diagram for MapEntry:
[legend]

Data Fields

struct MapEntry * next
 Next entry in the same bucket.
 
void * value
 The application's value.
 
union { 
 
   uint64_t   u64 
 KS_INLINE_VALUE: the key, zero-extended, for comparing. More...
 
   unsigned char   bytes [sizeof(uint64_t)] 
 KS_INLINE_VALUE: the key, as the first key_size bytes. More...
 
   const void *   ptr 
 KS_INLINE_COPY and KS_BORROWED: the key_size bytes of the key. More...
 
} k 
 The key itself (KS_INLINE_VALUE), or where to find it (the other kinds of storage).
 
unsigned char key_copy []
 KS_INLINE_COPY only: the key; allocated with the entry.
 

Detailed Description

An entry in a map.

All maps use this one type.

Definition at line 106 of file container_multimap.c.

Field Documentation

◆ next

◆ value

◆ u64

uint64_t MapEntry::u64

KS_INLINE_VALUE: the key, zero-extended, for comparing.

Definition at line 127 of file container_multimap.c.

Referenced by GNUNET_CONTAINER_multimap_put_(), grow(), and keys_equal().

◆ bytes

unsigned char MapEntry::bytes[sizeof(uint64_t)]

KS_INLINE_VALUE: the key, as the first key_size bytes.

Definition at line 132 of file container_multimap.c.

Referenced by entry_key().

◆ ptr

const void* MapEntry::ptr

KS_INLINE_COPY and KS_BORROWED: the key_size bytes of the key.

Definition at line 137 of file container_multimap.c.

Referenced by callback_key(), entry_key(), GNUNET_CONTAINER_multimap_put_(), and keys_equal().

◆ [union]

union { ... } MapEntry::k

The key itself (KS_INLINE_VALUE), or where to find it (the other kinds of storage).

Referenced by callback_key(), entry_key(), GNUNET_CONTAINER_multimap_put_(), grow(), and keys_equal().

◆ key_copy

unsigned char MapEntry::key_copy[]

KS_INLINE_COPY only: the key; allocated with the entry.

Definition at line 143 of file container_multimap.c.

Referenced by GNUNET_CONTAINER_multimap_put_().


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