Class: Exonum::Int64T
- Inherits:
-
Object
- Object
- Exonum::Int64T
- Defined in:
- lib/exonum/types/primitive.rb
Class Method Summary collapse
Class Method Details
.fixed? ⇒ Boolean
128 129 130 |
# File 'lib/exonum/types/primitive.rb', line 128 def self.fixed? true end |
.serialize(value, buffer, from, shift = 0) ⇒ Object
132 133 134 135 136 137 |
# File 'lib/exonum/types/primitive.rb', line 132 def self.serialize value, buffer, from, shift=0 [value].pack('q<').bytes.each do |byte| buffer[from] = byte from += 1 end end |
.size ⇒ Object
124 125 126 |
# File 'lib/exonum/types/primitive.rb', line 124 def self.size 8 end |