aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-14 23:11:45 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-14 23:11:45 +0000
commit9d86cba840252b451c4b86d9ea16c821b6c97245 (patch)
tree2933bdc33347592633b721ff68840f177692ed96 /c++-libbu++
parent630ae7ac1b172395777a0d4920055751226402f8 (diff)
downloadlibgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.gz
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.bz2
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.xz
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.zip
Started a nice, native .net implementation in C#
Diffstat (limited to '')
-rw-r--r--c++-libbu++/src/tests/int.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++-libbu++/src/tests/int.cpp b/c++-libbu++/src/tests/int.cpp
index 25ef831..fc411f4 100644
--- a/c++-libbu++/src/tests/int.cpp
+++ b/c++-libbu++/src/tests/int.cpp
@@ -9,6 +9,7 @@
9 9
10#include <bu/sio.h> 10#include <bu/sio.h>
11#include <bu/membuf.h> 11#include <bu/membuf.h>
12#include <bu/file.h>
12#include <stdlib.h> 13#include <stdlib.h>
13 14
14using namespace Bu; 15using namespace Bu;
@@ -31,12 +32,12 @@ void hexdump( char *dat, int iSize )
31 32
32int main( int argc, char *argv[] ) 33int main( int argc, char *argv[] )
33{ 34{
35 Bu::File mb("test.gats", Bu::File::WriteNew );
34 for( int j = 1; j < argc; j++ ) 36 for( int j = 1; j < argc; j++ )
35 { 37 {
36 int64_t i = strtoll( argv[j], NULL, 10 ); 38 int64_t i = strtoll( argv[j], NULL, 10 );
37 MemBuf mb;
38 Gats::Integer::writePackedInt( mb, i ); 39 Gats::Integer::writePackedInt( mb, i );
39 hexdump( mb.getString().getStr(), mb.getString().getSize() ); 40// hexdump( mb.getString().getStr(), mb.getString().getSize() );
40 } 41 }
41/* 42/*
42 sio << "Before: " << i << sio.nl; 43 sio << "Before: " << i << sio.nl;