Class: BareTypes::U32
Class Method Summary
collapse
Instance Method Summary
collapse
#==, #finalize_references, #to_schema
Methods inherited from BaseType
#cycle_search, #initialize
Class Method Details
.make(depth, names) ⇒ Object
45
46
47
|
# File 'lib/generative_testing/monkey_patch.rb', line 45
def self.make(depth, names)
BareTypes::U32.new
end
|
Instance Method Details
49
50
51
|
# File 'lib/generative_testing/monkey_patch.rb', line 49
def create_input
rand(2 ** 32)
end
|
#decode(msg) ⇒ Object
327
328
329
|
# File 'lib/types.rb', line 327
def decode(msg)
return msg.unpack("V")[0], msg[4..msg.size]
end
|
#encode(msg, buffer) ⇒ Object
323
324
325
|
# File 'lib/types.rb', line 323
def encode(msg, buffer)
buffer << [msg].pack("V")
end
|