diff options
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/nids.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/nids.cpp b/src/tests/nids.cpp index bb5993b..41d0432 100644 --- a/src/tests/nids.cpp +++ b/src/tests/nids.cpp | |||
@@ -23,18 +23,19 @@ int main( int argc, char *argv[] ) | |||
23 | Bu::File::ReadWrite|Bu::File::Create|Bu::File::Truncate ); | 23 | Bu::File::ReadWrite|Bu::File::Create|Bu::File::Truncate ); |
24 | Bu::Nids n( fOut ); | 24 | Bu::Nids n( fOut ); |
25 | 25 | ||
26 | n.initialize( 120, 1 ); | 26 | n.initialize( 32, 1 ); |
27 | Bu::NidsStream s = n.openStream( n.createStream() ); | 27 | /* Bu::NidsStream s = n.openStream( n.createStream() ); |
28 | 28 | ||
29 | Bu::FString sBuf( 350 ); | 29 | Bu::FString sBuf( 350 ); |
30 | memset( sBuf.getStr(), 'a', 350 ); | 30 | memset( sBuf.getStr(), 'a', 350 ); |
31 | s.write( sBuf ); | 31 | s.write( sBuf );*/ |
32 | } | 32 | } |
33 | else if( argv[1][0] == 'r' ) | 33 | else if( argv[1][0] == 'r' ) |
34 | { | 34 | { |
35 | Bu::File fOut( argv[2], Bu::File::Read ); | 35 | Bu::File fOut( argv[2], Bu::File::Read ); |
36 | Bu::Nids n( fOut ); | 36 | Bu::Nids n( fOut ); |
37 | 37 | n.initialize(); | |
38 | /* | ||
38 | Bu::NidsStream s = n.openStream( 0 ); | 39 | Bu::NidsStream s = n.openStream( 0 ); |
39 | char buf[75]; | 40 | char buf[75]; |
40 | for( int j = 0; j < 3; j++ ) | 41 | for( int j = 0; j < 3; j++ ) |
@@ -44,6 +45,7 @@ int main( int argc, char *argv[] ) | |||
44 | printf("\n(read %d chars)\n", iRead ); | 45 | printf("\n(read %d chars)\n", iRead ); |
45 | } | 46 | } |
46 | printf("Position: %ld\n", s.tell() ); | 47 | printf("Position: %ld\n", s.tell() ); |
48 | */ | ||
47 | } | 49 | } |
48 | else | 50 | else |
49 | { | 51 | { |