git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ITSendAEWithString returns the AEDesc at index 1 of the resulting AEDesc, which is...
[ITFoundation.git]
/
ITByteStream.h
diff --git
a/ITByteStream.h
b/ITByteStream.h
index
10d9f0f
..
c008aac
100755
(executable)
--- a/
ITByteStream.h
+++ b/
ITByteStream.h
@@
-8,17
+8,27
@@
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
-/*! @class ITByteStream
- * @abstract A FIFO bytestream
- */
-
+@class ITByteStream;
+@protocol DataReciever <NSObject>
+-(oneway void)newDataAdded:(id)sender;
+@end
@interface ITByteStream : NSObject {
@interface ITByteStream : NSObject {
+ @public
NSMutableData *data;
@private
NSLock *lock;
NSMutableData *data;
@private
NSLock *lock;
+ id <DataReciever> delegate;
}
}
--(id) initWithStream:(ITByteStream*)stream;
+-(id) initWithStream:(ITByteStream*)stream
delegate:(id <DataReciever>)d
;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
+-(NSData*) readAllData;
-(void) writeData:(in NSData*)data;
-(void) writeData:(in NSData*)data;
+-(void) writeBytes:(in char *)b len:(long)length;
+-(void) lockStream;
+-(void) unlockStream;
+-(void) shortenData:(long)length;
+-initWithDelegate:(id)delegate;
+-setDelegate:(id)delegate;
+-delegate;
@end
@end