WPILibC++ 2027.0.0-alpha-3
Loading...
Searching...
No Matches
map.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "upb/base/descriptor_constants.h"
#include "upb/base/string_view.h"
#include "upb/hash/common.h"
#include "upb/hash/int_table.h"
#include "upb/hash/str_table.h"
#include "upb/mem/arena.h"
#include "upb/port/def.inc"
#include "upb/port/undef.inc"

Go to the source code of this file.

Classes

union  upb_Map_Table
 
struct  upb_Map
 

Enumerations

enum  upb_MapInsertStatus { kUpb_MapInsertStatus_Inserted = 0 , kUpb_MapInsertStatus_Replaced = 1 , kUpb_MapInsertStatus_OutOfMemory = 2 }
 

Functions

UPB_INLINE void UPB_PRIVATE _upb_Map_ShallowFreeze (struct upb_Map *map)
 
UPB_API_INLINE bool upb_Map_IsFrozen (const struct upb_Map *map)
 
UPB_INLINE upb_StringView _upb_map_tokey (const void *key, size_t size)
 
UPB_INLINE uintptr_t _upb_map_tointkey (const void *key, size_t key_size)
 
UPB_INLINE void _upb_map_fromkey (upb_StringView key, void *out, size_t size)
 
UPB_INLINE bool _upb_map_tovalue (const void *val, size_t size, upb_value *msgval, upb_Arena *a)
 
UPB_INLINE void _upb_map_fromvalue (upb_value val, void *out, size_t size)
 
UPB_INLINE bool _upb_map_next (const struct upb_Map *map, size_t *iter)
 
UPB_INLINE void _upb_Map_Clear (struct upb_Map *map)
 
UPB_INLINE bool _upb_Map_Delete (struct upb_Map *map, const void *key, size_t key_size, upb_value *val)
 
UPB_INLINE bool _upb_Map_Get (const struct upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size)
 
UPB_INLINE upb_MapInsertStatus _upb_Map_Insert (struct upb_Map *map, const void *key, size_t key_size, void *val, size_t val_size, upb_Arena *a)
 
UPB_INLINE size_t _upb_Map_Size (const struct upb_Map *map)
 
UPB_INLINE size_t _upb_Map_CTypeSize (upb_CType ctype)
 
struct upb_Map_upb_Map_New (upb_Arena *a, size_t key_size, size_t value_size)
 

Variables

char _upb_Map_CTypeSizeTable [12]
 

Enumeration Type Documentation

◆ upb_MapInsertStatus

Enumerator
kUpb_MapInsertStatus_Inserted 
kUpb_MapInsertStatus_Replaced 
kUpb_MapInsertStatus_OutOfMemory 

Function Documentation

◆ _upb_Map_Clear()

UPB_INLINE void _upb_Map_Clear ( struct upb_Map * map)

◆ _upb_Map_CTypeSize()

UPB_INLINE size_t _upb_Map_CTypeSize ( upb_CType ctype)

◆ _upb_Map_Delete()

UPB_INLINE bool _upb_Map_Delete ( struct upb_Map * map,
const void * key,
size_t key_size,
upb_value * val )

◆ _upb_map_fromkey()

UPB_INLINE void _upb_map_fromkey ( upb_StringView key,
void * out,
size_t size )

◆ _upb_map_fromvalue()

UPB_INLINE void _upb_map_fromvalue ( upb_value val,
void * out,
size_t size )

◆ _upb_Map_Get()

UPB_INLINE bool _upb_Map_Get ( const struct upb_Map * map,
const void * key,
size_t key_size,
void * val,
size_t val_size )

◆ _upb_Map_Insert()

UPB_INLINE upb_MapInsertStatus _upb_Map_Insert ( struct upb_Map * map,
const void * key,
size_t key_size,
void * val,
size_t val_size,
upb_Arena * a )

◆ _upb_Map_New()

struct upb_Map * _upb_Map_New ( upb_Arena * a,
size_t key_size,
size_t value_size )

◆ _upb_map_next()

UPB_INLINE bool _upb_map_next ( const struct upb_Map * map,
size_t * iter )

◆ _upb_Map_ShallowFreeze()

UPB_INLINE void UPB_PRIVATE _upb_Map_ShallowFreeze ( struct upb_Map * map)

◆ _upb_Map_Size()

UPB_INLINE size_t _upb_Map_Size ( const struct upb_Map * map)

◆ _upb_map_tointkey()

UPB_INLINE uintptr_t _upb_map_tointkey ( const void * key,
size_t key_size )

◆ _upb_map_tokey()

UPB_INLINE upb_StringView _upb_map_tokey ( const void * key,
size_t size )

◆ _upb_map_tovalue()

UPB_INLINE bool _upb_map_tovalue ( const void * val,
size_t size,
upb_value * msgval,
upb_Arena * a )

◆ upb_Map_IsFrozen()

UPB_API_INLINE bool upb_Map_IsFrozen ( const struct upb_Map * map)

Variable Documentation

◆ _upb_Map_CTypeSizeTable

char _upb_Map_CTypeSizeTable[12]
extern