|
@@ -63,8 +63,12 @@ class FileInput extends Input {
|
|
file_close(__f);
|
|
file_close(__f);
|
|
}
|
|
}
|
|
|
|
|
|
- public function seek( p : Int, pos : FileSeek ) : Int {
|
|
|
|
- return file_seek(__f,p,switch( pos ) { case SeekBegin: 0; case SeekCur: 1; case SeekEnd: 2; });
|
|
|
|
|
|
+ public override function skip( nbytes ) {
|
|
|
|
+ try seek(nbytes,SeekCur) catch( e : Dynamic ) throw Error.Eof;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function seek( p : Int, pos : FileSeek ) {
|
|
|
|
+ file_seek(__f,p,switch( pos ) { case SeekBegin: 0; case SeekCur: 1; case SeekEnd: 2; });
|
|
}
|
|
}
|
|
|
|
|
|
public function tell() : Int {
|
|
public function tell() : Int {
|