X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/14a301f7aa7b244c4831006cfc4cfa42185517a4..f53b25adbb0e87abd41713a586d3c723ebeb8ff0:/ITByteStream.h diff --git a/ITByteStream.h b/ITByteStream.h index 52297c5..78ab7d9 100755 --- a/ITByteStream.h +++ b/ITByteStream.h @@ -10,8 +10,8 @@ @class ITByteStream; -@protocol ITByteStreamDelegate --(void)newDataAdded:(ITByteStream *)sender; +@protocol ITByteStreamDelegate +-(oneway void)newDataAdded:(ITByteStream *)sender; @end @interface ITByteStream : NSObject { @@ -28,5 +28,8 @@ -(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; @end