class Google::Protobuf::FFI

Constants

CType
DecodeStatus
EncodeStatus
FieldType
Label
Upb_Encode_Deterministic
Upb_Encode_SkipUnknown
Upb_JsonDecodeResult_Error
Upb_JsonDecodeResult_Ok

JSON Decoding results

Upb_JsonDecodeResult_OkWithEmptyStringNumerics
Upb_JsonDecode_IgnoreUnknown

JSON Decoding options

Upb_JsonEncode_EmitDefaults
JSON Encoding options

When set, emits 0/default values. TODO: proto3 only?

Upb_JsonEncode_FormatEnumsAsIntegers

When set, emits enums as their integer values instead of as their names.

Upb_JsonEncode_UseProtoNames

When set, use normal (snake_case) field names instead of JSON (camelCase) names.

Upb_Map_Begin

Map

Upb_Message_Begin
Upb_Status_MaxMessage

Encoding Status

WellKnown

All the different kind of well known type messages. For simplicity of check, number wrappers and string wrappers are grouped together. Make sure the order and merber of these groups are not changed.

Public Class Methods

decode_max_depth(i) click to toggle source

Alternatives to pre-processor macros

# File lib/google/protobuf/ffi/ffi.rb, line 210
def self.decode_max_depth(i)
  i << 16
end