From f53b25adbb0e87abd41713a586d3c723ebeb8ff0 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Tue, 22 Jul 2003 08:25:33 +0000 Subject: [PATCH] New class. Like ITByteStream, but not. Will import a new module after sleep. --- ITByteStream.h | 2 +- ITByteStream.m | 2 +- ITChunkedByteStream.h | 16 ++++++++++++++++ ITChunkedByteStream.m | 14 ++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100755 ITChunkedByteStream.h create mode 100755 ITChunkedByteStream.m diff --git a/ITByteStream.h b/ITByteStream.h index a1053f3..78ab7d9 100755 --- a/ITByteStream.h +++ b/ITByteStream.h @@ -28,7 +28,7 @@ -(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; diff --git a/ITByteStream.m b/ITByteStream.m index b5554e1..3a878f3 100755 --- a/ITByteStream.m +++ b/ITByteStream.m @@ -97,7 +97,7 @@ [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]; diff --git a/ITChunkedByteStream.h b/ITChunkedByteStream.h new file mode 100755 index 0000000..47d90a3 --- /dev/null +++ b/ITChunkedByteStream.h @@ -0,0 +1,16 @@ +// +// ITChunkedByteStream.h +// ITFoundation +// +// Created by Alexander Strange on Tue Jul 22 2003. +// Copyright (c) 2003 __MyCompanyName__. All rights reserved. +// + +#import + + +@interface ITChunkedByteStream : NSObject { + +} + +@end diff --git a/ITChunkedByteStream.m b/ITChunkedByteStream.m new file mode 100755 index 0000000..1299503 --- /dev/null +++ b/ITChunkedByteStream.m @@ -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 -- 2.20.1