diff options
author | Patrick Simianer <p@simianer.de> | 2014-09-16 10:23:14 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-09-16 10:23:14 +0100 |
commit | 129a22cfcc7651daa4b11ed52e7870249f6373a5 (patch) | |
tree | 78de4649396ab0d37a325b7598f9873c2d65f4c9 /util/read_pak.cc | |
parent | df70006a07fb67b17fb39aa56762c50c2e7b8131 (diff) |
spring cleaning
Diffstat (limited to 'util/read_pak.cc')
-rw-r--r-- | util/read_pak.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/util/read_pak.cc b/util/read_pak.cc deleted file mode 100644 index afd6e6a..0000000 --- a/util/read_pak.cc +++ /dev/null @@ -1,27 +0,0 @@ -#include <iostream> -#include <fstream> -#include <msgpack.hpp> - -using namespace std; - - -int -main(int argc, char** argv) -{ - ifstream ifs(argv[1]); - msgpack::unpacker pac; - while(true) { - pac.reserve_buffer(32*1024); - size_t bytes = ifs.readsome(pac.buffer(), pac.buffer_capacity()); - pac.buffer_consumed(bytes); - msgpack::unpacked result; - while(pac.next(&result)) { - msgpack::object o = result.get(); - cout << o << endl; - } - if (!bytes) break; - } - - return 0; -} - |