git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moving ITFoundation to an Xcode project. This isn't a converted project,
[ITFoundation.git]
/
ITByteStream.h
diff --git
a/ITByteStream.h
b/ITByteStream.h
index
78ab7d9
..
c008aac
100755
(executable)
--- a/
ITByteStream.h
+++ b/
ITByteStream.h
@@
-9,21
+9,17
@@
#import <Foundation/Foundation.h>
@class ITByteStream;
#import <Foundation/Foundation.h>
@class ITByteStream;
-
-@protocol ITByteStreamDelegate <NSObject>
--(oneway void)newDataAdded:(ITByteStream *)sender;
+@protocol DataReciever <NSObject>
+-(oneway void)newDataAdded:(id)sender;
@end
@end
-
@interface ITByteStream : NSObject {
@public
NSMutableData *data;
@private
NSLock *lock;
@interface ITByteStream : NSObject {
@public
NSMutableData *data;
@private
NSLock *lock;
- id <
ITByteStreamDelegate
> delegate;
+ id <
DataReciever
> delegate;
}
}
--(id) initWithStream:(ITByteStream*)stream delegate:(id <ITByteStreamDelegate>)d;
--(id) initWithDelegate:(id <ITByteStreamDelegate>)d;
--(void) setDelegate:(id <ITByteStreamDelegate>)d;
+-(id) initWithStream:(ITByteStream*)stream delegate:(id <DataReciever>)d;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
-(NSData*) readAllData;
-(int) availableDataLength;
-(NSData*) readDataOfLength:(int)length;
-(NSData*) readAllData;
@@
-32,4
+28,7
@@
-(void) lockStream;
-(void) unlockStream;
-(void) shortenData:(long)length;
-(void) lockStream;
-(void) unlockStream;
-(void) shortenData:(long)length;
+-initWithDelegate:(id)delegate;
+-setDelegate:(id)delegate;
+-delegate;
@end
@end