|  | /* | 
|  | * 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. | 
|  | */ | 
|  |  | 
|  |  | 
|  | #include <stdbool.h> | 
|  | #include <ruby.h> | 
|  |  | 
|  | typedef struct native_proto_method_table { | 
|  | VALUE (*write_bool)(VALUE, VALUE); | 
|  | VALUE (*write_byte)(VALUE, VALUE); | 
|  | VALUE (*write_i16)(VALUE, VALUE); | 
|  | VALUE (*write_i32)(VALUE, VALUE); | 
|  | VALUE (*write_i64)(VALUE, VALUE); | 
|  | VALUE (*write_double)(VALUE, VALUE); | 
|  | VALUE (*write_string)(VALUE, VALUE); | 
|  | VALUE (*write_list_begin)(VALUE, VALUE, VALUE); | 
|  | VALUE (*write_list_end)(VALUE); | 
|  | VALUE (*write_set_begin)(VALUE, VALUE, VALUE); | 
|  | VALUE (*write_set_end)(VALUE); | 
|  | VALUE (*write_map_begin)(VALUE, VALUE, VALUE, VALUE); | 
|  | VALUE (*write_map_end)(VALUE); | 
|  | VALUE (*write_struct_begin)(VALUE, VALUE); | 
|  | VALUE (*write_struct_end)(VALUE); | 
|  | VALUE (*write_field_begin)(VALUE, VALUE, VALUE, VALUE); | 
|  | VALUE (*write_field_end)(VALUE); | 
|  | VALUE (*write_field_stop)(VALUE); | 
|  | VALUE (*write_message_begin)(VALUE, VALUE, VALUE, VALUE); | 
|  | VALUE (*write_message_end)(VALUE); | 
|  |  | 
|  | VALUE (*read_message_begin)(VALUE); | 
|  | VALUE (*read_message_end)(VALUE); | 
|  | VALUE (*read_field_begin)(VALUE); | 
|  | VALUE (*read_field_end)(VALUE); | 
|  | VALUE (*read_map_begin)(VALUE); | 
|  | VALUE (*read_map_end)(VALUE); | 
|  | VALUE (*read_list_begin)(VALUE); | 
|  | VALUE (*read_list_end)(VALUE); | 
|  | VALUE (*read_set_begin)(VALUE); | 
|  | VALUE (*read_set_end)(VALUE); | 
|  | VALUE (*read_byte)(VALUE); | 
|  | VALUE (*read_bool)(VALUE); | 
|  | VALUE (*read_i16)(VALUE); | 
|  | VALUE (*read_i32)(VALUE); | 
|  | VALUE (*read_i64)(VALUE); | 
|  | VALUE (*read_double)(VALUE); | 
|  | VALUE (*read_string)(VALUE); | 
|  | VALUE (*read_struct_begin)(VALUE); | 
|  | VALUE (*read_struct_end)(VALUE); | 
|  | } native_proto_method_table; | 
|  |  | 
|  | void Init_struct(); | 
|  | void Init_union(); |