New class. Like ITByteStream, but not. Will import a new module after sleep.
[ITFoundation.git] / ITByteStream.h
index 52f4856..78ab7d9 100755 (executable)
@@ -10,7 +10,7 @@
 
 @class ITByteStream;
 
-@protocol ITByteStreamDelegate
+@protocol ITByteStreamDelegate <NSObject>
 -(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