X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/b64cdf3e84e76273251024a99bbe275ed1eeae4b..f53b25adbb0e87abd41713a586d3c723ebeb8ff0:/ITByteStream.h diff --git a/ITByteStream.h b/ITByteStream.h index 52f4856..78ab7d9 100755 --- a/ITByteStream.h +++ b/ITByteStream.h @@ -10,7 +10,7 @@ @class ITByteStream; -@protocol ITByteStreamDelegate +@protocol ITByteStreamDelegate -(oneway void)newDataAdded:(ITByteStream *)sender; @end @@ -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