Class: ProtocolBuffers::Field::Fixed64Field
- Inherits:
-
NumericField
- Object
- ProtocolBuffers::Field
- NumericField
- ProtocolBuffers::Field::Fixed64Field
- Includes:
- WireFormats::FIXED64
- Defined in:
- lib/protocol_buffers/runtime/field.rb
Instance Attribute Summary
Attributes inherited from ProtocolBuffers::Field
Instance Method Summary collapse
Methods included from WireFormats::FIXED64
#deserialize, #serialize, #wire_type
Methods inherited from NumericField
#check_value, #default_value, #min
Methods inherited from ProtocolBuffers::Field
#add_methods_to, #check_valid, #check_value, create, #deserialize, #initialize, #inspect_value, #repeated?, #serialize
Instance Method Details
#max ⇒ Object
347 348 349 |
# File 'lib/protocol_buffers/runtime/field.rb', line 347 def max 0xFFFFFFFF_FFFFFFFF end |
#pack_code ⇒ Object
343 344 345 |
# File 'lib/protocol_buffers/runtime/field.rb', line 343 def pack_code 'Q' end |
#valid_type?(value) ⇒ Boolean
351 352 353 |
# File 'lib/protocol_buffers/runtime/field.rb', line 351 def valid_type?(value) value.is_a?(Integer) end |