This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read_size = FFI::MemoryPointer.new(:int32, 1) | |
read_size.write_int32(4) | |
p2p_buffer_size = 128 * 1024 | |
input_buffer = FFI::MemoryPointer.new(:char, p2p_buffer_size, true) | |
some_obj = SandBox.new.authenticate read_size, input_buffer, 100000 | |
class SandBox | |
def authenticate(read_size, input_buffer, timeout=100000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Xcode 4.3.3 | |
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
Target: x86_64-apple-darwin11.4.0 | |
Thread model: posix | |
# Xcode 4.3.2 | |
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
Target: x86_64-apple-darwin11.4.0 | |
Thread model: posix |
NewerOlder