Macros | Functions | Variables
ruby/ext/google/protobuf_c/map.c File Reference
#include "protobuf.h"
Include dependency graph for ruby/ext/google/protobuf_c/map.c:

Go to the source code of this file.

Macros

#define TABLE_KEY_BUF_LENGTH   8
 

Functions

VALUE Map_alloc (VALUE klass)
 
void Map_begin (VALUE _self, Map_iter *iter)
 
VALUE Map_clear (VALUE _self)
 
VALUE Map_deep_copy (VALUE _self)
 
VALUE Map_delete (VALUE _self, VALUE key)
 
bool Map_done (Map_iter *iter)
 
VALUE Map_dup (VALUE _self)
 
VALUE Map_each (VALUE _self)
 
VALUE Map_eq (VALUE _self, VALUE _other)
 
void Map_free (void *_self)
 
VALUE Map_has_key (VALUE _self, VALUE key)
 
VALUE Map_hash (VALUE _self)
 
VALUE Map_index (VALUE _self, VALUE key)
 
VALUE Map_index_set (VALUE _self, VALUE key, VALUE value)
 
VALUE Map_init (int argc, VALUE *argv, VALUE _self)
 
VALUE Map_inspect (VALUE _self)
 
VALUE Map_iter_key (Map_iter *iter)
 
VALUE Map_iter_value (Map_iter *iter)
 
VALUE Map_keys (VALUE _self)
 
VALUE Map_length (VALUE _self)
 
void Map_mark (void *_self)
 
VALUE Map_merge (VALUE _self, VALUE hashmap)
 
VALUE Map_merge_into_self (VALUE _self, VALUE hashmap)
 
static VALUE Map_new_this_type (VALUE _self)
 
void Map_next (Map_iter *iter)
 
void Map_register (VALUE module)
 
VALUE Map_set_frame (VALUE map, VALUE val)
 
VALUE Map_to_h (VALUE _self)
 
VALUE Map_values (VALUE _self)
 
static int merge_into_self_callback (VALUE key, VALUE value, VALUE self)
 
static bool needs_typeclass (upb_fieldtype_t type)
 
Mapruby_to_Map (VALUE _self)
 
static VALUE table_key (Map *self, VALUE key, char *buf, const char **out_key, size_t *out_length)
 
static VALUE table_key_to_ruby (Map *self, const char *buf, size_t length)
 
static voidvalue_memory (upb_value *v)
 

Variables

VALUE cMap
 
const rb_data_type_t Map_type
 

Macro Definition Documentation

◆ TABLE_KEY_BUF_LENGTH

#define TABLE_KEY_BUF_LENGTH   8

Definition at line 65 of file ruby/ext/google/protobuf_c/map.c.

Function Documentation

◆ Map_alloc()

VALUE Map_alloc ( VALUE  klass)

Definition at line 171 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_begin()

void Map_begin ( VALUE  _self,
Map_iter iter 
)

Definition at line 802 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_clear()

VALUE Map_clear ( VALUE  _self)

Definition at line 467 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_deep_copy()

VALUE Map_deep_copy ( VALUE  _self)

Definition at line 542 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_delete()

VALUE Map_delete ( VALUE  _self,
VALUE  key 
)

Definition at line 442 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_done()

bool Map_done ( Map_iter iter)

Definition at line 812 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_dup()

VALUE Map_dup ( VALUE  _self)

Definition at line 514 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_each()

VALUE Map_each ( VALUE  _self)

Definition at line 282 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_eq()

VALUE Map_eq ( VALUE  _self,
VALUE  _other 
)

Definition at line 582 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_free()

void Map_free ( void _self)

Definition at line 165 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_has_key()

VALUE Map_has_key ( VALUE  _self,
VALUE  key 
)

Definition at line 420 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_hash()

VALUE Map_hash ( VALUE  _self)

Definition at line 643 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_index()

VALUE Map_index ( VALUE  _self,
VALUE  key 
)

Definition at line 363 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_index_set()

VALUE Map_index_set ( VALUE  _self,
VALUE  key,
VALUE  value 
)

Definition at line 388 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_init()

VALUE Map_init ( int  argc,
VALUE *  argv,
VALUE  _self 
)

Definition at line 224 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_inspect()

VALUE Map_inspect ( VALUE  _self)

Definition at line 706 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_iter_key()

VALUE Map_iter_key ( Map_iter iter)

Definition at line 816 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_iter_value()

VALUE Map_iter_value ( Map_iter iter)

Definition at line 823 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_keys()

VALUE Map_keys ( VALUE  _self)

Definition at line 311 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_length()

VALUE Map_length ( VALUE  _self)

Definition at line 487 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_mark()

void Map_mark ( void _self)

Definition at line 145 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_merge()

VALUE Map_merge ( VALUE  _self,
VALUE  hashmap 
)

Definition at line 750 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_merge_into_self()

VALUE Map_merge_into_self ( VALUE  _self,
VALUE  hashmap 
)

Definition at line 761 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_new_this_type()

static VALUE Map_new_this_type ( VALUE  _self)
static

Definition at line 492 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_next()

void Map_next ( Map_iter iter)

Definition at line 808 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_register()

void Map_register ( VALUE  module)

Definition at line 831 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_set_frame()

VALUE Map_set_frame ( VALUE  map,
VALUE  val 
)

Definition at line 178 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_to_h()

VALUE Map_to_h ( VALUE  _self)

Definition at line 675 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_values()

VALUE Map_values ( VALUE  _self)

Definition at line 335 of file ruby/ext/google/protobuf_c/map.c.

◆ merge_into_self_callback()

static int merge_into_self_callback ( VALUE  key,
VALUE  value,
VALUE  self 
)
static

Definition at line 755 of file ruby/ext/google/protobuf_c/map.c.

◆ needs_typeclass()

static bool needs_typeclass ( upb_fieldtype_t  type)
static

Definition at line 184 of file ruby/ext/google/protobuf_c/map.c.

◆ ruby_to_Map()

Map* ruby_to_Map ( VALUE  _self)

Definition at line 139 of file ruby/ext/google/protobuf_c/map.c.

◆ table_key()

static VALUE table_key ( Map self,
VALUE  key,
char *  buf,
const char **  out_key,
size_t *  out_length 
)
static

Definition at line 66 of file ruby/ext/google/protobuf_c/map.c.

◆ table_key_to_ruby()

static VALUE table_key_to_ruby ( Map self,
const char *  buf,
size_t  length 
)
static

Definition at line 100 of file ruby/ext/google/protobuf_c/map.c.

◆ value_memory()

static void* value_memory ( upb_value v)
static

Definition at line 124 of file ruby/ext/google/protobuf_c/map.c.

Variable Documentation

◆ cMap

VALUE cMap

Definition at line 137 of file ruby/ext/google/protobuf_c/map.c.

◆ Map_type

const rb_data_type_t Map_type
Initial value:
= {
"Google::Protobuf::Map",
}

Definition at line 132 of file ruby/ext/google/protobuf_c/map.c.

NULL
NULL
Definition: test_security_zap.cpp:405
Map_mark
void Map_mark(void *_self)
Definition: ruby/ext/google/protobuf_c/map.c:145
Map_free
void Map_free(void *_self)
Definition: ruby/ext/google/protobuf_c/map.c:165


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03