Lines Matching full:value
69 - Ruby's "TypedData" abstraction lets a Ruby VALUE hold a pointer to a C
112 VALUE klass; // begins as nil
122 VALUE typeclass_references;
135 VALUE module; // begins as nil
139 VALUE descriptor;
140 VALUE builder;
144 VALUE descriptor;
145 VALUE builder;
149 VALUE enumdesc;
153 VALUE pending_list;
157 extern VALUE cDescriptorPool;
158 extern VALUE cDescriptor;
159 extern VALUE cFieldDescriptor;
160 extern VALUE cEnumDescriptor;
161 extern VALUE cMessageBuilderContext;
162 extern VALUE cOneofBuilderContext;
163 extern VALUE cEnumBuilderContext;
164 extern VALUE cBuilder;
166 extern VALUE cError;
167 extern VALUE cParseError;
177 VALUE DescriptorPool_alloc(VALUE klass);
178 void DescriptorPool_register(VALUE module);
179 DescriptorPool* ruby_to_DescriptorPool(VALUE value);
180 VALUE DescriptorPool_add(VALUE _self, VALUE def);
181 VALUE DescriptorPool_build(VALUE _self);
182 VALUE DescriptorPool_lookup(VALUE _self, VALUE name);
183 VALUE DescriptorPool_generated_pool(VALUE _self);
187 VALUE Descriptor_alloc(VALUE klass);
188 void Descriptor_register(VALUE module);
189 Descriptor* ruby_to_Descriptor(VALUE value);
190 VALUE Descriptor_name(VALUE _self);
191 VALUE Descriptor_name_set(VALUE _self, VALUE str);
192 VALUE Descriptor_each(VALUE _self);
193 VALUE Descriptor_lookup(VALUE _self, VALUE name);
194 VALUE Descriptor_add_field(VALUE _self, VALUE obj);
195 VALUE Descriptor_add_oneof(VALUE _self, VALUE obj);
196 VALUE Descriptor_each_oneof(VALUE _self);
197 VALUE Descriptor_lookup_oneof(VALUE _self, VALUE name);
198 VALUE Descriptor_msgclass(VALUE _self);
203 VALUE FieldDescriptor_alloc(VALUE klass);
204 void FieldDescriptor_register(VALUE module);
205 FieldDescriptor* ruby_to_FieldDescriptor(VALUE value);
206 VALUE FieldDescriptor_name(VALUE _self);
207 VALUE FieldDescriptor_name_set(VALUE _self, VALUE str);
208 VALUE FieldDescriptor_type(VALUE _self);
209 VALUE FieldDescriptor_type_set(VALUE _self, VALUE type);
210 VALUE FieldDescriptor_label(VALUE _self);
211 VALUE FieldDescriptor_label_set(VALUE _self, VALUE label);
212 VALUE FieldDescriptor_number(VALUE _self);
213 VALUE FieldDescriptor_number_set(VALUE _self, VALUE number);
214 VALUE FieldDescriptor_submsg_name(VALUE _self);
215 VALUE FieldDescriptor_submsg_name_set(VALUE _self, VALUE value);
216 VALUE FieldDescriptor_subtype(VALUE _self);
217 VALUE FieldDescriptor_get(VALUE _self, VALUE msg_rb);
218 VALUE FieldDescriptor_set(VALUE _self, VALUE msg_rb, VALUE value);
219 upb_fieldtype_t ruby_to_fieldtype(VALUE type);
220 VALUE fieldtype_to_ruby(upb_fieldtype_t type);
224 VALUE OneofDescriptor_alloc(VALUE klass);
225 void OneofDescriptor_register(VALUE module);
226 OneofDescriptor* ruby_to_OneofDescriptor(VALUE value);
227 VALUE OneofDescriptor_name(VALUE _self);
228 VALUE OneofDescriptor_name_set(VALUE _self, VALUE value);
229 VALUE OneofDescriptor_add_field(VALUE _self, VALUE field);
230 VALUE OneofDescriptor_each(VALUE _self, VALUE field);
234 VALUE EnumDescriptor_alloc(VALUE klass);
235 void EnumDescriptor_register(VALUE module);
236 EnumDescriptor* ruby_to_EnumDescriptor(VALUE value);
237 VALUE EnumDescriptor_name(VALUE _self);
238 VALUE EnumDescriptor_name_set(VALUE _self, VALUE str);
239 VALUE EnumDescriptor_add_value(VALUE _self, VALUE name, VALUE number);
240 VALUE EnumDescriptor_lookup_name(VALUE _self, VALUE name);
241 VALUE EnumDescriptor_lookup_value(VALUE _self, VALUE number);
242 VALUE EnumDescriptor_each(VALUE _self);
243 VALUE EnumDescriptor_enummodule(VALUE _self);
248 VALUE MessageBuilderContext_alloc(VALUE klass);
249 void MessageBuilderContext_register(VALUE module);
250 MessageBuilderContext* ruby_to_MessageBuilderContext(VALUE value);
251 VALUE MessageBuilderContext_initialize(VALUE _self,
252 VALUE descriptor,
253 VALUE builder);
254 VALUE MessageBuilderContext_optional(int argc, VALUE* argv, VALUE _self);
255 VALUE MessageBuilderContext_required(int argc, VALUE* argv, VALUE _self);
256 VALUE MessageBuilderContext_repeated(int argc, VALUE* argv, VALUE _self);
257 VALUE MessageBuilderContext_map(int argc, VALUE* argv, VALUE _self);
258 VALUE MessageBuilderContext_oneof(VALUE _self, VALUE name);
262 VALUE OneofBuilderContext_alloc(VALUE klass);
263 void OneofBuilderContext_register(VALUE module);
264 OneofBuilderContext* ruby_to_OneofBuilderContext(VALUE value);
265 VALUE OneofBuilderContext_initialize(VALUE _self,
266 VALUE descriptor,
267 VALUE builder);
268 VALUE OneofBuilderContext_optional(int argc, VALUE* argv, VALUE _self);
272 VALUE EnumBuilderContext_alloc(VALUE klass);
273 void EnumBuilderContext_register(VALUE module);
274 EnumBuilderContext* ruby_to_EnumBuilderContext(VALUE value);
275 VALUE EnumBuilderContext_initialize(VALUE _self, VALUE enumdesc);
276 VALUE EnumBuilderContext_value(VALUE _self, VALUE name, VALUE number);
280 VALUE Builder_alloc(VALUE klass);
281 void Builder_register(VALUE module);
282 Builder* ruby_to_Builder(VALUE value);
283 VALUE Builder_add_message(VALUE _self, VALUE name);
284 VALUE Builder_add_enum(VALUE _self, VALUE name);
285 VALUE Builder_finalize_to_pool(VALUE _self, VALUE pool_rb);
295 VALUE type_class,
297 VALUE value);
298 // Atomically (with respect to Ruby VM calls) either update the value and set a
299 // oneof case, or do neither. If |case_memory| is null, then no case value is
302 VALUE type_class,
304 VALUE value,
307 VALUE native_slot_get(upb_fieldtype_t type,
308 VALUE type_class,
316 void native_slot_validate_string_encoding(upb_fieldtype_t type, VALUE value);
317 void native_slot_check_int_range_precision(upb_fieldtype_t type, VALUE value);
323 VALUE field_type_class(const upb_fielddef* field);
328 // Oneof case slot value to indicate that no oneof case is set. The value `0` is
349 VALUE field_type_class;
357 VALUE RepeatedField_alloc(VALUE klass);
358 VALUE RepeatedField_init(int argc, VALUE* argv, VALUE self);
359 void RepeatedField_register(VALUE module);
362 extern VALUE cRepeatedField;
364 RepeatedField* ruby_to_RepeatedField(VALUE value);
366 VALUE RepeatedField_each(VALUE _self);
367 VALUE RepeatedField_index(int argc, VALUE* argv, VALUE _self);
368 void* RepeatedField_index_native(VALUE _self, int index);
369 VALUE RepeatedField_index_set(VALUE _self, VALUE _index, VALUE val);
371 VALUE RepeatedField_push(VALUE _self, VALUE val);
372 void RepeatedField_push_native(VALUE _self, void* data);
373 VALUE RepeatedField_pop_one(VALUE _self);
374 VALUE RepeatedField_insert(int argc, VALUE* argv, VALUE _self);
375 VALUE RepeatedField_replace(VALUE _self, VALUE list);
376 VALUE RepeatedField_clear(VALUE _self);
377 VALUE RepeatedField_length(VALUE _self);
378 VALUE RepeatedField_dup(VALUE _self);
379 VALUE RepeatedField_deep_copy(VALUE _self);
380 VALUE RepeatedField_to_ary(VALUE _self);
381 VALUE RepeatedField_eq(VALUE _self, VALUE _other);
382 VALUE RepeatedField_hash(VALUE _self);
383 VALUE RepeatedField_inspect(VALUE _self);
384 VALUE RepeatedField_plus(VALUE _self, VALUE list);
387 void validate_type_class(upb_fieldtype_t type, VALUE klass);
396 VALUE value_type_class;
402 VALUE Map_alloc(VALUE klass);
403 VALUE Map_init(int argc, VALUE* argv, VALUE self);
404 void Map_register(VALUE module);
407 extern VALUE cMap;
409 Map* ruby_to_Map(VALUE value);
411 VALUE Map_each(VALUE _self);
412 VALUE Map_keys(VALUE _self);
413 VALUE Map_values(VALUE _self);
414 VALUE Map_index(VALUE _self, VALUE key);
415 VALUE Map_index_set(VALUE _self, VALUE key, VALUE value);
416 VALUE Map_has_key(VALUE _self, VALUE key);
417 VALUE Map_delete(VALUE _self, VALUE key);
418 VALUE Map_clear(VALUE _self);
419 VALUE Map_length(VALUE _self);
420 VALUE Map_dup(VALUE _self);
421 VALUE Map_deep_copy(VALUE _self);
422 VALUE Map_eq(VALUE _self, VALUE _other);
423 VALUE Map_hash(VALUE _self);
424 VALUE Map_inspect(VALUE _self);
425 VALUE Map_merge(VALUE _self, VALUE hashmap);
426 VALUE Map_merge_into_self(VALUE _self, VALUE hashmap);
433 void Map_begin(VALUE _self, Map_iter* iter);
436 VALUE Map_iter_key(Map_iter* iter);
437 VALUE Map_iter_value(Map_iter* iter);
458 VALUE layout_get(MessageLayout* layout,
464 VALUE val);
469 VALUE layout_eq(MessageLayout* layout, void* msg1, void* msg2);
470 VALUE layout_hash(MessageLayout* layout, void* storage);
471 VALUE layout_inspect(MessageLayout* layout, void* storage);
484 VALUE build_class_from_descriptor(Descriptor* descriptor);
488 VALUE Message_alloc(VALUE klass);
489 VALUE Message_method_missing(int argc, VALUE* argv, VALUE _self);
490 VALUE Message_initialize(int argc, VALUE* argv, VALUE _self);
491 VALUE Message_dup(VALUE _self);
492 VALUE Message_deep_copy(VALUE _self);
493 VALUE Message_eq(VALUE _self, VALUE _other);
494 VALUE Message_hash(VALUE _self);
495 VALUE Message_inspect(VALUE _self);
496 VALUE Message_index(VALUE _self, VALUE field_name);
497 VALUE Message_index_set(VALUE _self, VALUE field_name, VALUE value);
498 VALUE Message_descriptor(VALUE klass);
499 VALUE Message_decode(VALUE klass, VALUE data);
500 VALUE Message_encode(VALUE klass, VALUE msg_rb);
501 VALUE Message_decode_json(VALUE klass, VALUE data);
502 VALUE Message_encode_json(int argc, VALUE* argv, VALUE klass);
504 VALUE Google_Protobuf_deep_copy(VALUE self, VALUE obj);
506 VALUE build_module_from_enumdesc(EnumDescriptor* enumdef);
507 VALUE enum_lookup(VALUE self, VALUE number);
508 VALUE enum_resolve(VALUE self, VALUE sym);
521 void add_def_obj(const void* def, VALUE value);
522 VALUE get_def_obj(const void* def);