X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/4883c610168ebeb51a54ae8cce12d24638034b08..d0e2a23f6909335baea90af08491a5160026757b:/ITByteStream.m diff --git a/ITByteStream.m b/ITByteStream.m index eff6eb7..4d34eb0 100755 --- a/ITByteStream.m +++ b/ITByteStream.m @@ -64,6 +64,16 @@ return ret; } +-(NSData*) readAllData +{ + NSData *ret; + [lock lock]; + ret = [data autorelease]; + data = [[NSMutableData alloc] init]; + [lock unlock]; + return ret; +} + -(void) writeData:(NSData*)_data { [lock lock];