Class: BareTypes::I32
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
85
86
87
|
# File 'lib/generative_testing/monkey_patch.rb', line 85
def self.make(depth, names)
BareTypes::I32.new
end
|
Instance Method Details
89
90
91
|
# File 'lib/generative_testing/monkey_patch.rb', line 89
def create_input
rand(2 ** 32) - (2 ** 31)
end
|
#decode(msg) ⇒ Object
367
368
369
|
# File 'lib/types.rb', line 367
def decode(msg)
return msg.unpack('l<')[0], msg[4..msg.size]
end
|
#encode(msg, buffer) ⇒ Object
363
364
365
|
# File 'lib/types.rb', line 363
def encode(msg, buffer)
buffer << [msg].pack("l<")
end
|