894
895
896
897
898
899
900
901
902
903
904
905
906
907
|
{
off_t ret = lseek(_fd, offset, whence);
if (ret == -1)
@throw [OFSeekFailedException exceptionWithStream: self
offset: offset
whence: whence];
return ret;
}
- (int)fileDescriptorForReading
{
return _fd;
|
>
>
|
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
|
{
off_t ret = lseek(_fd, offset, whence);
if (ret == -1)
@throw [OFSeekFailedException exceptionWithStream: self
offset: offset
whence: whence];
_atEndOfStream = false;
return ret;
}
- (int)fileDescriptorForReading
{
return _fd;
|