Class: Exonum::UInt64T
- Inherits:
-
Object
- Object
- Exonum::UInt64T
- Defined in:
- lib/exonum/types/primitive.rb
Class Method Summary collapse
Class Method Details
.fixed? ⇒ Boolean
145 146 147 |
# File 'lib/exonum/types/primitive.rb', line 145 def self.fixed? true end |
.serialize(value, buffer, from, shift = 0) ⇒ Object
149 150 151 152 153 154 |
# File 'lib/exonum/types/primitive.rb', line 149 def self.serialize value, buffer, from, shift=0 [value].pack('Q<').bytes.each do |byte| buffer[from] = byte from += 1 end end |
.size ⇒ Object
141 142 143 |
# File 'lib/exonum/types/primitive.rb', line 141 def self.size 8 end |