Classes | Macros | Functions | Variables
protobuf/ruby/ext/google/protobuf_c/defs.c File Reference
#include <ctype.h>
#include <errno.h>
#include <ruby/version.h>
#include "convert.h"
#include "message.h"
#include "protobuf.h"
Include dependency graph for protobuf/ruby/ext/google/protobuf_c/defs.c:

Go to the source code of this file.

Classes

struct  Descriptor
 
struct  DescriptorPool
 
struct  EnumDescriptor
 
struct  FieldDescriptor
 
struct  FileDescriptor
 
struct  OneofDescriptor
 

Macros

#define CONVERT(upb, ruby)
 
#define CONVERT(upb, ruby)   case UPB_DESCRIPTOR_TYPE_ ## upb : return ID2SYM(rb_intern( # ruby ));
 
#define CONVERT(upb, ruby)   case UPB_LABEL_ ## upb : return ID2SYM(rb_intern( # ruby ));
 

Functions

void Defs_register (VALUE module)
 
static VALUE Descriptor_alloc (VALUE klass)
 
VALUE Descriptor_DefToClass (const upb_msgdef *m)
 
static VALUE Descriptor_each (VALUE _self)
 
static VALUE Descriptor_each_oneof (VALUE _self)
 
static VALUE Descriptor_file_descriptor (VALUE _self)
 
const upb_msgdefDescriptor_GetMsgDef (VALUE desc_rb)
 
static VALUE Descriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr)
 
static VALUE Descriptor_lookup (VALUE _self, VALUE name)
 
static VALUE Descriptor_lookup_oneof (VALUE _self, VALUE name)
 
static void Descriptor_mark (void *_self)
 
static VALUE Descriptor_msgclass (VALUE _self)
 
static VALUE Descriptor_name (VALUE _self)
 
static void Descriptor_register (VALUE module)
 
VALUE DescriptorPool_add_serialized_file (VALUE _self, VALUE serialized_file_proto)
 
static VALUE DescriptorPool_alloc (VALUE klass)
 
static void DescriptorPool_free (void *_self)
 
static VALUE DescriptorPool_generated_pool (VALUE _self)
 
const upb_symtabDescriptorPool_GetSymtab (VALUE desc_pool_rb)
 
static VALUE DescriptorPool_lookup (VALUE _self, VALUE name)
 
static void DescriptorPool_mark (void *_self)
 
static void DescriptorPool_register (VALUE module)
 
static VALUE descriptortype_to_ruby (upb_descriptortype_t type)
 
static VALUE EnumDescriptor_alloc (VALUE klass)
 
static VALUE EnumDescriptor_each (VALUE _self)
 
static VALUE EnumDescriptor_enummodule (VALUE _self)
 
static VALUE EnumDescriptor_file_descriptor (VALUE _self)
 
const upb_enumdefEnumDescriptor_GetEnumDef (VALUE enum_desc_rb)
 
static VALUE EnumDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr)
 
static VALUE EnumDescriptor_lookup_name (VALUE _self, VALUE name)
 
static VALUE EnumDescriptor_lookup_value (VALUE _self, VALUE number)
 
static void EnumDescriptor_mark (void *_self)
 
static VALUE EnumDescriptor_name (VALUE _self)
 
static void EnumDescriptor_register (VALUE module)
 
static VALUE FieldDescriptor__type (VALUE _self)
 
static VALUE FieldDescriptor_alloc (VALUE klass)
 
static VALUE FieldDescriptor_clear (VALUE _self, VALUE msg_rb)
 
static VALUE FieldDescriptor_default (VALUE _self)
 
static VALUE FieldDescriptor_get (VALUE _self, VALUE msg_rb)
 
static VALUE FieldDescriptor_has (VALUE _self, VALUE msg_rb)
 
static VALUE FieldDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr)
 
static VALUE FieldDescriptor_json_name (VALUE _self)
 
static VALUE FieldDescriptor_label (VALUE _self)
 
static void FieldDescriptor_mark (void *_self)
 
static VALUE FieldDescriptor_name (VALUE _self)
 
static VALUE FieldDescriptor_number (VALUE _self)
 
static void FieldDescriptor_register (VALUE module)
 
static VALUE FieldDescriptor_set (VALUE _self, VALUE msg_rb, VALUE value)
 
static VALUE FieldDescriptor_submsg_name (VALUE _self)
 
static VALUE FieldDescriptor_subtype (VALUE _self)
 
static VALUE FileDescriptor_alloc (VALUE klass)
 
static VALUE FileDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr)
 
static void FileDescriptor_mark (void *_self)
 
static VALUE FileDescriptor_name (VALUE _self)
 
static void FileDescriptor_register (VALUE module)
 
static VALUE FileDescriptor_syntax (VALUE _self)
 
static VALUE get_def_obj (VALUE _descriptor_pool, const void *ptr, VALUE klass)
 
static VALUE get_enumdef_obj (VALUE descriptor_pool, const upb_enumdef *def)
 
static VALUE get_fielddef_obj (VALUE descriptor_pool, const upb_fielddef *def)
 
static VALUE get_filedef_obj (VALUE descriptor_pool, const upb_filedef *def)
 
static VALUE get_msgdef_obj (VALUE descriptor_pool, const upb_msgdef *def)
 
static VALUE get_oneofdef_obj (VALUE descriptor_pool, const upb_oneofdef *def)
 
static const char * get_str (VALUE str)
 
static VALUE OneofDescriptor_alloc (VALUE klass)
 
static VALUE OneofDescriptor_each (VALUE _self)
 
static VALUE OneofDescriptor_initialize (VALUE _self, VALUE cookie, VALUE descriptor_pool, VALUE ptr)
 
static void OneofDescriptor_mark (void *_self)
 
static VALUE OneofDescriptor_name (VALUE _self)
 
static void OneofDescriptor_register (VALUE module)
 
static VALUE rb_str_maybe_null (const char *s)
 
static Descriptorruby_to_Descriptor (VALUE val)
 
static DescriptorPoolruby_to_DescriptorPool (VALUE val)
 
static EnumDescriptorruby_to_EnumDescriptor (VALUE val)
 
static FieldDescriptorruby_to_FieldDescriptor (VALUE val)
 
upb_fieldtype_t ruby_to_fieldtype (VALUE type)
 
static FileDescriptorruby_to_FileDescriptor (VALUE val)
 
static OneofDescriptorruby_to_OneofDescriptor (VALUE val)
 
TypeInfo TypeInfo_FromClass (int argc, VALUE *argv, int skip_arg, VALUE *type_class, VALUE *init_arg)
 
VALUE TypeInfo_InitArg (int argc, VALUE *argv, int skip_arg)
 

Variables

VALUE c_only_cookie = Qnil
 
VALUE cDescriptor = Qnil
 
VALUE cDescriptorPool = Qnil
 
static VALUE cEnumDescriptor = Qnil
 
static VALUE cFieldDescriptor = Qnil
 
static VALUE cFileDescriptor = Qnil
 
static VALUE cOneofDescriptor = Qnil
 
static const rb_data_type_t Descriptor_type
 
static const rb_data_type_t DescriptorPool_type
 
static const rb_data_type_t EnumDescriptor_type
 
static const rb_data_type_t FieldDescriptor_type
 
static const rb_data_type_t FileDescriptor_type
 
VALUE generated_pool = Qnil
 
static const rb_data_type_t OneofDescriptor_type
 

Macro Definition Documentation

◆ CONVERT [1/3]

#define CONVERT (   upb,
  ruby 
)
Value:
if (SYM2ID(type) == rb_intern( # ruby )) { \
return UPB_TYPE_ ## upb; \
}

◆ CONVERT [2/3]

#define CONVERT (   upb,
  ruby 
)    case UPB_DESCRIPTOR_TYPE_ ## upb : return ID2SYM(rb_intern( # ruby ));

◆ CONVERT [3/3]

#define CONVERT (   upb,
  ruby 
)    case UPB_LABEL_ ## upb : return ID2SYM(rb_intern( # ruby ));

Function Documentation

◆ Defs_register()

void Defs_register ( VALUE  module)

Definition at line 1274 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_alloc()

static VALUE Descriptor_alloc ( VALUE  klass)
static

Definition at line 259 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_DefToClass()

VALUE Descriptor_DefToClass ( const upb_msgdef m)

Definition at line 1213 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_each()

static VALUE Descriptor_each ( VALUE  _self)
static

Definition at line 318 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_each_oneof()

static VALUE Descriptor_each_oneof ( VALUE  _self)
static

Definition at line 356 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_file_descriptor()

static VALUE Descriptor_file_descriptor ( VALUE  _self)
static

Definition at line 295 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_GetMsgDef()

const upb_msgdef* Descriptor_GetMsgDef ( VALUE  desc_rb)

Definition at line 1222 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_initialize()

static VALUE Descriptor_initialize ( VALUE  _self,
VALUE  cookie,
VALUE  descriptor_pool,
VALUE  ptr 
)
static

Definition at line 274 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_lookup()

static VALUE Descriptor_lookup ( VALUE  _self,
VALUE  name 
)
static

Definition at line 339 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_lookup_oneof()

static VALUE Descriptor_lookup_oneof ( VALUE  _self,
VALUE  name 
)
static

Definition at line 377 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_mark()

static void Descriptor_mark ( void *  _self)
static

Definition at line 232 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_msgclass()

static VALUE Descriptor_msgclass ( VALUE  _self)
static

Definition at line 393 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_name()

static VALUE Descriptor_name ( VALUE  _self)
static

Definition at line 307 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_register()

static void Descriptor_register ( VALUE  module)
static

Definition at line 401 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_add_serialized_file()

VALUE DescriptorPool_add_serialized_file ( VALUE  _self,
VALUE  serialized_file_proto 
)

Definition at line 141 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_alloc()

static VALUE DescriptorPool_alloc ( VALUE  klass)
static

Definition at line 121 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_free()

static void DescriptorPool_free ( void *  _self)
static

Definition at line 91 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_generated_pool()

static VALUE DescriptorPool_generated_pool ( VALUE  _self)
static

Definition at line 200 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_GetSymtab()

const upb_symtab* DescriptorPool_GetSymtab ( VALUE  desc_pool_rb)

Definition at line 110 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_lookup()

static VALUE DescriptorPool_lookup ( VALUE  _self,
VALUE  name 
)
static

Definition at line 172 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_mark()

static void DescriptorPool_mark ( void *  _self)
static

Definition at line 86 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_register()

static void DescriptorPool_register ( VALUE  module)
static

Definition at line 204 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ descriptortype_to_ruby()

static VALUE descriptortype_to_ruby ( upb_descriptortype_t  type)
static

Definition at line 621 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_alloc()

static VALUE EnumDescriptor_alloc ( VALUE  klass)
static

Definition at line 1019 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_each()

static VALUE EnumDescriptor_each ( VALUE  _self)
static

Definition at line 1121 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_enummodule()

static VALUE EnumDescriptor_enummodule ( VALUE  _self)
static

Definition at line 1142 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_file_descriptor()

static VALUE EnumDescriptor_file_descriptor ( VALUE  _self)
static

Definition at line 1061 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_GetEnumDef()

const upb_enumdef* EnumDescriptor_GetEnumDef ( VALUE  enum_desc_rb)

Definition at line 1029 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_initialize()

static VALUE EnumDescriptor_initialize ( VALUE  _self,
VALUE  cookie,
VALUE  descriptor_pool,
VALUE  ptr 
)
static

Definition at line 1040 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_lookup_name()

static VALUE EnumDescriptor_lookup_name ( VALUE  _self,
VALUE  name 
)
static

Definition at line 1085 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_lookup_value()

static VALUE EnumDescriptor_lookup_value ( VALUE  _self,
VALUE  number 
)
static

Definition at line 1103 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_mark()

static void EnumDescriptor_mark ( void *  _self)
static

Definition at line 1001 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_name()

static VALUE EnumDescriptor_name ( VALUE  _self)
static

Definition at line 1073 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_register()

static void EnumDescriptor_register ( VALUE  module)
static

Definition at line 1150 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor__type()

static VALUE FieldDescriptor__type ( VALUE  _self)
static

Definition at line 658 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_alloc()

static VALUE FieldDescriptor_alloc ( VALUE  klass)
static

Definition at line 553 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_clear()

static VALUE FieldDescriptor_clear ( VALUE  _self,
VALUE  msg_rb 
)
static

Definition at line 824 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_default()

static VALUE FieldDescriptor_default ( VALUE  _self)
static

Definition at line 669 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_get()

static VALUE FieldDescriptor_get ( VALUE  _self,
VALUE  msg_rb 
)
static

Definition at line 784 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_has()

static VALUE FieldDescriptor_has ( VALUE  _self,
VALUE  msg_rb 
)
static

Definition at line 804 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_initialize()

static VALUE FieldDescriptor_initialize ( VALUE  _self,
VALUE  cookie,
VALUE  descriptor_pool,
VALUE  ptr 
)
static

Definition at line 566 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_json_name()

static VALUE FieldDescriptor_json_name ( VALUE  _self)
static

Definition at line 688 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_label()

static VALUE FieldDescriptor_label ( VALUE  _self)
static

Definition at line 704 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_mark()

static void FieldDescriptor_mark ( void *  _self)
static

Definition at line 529 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_name()

static VALUE FieldDescriptor_name ( VALUE  _self)
static

Definition at line 587 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_number()

static VALUE FieldDescriptor_number ( VALUE  _self)
static

Definition at line 726 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_register()

static void FieldDescriptor_register ( VALUE  module)
static

Definition at line 862 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_set()

static VALUE FieldDescriptor_set ( VALUE  _self,
VALUE  msg_rb,
VALUE  value 
)
static

Definition at line 845 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_submsg_name()

static VALUE FieldDescriptor_submsg_name ( VALUE  _self)
static

Definition at line 740 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_subtype()

static VALUE FieldDescriptor_subtype ( VALUE  _self)
static

Definition at line 763 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_alloc()

static VALUE FileDescriptor_alloc ( VALUE  klass)
static

Definition at line 446 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_initialize()

static VALUE FileDescriptor_initialize ( VALUE  _self,
VALUE  cookie,
VALUE  descriptor_pool,
VALUE  ptr 
)
static

Definition at line 461 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_mark()

static void FileDescriptor_mark ( void *  _self)
static

Definition at line 429 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_name()

static VALUE FileDescriptor_name ( VALUE  _self)
static

Definition at line 482 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_register()

static void FileDescriptor_register ( VALUE  module)
static

Definition at line 507 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_syntax()

static VALUE FileDescriptor_syntax ( VALUE  _self)
static

Definition at line 497 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_def_obj()

static VALUE get_def_obj ( VALUE  _descriptor_pool,
const void *  ptr,
VALUE  klass 
)
static

Definition at line 1166 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_enumdef_obj()

static VALUE get_enumdef_obj ( VALUE  descriptor_pool,
const upb_enumdef def 
)
static

Definition at line 1191 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_fielddef_obj()

static VALUE get_fielddef_obj ( VALUE  descriptor_pool,
const upb_fielddef def 
)
static

Definition at line 1195 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_filedef_obj()

static VALUE get_filedef_obj ( VALUE  descriptor_pool,
const upb_filedef def 
)
static

Definition at line 1199 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_msgdef_obj()

static VALUE get_msgdef_obj ( VALUE  descriptor_pool,
const upb_msgdef def 
)
static

Definition at line 1187 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_oneofdef_obj()

static VALUE get_oneofdef_obj ( VALUE  descriptor_pool,
const upb_oneofdef def 
)
static

Definition at line 1203 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ get_str()

static const char* get_str ( VALUE  str)
static

Definition at line 59 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_alloc()

static VALUE OneofDescriptor_alloc ( VALUE  klass)
static

Definition at line 918 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_each()

static VALUE OneofDescriptor_each ( VALUE  _self)
static

Definition at line 964 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_initialize()

static VALUE OneofDescriptor_initialize ( VALUE  _self,
VALUE  cookie,
VALUE  descriptor_pool,
VALUE  ptr 
)
static

Definition at line 932 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_mark()

static void OneofDescriptor_mark ( void *  _self)
static

Definition at line 894 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_name()

static VALUE OneofDescriptor_name ( VALUE  _self)
static

Definition at line 953 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_register()

static void OneofDescriptor_register ( VALUE  module)
static

Definition at line 977 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ rb_str_maybe_null()

static VALUE rb_str_maybe_null ( const char *  s)
static

Definition at line 64 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_Descriptor()

static Descriptor* ruby_to_Descriptor ( VALUE  val)
static

Definition at line 244 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_DescriptorPool()

static DescriptorPool* ruby_to_DescriptorPool ( VALUE  val)
static

Definition at line 103 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_EnumDescriptor()

static EnumDescriptor* ruby_to_EnumDescriptor ( VALUE  val)
static

Definition at line 1013 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_FieldDescriptor()

static FieldDescriptor* ruby_to_FieldDescriptor ( VALUE  val)
static

Definition at line 540 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_fieldtype()

upb_fieldtype_t ruby_to_fieldtype ( VALUE  type)

Definition at line 593 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_FileDescriptor()

static FileDescriptor* ruby_to_FileDescriptor ( VALUE  val)
static

Definition at line 440 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ ruby_to_OneofDescriptor()

static OneofDescriptor* ruby_to_OneofDescriptor ( VALUE  val)
static

Definition at line 905 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ TypeInfo_FromClass()

TypeInfo TypeInfo_FromClass ( int  argc,
VALUE *  argv,
int  skip_arg,
VALUE *  type_class,
VALUE *  init_arg 
)

Definition at line 1238 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ TypeInfo_InitArg()

VALUE TypeInfo_InitArg ( int  argc,
VALUE *  argv,
int  skip_arg 
)

Definition at line 1227 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

Variable Documentation

◆ c_only_cookie

VALUE c_only_cookie = Qnil

Definition at line 53 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cDescriptor

VALUE cDescriptor = Qnil

Definition at line 230 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cDescriptorPool

VALUE cDescriptorPool = Qnil

Definition at line 80 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cEnumDescriptor

VALUE cEnumDescriptor = Qnil
static

Definition at line 999 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cFieldDescriptor

VALUE cFieldDescriptor = Qnil
static

Definition at line 527 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cFileDescriptor

VALUE cFileDescriptor = Qnil
static

Definition at line 427 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ cOneofDescriptor

VALUE cOneofDescriptor = Qnil
static

Definition at line 892 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ Descriptor_type

const rb_data_type_t Descriptor_type
static
Initial value:
= {
"Google::Protobuf::Descriptor",
{Descriptor_mark, RUBY_DEFAULT_FREE, NULL},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 238 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ DescriptorPool_type

const rb_data_type_t DescriptorPool_type
static
Initial value:
= {
"Google::Protobuf::DescriptorPool",
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 97 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ EnumDescriptor_type

const rb_data_type_t EnumDescriptor_type
static
Initial value:
= {
"Google::Protobuf::EnumDescriptor",
{EnumDescriptor_mark, RUBY_DEFAULT_FREE, NULL},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 1007 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FieldDescriptor_type

const rb_data_type_t FieldDescriptor_type
static
Initial value:
= {
"Google::Protobuf::FieldDescriptor",
{FieldDescriptor_mark, RUBY_DEFAULT_FREE, NULL},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 534 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ FileDescriptor_type

const rb_data_type_t FileDescriptor_type
static
Initial value:
= {
"Google::Protobuf::FileDescriptor",
{FileDescriptor_mark, RUBY_DEFAULT_FREE, NULL},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 434 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ generated_pool

VALUE generated_pool = Qnil

Definition at line 84 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

◆ OneofDescriptor_type

const rb_data_type_t OneofDescriptor_type
static
Initial value:
= {
"Google::Protobuf::OneofDescriptor",
{OneofDescriptor_mark, RUBY_DEFAULT_FREE, NULL},
.flags = RUBY_TYPED_FREE_IMMEDIATELY,
}

Definition at line 899 of file protobuf/ruby/ext/google/protobuf_c/defs.c.

OneofDescriptor_mark
static void OneofDescriptor_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:894
FieldDescriptor_mark
static void FieldDescriptor_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:529
DescriptorPool_mark
static void DescriptorPool_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:86
DescriptorPool_free
static void DescriptorPool_free(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:91
upb
Definition: def.hpp:38
FileDescriptor_mark
static void FileDescriptor_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:429
EnumDescriptor_mark
static void EnumDescriptor_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:1001
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
Descriptor_mark
static void Descriptor_mark(void *_self)
Definition: protobuf/ruby/ext/google/protobuf_c/defs.c:232


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:10