- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for Position (0.22 sec)
-
src/bytes/reader.go
abs = r.i + offset case io.SeekEnd: abs = int64(len(r.s)) + offset default: return 0, errors.New("bytes.Reader.Seek: invalid whence") } if abs < 0 { return 0, errors.New("bytes.Reader.Seek: negative position") } r.i = abs return abs, nil } // WriteTo implements the [io.WriterTo] interface. func (r *Reader) WriteTo(w io.Writer) (n int64, err error) { r.prevRune = -1 if r.i >= int64(len(r.s)) {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 3.9K bytes - Viewed (0) -
src/bytes/reader_test.go
{seek: io.SeekStart, off: 1, n: 1, want: "1"}, {seek: io.SeekCurrent, off: 1, wantpos: 3, n: 2, want: "34"}, {seek: io.SeekStart, off: -1, seekerr: "bytes.Reader.Seek: negative position"}, {seek: io.SeekStart, off: 1 << 33, wantpos: 1 << 33, readerr: io.EOF}, {seek: io.SeekCurrent, off: 1, wantpos: 1<<33 + 1, readerr: io.EOF}, {seek: io.SeekStart, n: 5, want: "01234"},
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
// #define A (x) // distinctly: the first is a macro with arguments, the second without. // Distinguish these cases using the column number, since we don't // see the space itself. Note that text/scanner reports the position at the // end of the token. It's where you are now, and you just read this token. if tok == '(' && in.Stack.Col() == prevCol+1 { // Macro has arguments. Scan list of formals. acceptArg := true
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 12.6K bytes - Viewed (0) -
src/archive/tar/writer.go
type sparseFileWriter struct { fw fileWriter // Underlying fileWriter sp sparseDatas // Normalized list of data fragments pos int64 // Current position in sparse file } func (sw *sparseFileWriter) Write(b []byte) (n int, err error) { overwrite := int64(len(b)) > sw.logicalRemaining() if overwrite { b = b[:sw.logicalRemaining()] } b0 := b
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 19.6K bytes - Viewed (0) -
misc/wasm/wasm_exec.js
if (nl != -1) { console.log(outputBuf.substring(0, nl)); outputBuf = outputBuf.substring(nl + 1); } return buf.length; }, write(fd, buf, offset, length, position, callback) { if (offset !== 0 || length !== buf.length || position !== null) { callback(enosys()); return; } const n = this.writeSync(fd, buf); callback(null, n); }, chmod(path, mode, callback) { callback(enosys()); },
JavaScript - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon May 22 17:47:47 GMT 2023 - 16.3K bytes - Viewed (1) -
src/cmd/cgo/godefs.go
// a semicolon. We only have to worry about cases that can occur in an // expression passed through gofmt, which means composite literals and // (due to the printer possibly inserting newlines because of position // information) operators. var gofmtLineReplacer = strings.NewReplacer( // Want to replace \n without ; after everything from // https://golang.org/ref/spec#Operators_and_punctuation // EXCEPT ++ -- ) ] }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Sep 08 14:33:35 GMT 2022 - 4.5K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/riscv64error.s
SD X5, 4294967296(X6) // ERROR "constant 4294967296 too large" SRLI $1, X5, F1 // ERROR "expected integer register in rd position but got non-integer register F1" SRLI $1, F1, X5 // ERROR "expected integer register in rs1 position but got non-integer register F1" FNES F1, (X5) // ERROR "needs an integer register output"
Others - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Sun Apr 07 03:32:27 GMT 2024 - 2.8K bytes - Viewed (0) -
src/cmd/asm/internal/lex/tokenizer.go
// Don't skip comments: we need to count newlines. s.Mode = scanner.ScanChars | scanner.ScanFloats | scanner.ScanIdents | scanner.ScanInts | scanner.ScanStrings | scanner.ScanComments s.Position.Filename = name s.IsIdentRune = isIdentRune return &Tokenizer{ s: &s, base: src.NewFileBase(name, objabi.AbsFile(objabi.WorkingDir(), name, *flags.TrimPath)), line: 1, file: file, } }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Aug 04 20:35:21 GMT 2022 - 3K bytes - Viewed (0) -
api/go1.1.txt
pkg text/template/parse, method (FieldNode) Position() Pos pkg text/template/parse, method (IdentifierNode) Position() Pos pkg text/template/parse, method (IfNode) Position() Pos pkg text/template/parse, method (ListNode) Position() Pos pkg text/template/parse, method (NilNode) Position() Pos pkg text/template/parse, method (NumberNode) Position() Pos pkg text/template/parse, method (PipeNode) Position() Pos
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Mar 31 20:37:15 GMT 2022 - 2.6M bytes - Viewed (0) -
api/go1.18.txt
pkg text/template/parse, method (*ContinueNode) Copy() Node pkg text/template/parse, method (*ContinueNode) String() string pkg text/template/parse, method (BreakNode) Position() Pos pkg text/template/parse, method (BreakNode) Type() NodeType pkg text/template/parse, method (ContinueNode) Position() Pos pkg text/template/parse, method (ContinueNode) Type() NodeType pkg text/template/parse, type BreakNode struct
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 13K bytes - Viewed (0)