public override long Seek(long pos, global::System.IO.SeekOrigin o) { switch (o) { case global::System.IO.SeekOrigin.Begin: this.m_Stream.Position = pos + this.m_DataPos; break; case global::System.IO.SeekOrigin.Current: this.m_Stream.Seek(pos, global::System.IO.SeekOrigin.Current); break; case global::System.IO.SeekOrigin.End: this.m_Stream.Position = this.m_DataPos + this.m_Length - pos; break; } return(this.Position); }
public virtual void seek(int p, global::sys.io.FileSeek pos) { unchecked { #line 77 "/opt/haxe/std/cs/io/NativeInput.hx" this._eof = false; global::System.IO.SeekOrigin pos1 = default(global::System.IO.SeekOrigin); switch (pos._hx_index) { case 0: { #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" pos1 = global::System.IO.SeekOrigin.Begin; #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" break; } case 1: { #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" pos1 = global::System.IO.SeekOrigin.Current; #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" break; } case 2: { #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" pos1 = global::System.IO.SeekOrigin.End; #line 78 "/opt/haxe/std/cs/io/NativeInput.hx" break; } } #line 84 "/opt/haxe/std/cs/io/NativeInput.hx" this.stream.Seek(((long)(p)), ((global::System.IO.SeekOrigin)(pos1))); } #line default }
public virtual void seek(int p, global::sys.io.FileSeek pos) { unchecked { #line 73 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" this._eof = false; global::System.IO.SeekOrigin pos1 = default(global::System.IO.SeekOrigin); switch (pos._hx_index) { case 0: { #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" pos1 = global::System.IO.SeekOrigin.Begin; #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" break; } case 1: { #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" pos1 = global::System.IO.SeekOrigin.Current; #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" break; } case 2: { #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" pos1 = global::System.IO.SeekOrigin.End; #line 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" break; } } #line 80 "C:\\HaxeToolkit\\haxe\\std\\cs\\io\\NativeInput.hx" this.stream.Seek(((long)(p)), ((global::System.IO.SeekOrigin)(pos1))); } #line default }
public override long Seek(long offset, global::System.IO.SeekOrigin origin) { throw new NotImplementedException(); }
public override long Seek(long offset, global::System.IO.SeekOrigin origin) { return(stream.Seek(offset, origin)); }
public override long Seek(long pos, global::System.IO.SeekOrigin o) { throw new global::System.InvalidOperationException(); }