Class: ProtocolBuffers::Field::Fixed32Field
- Inherits:
-
NumericField
- Object
- ProtocolBuffers::Field
- NumericField
- ProtocolBuffers::Field::Fixed32Field
- Includes:
- WireFormats::FIXED32
- Defined in:
- lib/protocol_buffers/runtime/field.rb
Instance Attribute Summary
Attributes inherited from ProtocolBuffers::Field
Instance Method Summary collapse
Methods included from WireFormats::FIXED32
#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
331 332 333 |
# File 'lib/protocol_buffers/runtime/field.rb', line 331 def max 0xFFFFFFFF end |
#pack_code ⇒ Object
327 328 329 |
# File 'lib/protocol_buffers/runtime/field.rb', line 327 def pack_code 'L' end |
#valid_type?(value) ⇒ Boolean
335 336 337 |
# File 'lib/protocol_buffers/runtime/field.rb', line 335 def valid_type?(value) value.is_a?(Integer) end |