New class. Like ITByteStream, but not. Will import a new module after sleep.
authorAlexander Strange <astrange@ithinksw.com>
Tue, 22 Jul 2003 08:25:33 +0000 (08:25 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Tue, 22 Jul 2003 08:25:33 +0000 (08:25 +0000)
ITByteStream.h
ITByteStream.m
ITChunkedByteStream.h [new file with mode: 0755]
ITChunkedByteStream.m [new file with mode: 0755]

index a1053f3..78ab7d9 100755 (executable)
@@ -28,7 +28,7 @@
 -(NSData*) readDataOfLength:(int)length;
 -(NSData*) readAllData;
 -(void) writeData:(in NSData*)data;
 -(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;
 -(void) lockStream;
 -(void) unlockStream;
 -(void) shortenData:(long)length;
index b5554e1..3a878f3 100755 (executable)
@@ -97,7 +97,7 @@
     [delegate newDataAdded:self];
 }
 
     [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];
 {
     [lock lock];
     [data appendBytes:b length:length];
diff --git a/ITChunkedByteStream.h b/ITChunkedByteStream.h
new file mode 100755 (executable)
index 0000000..47d90a3
--- /dev/null
@@ -0,0 +1,16 @@
+//
+//  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
diff --git a/ITChunkedByteStream.m b/ITChunkedByteStream.m
new file mode 100755 (executable)
index 0000000..1299503
--- /dev/null
@@ -0,0 +1,14 @@
+//
+//  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