aboutsummaryrefslogtreecommitdiff
path: root/src/tests/nids.cpp
blob: 18f66a6b8dcb3a738f9af6720c26425fc98e8e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "bu/file.h"
#include "bu/nids.h"
#include "bu/nidsstream.h"

int main( int argc, char *argv[] )
{
	if( argc < 2 )
	{
		printf("usage: %s <output>\n\n", argv[0] );
		return 1;
	}

	Bu::File fOut( argv[1], "wb");
	Bu::Nids n( fOut );

	n.initialize( 1024, 5 );

	Bu::NidsStream s = n.openStream( n.createStream() );

	Bu::FString sBuf("Hey there, man...uh...how's it going?");
	s.write( sBuf );

	return 0;
}