Wrote a simple FIFO queue class
[ITFoundation.git] / ITByteStream.h
diff --git a/ITByteStream.h b/ITByteStream.h
new file mode 100755 (executable)
index 0000000..265b7a6
--- /dev/null
@@ -0,0 +1,22 @@
+//
+//  ITByteStream.h
+//  ITFoundation
+//
+//  Created by Alexander Strange on Thu Feb 27 2003.
+//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+/*! @class ITByteStream
+ *  @abstract A FIFO bytestream
+ */
+
+@interface ITByteStream : NSObject {
+    NSMutableData *data;
+}
+-(id) initWithStream:(ITByteStream*)stream;
+-(int) availableDataLength;
+-(NSData*) readDataOfLength:(int)length;
+-(void) writeData:(NSData*)data;
+@end