From: Alexander Strange Date: Tue, 22 Jul 2003 08:25:33 +0000 (+0000) Subject: New class. Like ITByteStream, but not. Will import a new module after sleep. X-Git-Tag: v0.1~23 X-Git-Url: http://git.ithinksw.org/ITFoundation.git/commitdiff_plain/f53b25adbb0e87abd41713a586d3c723ebeb8ff0 New class. Like ITByteStream, but not. Will import a new module after sleep. --- 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