mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Implement hasBytesAvailable for file input stream
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
27ad527699
commit
357314fb8e
1 changed files with 7 additions and 0 deletions
|
@ -347,6 +347,13 @@ static void setNonblocking(SOCKET fd)
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) hasBytesAvailable
|
||||
{
|
||||
if ([self _isOpened] && [self streamStatus] != NSStreamStatusAtEnd)
|
||||
return YES;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (id) initWithFileAtPath: (NSString *)path
|
||||
{
|
||||
if ((self = [super init]) != nil)
|
||||
|
|
Loading…
Reference in a new issue