Skip to content

Instantly share code, notes, and snippets.

@richinseattle
Created May 9, 2017 05:42
Show Gist options
  • Save richinseattle/75752ee3095bfabd80d16ddf08884588 to your computer and use it in GitHub Desktop.
Save richinseattle/75752ee3095bfabd80d16ddf08884588 to your computer and use it in GitHub Desktop.
C:\code\radamsa>bin\libtest.exe
============= TEST: MEM TO MEM =============
virtualized radamsa_read(fd=3, buf=000000000118D180, count=2824)
requested: 2824 input_size: 64 input_index: 0 returned: 64
virtualized radamsa_read(fd=3, buf=000000000118D310, count=2760)
requested: 2760 input_size: 64 input_index: 64 returned: 0
virtualized radamsa_write(fd=1, buf=000000000120AB68, size=74)
requested: 74 old size: 0 new size:74
test_mem_to_mem output_size: 74
0x000000: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000020: f3 a0 81 b4 41 41 e1 a0 8e 41 41 41 41 41 41 41 ....AA...AAAAAAA
0x000030: 41 41 41 41 41 41 41 41 e2 80 8e 41 41 41 41 41 AAAAAAAA...AAAAA
0x000040: 41 41 41 41 41 41 41 41 41 00 AAAAAAAAA.
============= TEST: MEM TO FILE =============
virtualized radamsa_read(fd=3, buf=00000000091A9A80, count=3171)
requested: 3171 input_size: 64 input_index: 0 returned: 64
virtualized radamsa_read(fd=3, buf=00000000091A9C10, count=3107)
requested: 3107 input_size: 64 input_index: 64 returned: 0
radamsa_write(fd=3, buf=0000000009264878, size=24)
radamsa_write(fd=3, buf=00000000092642F0, size=18)
test_mem_to_file output_size: 42
ntest_mem_to_file output_path: radamsa_libtest.output_file
0x000000: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000020: 41 41 41 41 41 41 41 41 41 00 AAAAAAAAA.
============= TEST: FILE TO MEM =============
radamsa_read(fd=3, buf=00000000111B3080, count=256)
radamsa_read(fd=3, buf=00000000111B3200, count=214)
virtualized radamsa_write(fd=1, buf=000000001124F9D8, size=18)
requested: 18 old size: 0 new size:18
virtualized radamsa_write(fd=1, buf=000000001124F578, size=15)
requested: 15 old size: 18 new size:33
virtualized radamsa_write(fd=1, buf=000000001128BA08, size=11)
requested: 11 old size: 33 new size:44
virtualized radamsa_write(fd=1, buf=00000000112D89B8, size=12)
requested: 12 old size: 44 new size:56
virtualized radamsa_write(fd=1, buf=000000001135FF50, size=2)
requested: 2 old size: 56 new size:58
virtualized radamsa_write(fd=1, buf=000000001137CEF8, size=9)
requested: 9 old size: 58 new size:67
test_file_to_mem output_size: 67
0x000000: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000020: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA
0x000030: 41 41 41 41 41 41 41 41 41 41 41 41 ca 00 f3 a0 AAAAAAAAAAAA....
0x000040: 81 9a 41 ..A
libradamsa test results:
test_mem_to_mem: OK
test_mem_to_file: OK
test_file_to_mem: OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment