mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
5b8b484548
Switch native proto implementations to use read_all instead of read. Add a bunch of tests to verify. Also: - removed some commented code in binary_protocol_accelerated.c - struct.c was missing one of the possible native method calls - updates gem manifest (included files that didn't exist) - fixed svn:ignores of test/rb/gen-rb and lib/java/gen-java git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761037 13f79535-47bb-0310-9956-ffa450edef68
96 lines
2.9 KiB
C
96 lines
2.9 KiB
C
/*
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
* or more contributor license agreements. See the NOTICE file
|
|
* distributed with this work for additional information
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
* to you under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance
|
|
* with the License. You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
* KIND, either express or implied. See the License for the
|
|
* specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
extern int TTYPE_STOP;
|
|
extern int TTYPE_BOOL;
|
|
extern int TTYPE_BYTE;
|
|
extern int TTYPE_I16;
|
|
extern int TTYPE_I32;
|
|
extern int TTYPE_I64;
|
|
extern int TTYPE_DOUBLE;
|
|
extern int TTYPE_STRING;
|
|
extern int TTYPE_MAP;
|
|
extern int TTYPE_SET;
|
|
extern int TTYPE_LIST;
|
|
extern int TTYPE_STRUCT;
|
|
|
|
extern ID validate_method_id;
|
|
extern ID write_struct_begin_method_id;
|
|
extern ID write_struct_end_method_id;
|
|
extern ID write_field_begin_method_id;
|
|
extern ID write_field_end_method_id;
|
|
extern ID write_boolean_method_id;
|
|
extern ID write_byte_method_id;
|
|
extern ID write_i16_method_id;
|
|
extern ID write_i32_method_id;
|
|
extern ID write_i64_method_id;
|
|
extern ID write_double_method_id;
|
|
extern ID write_string_method_id;
|
|
extern ID write_map_begin_method_id;
|
|
extern ID write_map_end_method_id;
|
|
extern ID write_list_begin_method_id;
|
|
extern ID write_list_end_method_id;
|
|
extern ID write_set_begin_method_id;
|
|
extern ID write_set_end_method_id;
|
|
extern ID size_method_id;
|
|
extern ID read_bool_method_id;
|
|
extern ID read_byte_method_id;
|
|
extern ID read_i16_method_id;
|
|
extern ID read_i32_method_id;
|
|
extern ID read_i64_method_id;
|
|
extern ID read_string_method_id;
|
|
extern ID read_double_method_id;
|
|
extern ID read_map_begin_method_id;
|
|
extern ID read_map_end_method_id;
|
|
extern ID read_list_begin_method_id;
|
|
extern ID read_list_end_method_id;
|
|
extern ID read_set_begin_method_id;
|
|
extern ID read_set_end_method_id;
|
|
extern ID read_struct_begin_method_id;
|
|
extern ID read_struct_end_method_id;
|
|
extern ID read_field_begin_method_id;
|
|
extern ID read_field_end_method_id;
|
|
extern ID keys_method_id;
|
|
extern ID entries_method_id;
|
|
extern ID name_method_id;
|
|
extern ID sort_method_id;
|
|
extern ID write_field_stop_method_id;
|
|
extern ID skip_method_id;
|
|
extern ID write_method_id;
|
|
extern ID read_all_method_id;
|
|
extern ID native_qmark_method_id;
|
|
|
|
extern ID fields_const_id;
|
|
extern ID transport_ivar_id;
|
|
extern ID strict_read_ivar_id;
|
|
extern ID strict_write_ivar_id;
|
|
|
|
extern VALUE type_sym;
|
|
extern VALUE name_sym;
|
|
extern VALUE key_sym;
|
|
extern VALUE value_sym;
|
|
extern VALUE element_sym;
|
|
extern VALUE class_sym;
|
|
|
|
extern VALUE rb_cSet;
|
|
extern VALUE thrift_module;
|
|
extern VALUE thrift_types_module;
|
|
extern VALUE class_thrift_protocol;
|
|
extern VALUE protocol_exception_class;
|