mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
9e9f9ec27f
commit
c04361b3d6
1 changed files with 7 additions and 0 deletions
|
@ -347,6 +347,13 @@ static void setNonblocking(SOCKET fd)
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) hasBytesAvailable
|
||||||
|
{
|
||||||
|
if ([self _isOpened] && [self streamStatus] != NSStreamStatusAtEnd)
|
||||||
|
return YES;
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
- (id) initWithFileAtPath: (NSString *)path
|
- (id) initWithFileAtPath: (NSString *)path
|
||||||
{
|
{
|
||||||
if ((self = [super init]) != nil)
|
if ((self = [super init]) != nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue