-(NSData*) readDataOfLength:(int)length;
-(NSData*) readAllData;
-(void) writeData:(in NSData*)data;
--(void) writeBytes:(char *)b len:(long)length;
+-(void) writeBytes:(in char *)b len:(long)length;
-(void) lockStream;
-(void) unlockStream;
-(void) shortenData:(long)length;
[delegate newDataAdded:self];
}
--(void) writeBytes:(char *)b len:(long)length
+-(void) writeBytes:(in char *)b len:(long)length
{
[lock lock];
[data appendBytes:b length:length];
--- /dev/null
+//
+// ITChunkedByteStream.h
+// ITFoundation
+//
+// Created by Alexander Strange on Tue Jul 22 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+
+@interface ITChunkedByteStream : NSObject {
+
+}
+
+@end
--- /dev/null
+//
+// ITChunkedByteStream.m
+// ITFoundation
+//
+// Created by Alexander Strange on Tue Jul 22 2003.
+// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
+//
+
+#import "ITChunkedByteStream.h"
+
+
+@implementation ITChunkedByteStream
+
+@end