class Exonum::Int32T
Public Class Methods
fixed?()
click to toggle source
# File lib/exonum/types/primitive.rb, line 93 def self.fixed? true end
serialize(value, buffer, from, shift=0)
click to toggle source
# File lib/exonum/types/primitive.rb, line 97 def self.serialize value, buffer, from, shift=0 raise 'Incorrect integer value' if value < MIN_INT32 or value > MAX_INT32 [value].pack('l<').bytes.each do |byte| buffer[from] = byte from += 1 end end
size()
click to toggle source
# File lib/exonum/types/primitive.rb, line 89 def self.size 4 end