コード例 #1
0
        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
        }
コード例 #2
0
        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
        }