diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
commit | 597a1487c716b799428f4b4a4903e65df4c93ba9 (patch) | |
tree | c743b0d4dfc3bacbffc196589543ec4e9abf1aaf /src/tests/nids.cpp | |
parent | 3c6cb7f2347aed974543f9082a0ccd297577db41 (diff) | |
download | libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.gz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.bz2 libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.xz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.zip |
Whoa! Loads of NIDS work. It actually compiles, runs, and I'm optimizing the
hell out of it. Good times, everyone. This is a major chunk for congo, and
the new optimizations should be good.
Diffstat (limited to 'src/tests/nids.cpp')
-rw-r--r-- | src/tests/nids.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/nids.cpp b/src/tests/nids.cpp new file mode 100644 index 0000000..1197ac1 --- /dev/null +++ b/src/tests/nids.cpp | |||
@@ -0,0 +1,19 @@ | |||
1 | #include "bu/file.h" | ||
2 | #include "bu/nids.h" | ||
3 | |||
4 | int main( int argc, char *argv[] ) | ||
5 | { | ||
6 | if( argc < 2 ) | ||
7 | { | ||
8 | printf("usage: %s <output>\n\n", argv[0] ); | ||
9 | return 1; | ||
10 | } | ||
11 | |||
12 | Bu::File fOut( argv[1], "wb"); | ||
13 | Bu::Nids n( fOut ); | ||
14 | |||
15 | n.initialize( 1024, 5 ); | ||
16 | |||
17 | Bu::NidsStream s = n.openStream( n.createStream() ); | ||
18 | } | ||
19 | |||