class Beowulf::Type::Uint32

Public Class Methods

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

Public Instance Methods

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