class Radiator::Type::Uint32

See: github.com/xeroc/piston-lib/blob/34a7525cee119ec9b24a99577ede2d54466fca0e/steembase/operations.py

Public Class Methods

new(value) click to toggle source
Calls superclass method Radiator::Type::Serializer::new
# File lib/radiator/type/u_int32.rb, line 6
def initialize(value)
  super(:u_int_32, value.to_i)
end

Public Instance Methods

to_bytes() click to toggle source
# File lib/radiator/type/u_int32.rb, line 10
def to_bytes
  [@value].pack('L')
end
to_s() click to toggle source
# File lib/radiator/type/u_int32.rb, line 14
def to_s
  @value.to_s
end