Module: KRPC::Types

Defined in:
lib/krpc/types.rb

Defined Under Namespace

Classes: ClassType, DictionaryType, EnumType, ListType, MessageType, SetType, TupleType, TypeBase, TypeStore, ValueType

Constant Summary collapse

PROTOBUF_VALUE_TYPES =
["double", "float", "int32", "int64", "uint32", "uint64", "bool", "string", "bytes"]
RUBY_VALUE_TYPES =
[Float, Integer, Boolean, String, Array]
PROTOBUF_TO_RUBY_VALUE_TYPE =
{
  "double" => Float,
  "float"  => Float,
  "int32"  => Integer,
  "int64"  => Integer,
  "uint32" => Integer,
  "uint64" => Integer,
  "bool"   => Boolean,
  "string" => String,
  "bytes"  => Array
}
PROTOBUF_TO_MESSAGE_TYPE =
ProtobufUtils.create_PB_to_PB_message_class_hash("KRPC")