X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/f53b25adbb0e87abd41713a586d3c723ebeb8ff0..68089b190f6a03c185722c8532197dacabf52f8d:/ITChunkedByteStream.h diff --git a/ITChunkedByteStream.h b/ITChunkedByteStream.h index 47d90a3..a8f758c 100755 --- a/ITChunkedByteStream.h +++ b/ITChunkedByteStream.h @@ -7,10 +7,19 @@ // #import +#import "ITByteStream.h" +#import "ArrayQueue.h" - -@interface ITChunkedByteStream : NSObject { - +@interface ITChunkedByteStream : NSObject { + @public + ArrayQueue *q; + @private + NSLock *lock; + id delegate; } - +-(BOOL)empty; +-(NSData*) readData; +-(oneway void) writeData:(in NSData*)data; +-(oneway void) writeBytesNoCopy:(in char *)b len:(unsigned long)length; +-(oneway void) writeBytes:(in char *)b len:(unsigned long)length; @end