Class: Protopuffs::Double
- Inherits:
-
Fixed64Base
- Object
- MessageField
- Numeric
- Fixed64Base
- Protopuffs::Double
- Defined in:
- lib/protopuffs/message/field.rb
Instance Attribute Summary
Attributes inherited from MessageField
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Fixed64Base
Methods inherited from Numeric
Methods inherited from MessageField
factory, #key, #optional?, #repeated?, shift_tag, #to_wire_format_with_value
Constructor Details
This class inherits a constructor from Protopuffs::Numeric
Class Method Details
.encode(value) ⇒ Object
168 |
# File 'lib/protopuffs/message/field.rb', line 168 def self.encode(value); [value].pack('E') end |
Instance Method Details
#decode(bytes) ⇒ Object
167 |
# File 'lib/protopuffs/message/field.rb', line 167 def decode(bytes); bytes.unpack('E').first end |