- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for week (0.81 sec)
-
src/bufio/bufio_test.go
} if _, err := buf.Peek(1); err != io.EOF { t.Fatalf("want EOF got %v", err) } // Test for issue 3022, not exposing a reader's error on a successful Peek. buf = NewReaderSize(dataAndEOFReader("abcd"), 32) if s, err := buf.Peek(2); string(s) != "ab" || err != nil { t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err) } if s, err := buf.Peek(4); string(s) != "abcd" || err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan3.go
// license that can be found in the LICENSE file. package main /* extern int *GoFn(int *); // Yes, you can have definitions if you use //export, as long as they are weak. int f(void) __attribute__ ((weak)); int f() { int i; int *p = GoFn(&i); if (*p != 12345) return 0; return 1; } */ import "C" //export GoFn func GoFn(p *C.int) *C.int { *p = C.int(12345)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 552 bytes - Viewed (0) -
src/archive/tar/writer.go
default: return n, nil } } func (sw *sparseFileWriter) ReadFrom(r io.Reader) (n int64, err error) { rs, ok := r.(io.ReadSeeker) if ok { if _, err := rs.Seek(0, io.SeekCurrent); err != nil { ok = false // Not all io.Seeker can really seek } } if !ok { return io.Copy(struct{ io.Writer }{sw}, r) } var readLastByte bool pos0 := sw.pos
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/stmtlines_test.go
if err != nil { t.Fatalf("go build: %v\n%s", err, out) } lines := map[Line]bool{} dw, err := open(dir + "/test.exe") must(err) rdr := dw.Reader() rdr.Seek(0) for { e, err := rdr.Next() must(err) if e == nil { break } if e.Tag != dwarf.TagCompileUnit { continue } pkgname, _ := e.Val(dwarf.AttrName).(string)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 3.5K bytes - Viewed (0) -
src/bufio/bufio.go
err := b.err b.err = nil return err } // Peek returns the next n bytes without advancing the reader. The bytes stop // being valid at the next read call. If Peek returns fewer than n bytes, it // also returns an error explaining why the read is short. The error is // [ErrBufferFull] if n is larger than b's buffer size. // // Calling Peek prevents a [Reader.UnreadByte] or [Reader.UnreadRune] call from succeeding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/cmd/go/internal/cache/cache.go
// exist on disk for until Close is called (at the end of the process). Get(ActionID) (Entry, error) // Put adds an item to the cache. // // The seeker is only used to seek to the beginning. After a call to Put, // the seek position is not guaranteed to be in any particular state. // // As a special case, if the ReadSeeker is of type noVerifyReadSeeker, // the verification from GODEBUG=goverifycache=1 is skipped. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/go/internal/clean/clean.go
now := time.Now().UnixNano() buf, _ := io.ReadAll(f) prev, _ := strconv.ParseInt(strings.TrimSpace(string(buf)), 10, 64) if now > prev { if err = f.Truncate(0); err == nil { if _, err = f.Seek(0, 0); err == nil { _, err = fmt.Fprintf(f, "%d\n", now) } } } if closeErr := f.Close(); err == nil { err = closeErr } } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/pgen.go
} pp.Flush() // assemble, fill in boilerplate, etc. // If we're compiling the package init function, search for any // relocations that target global map init outline functions and // turn them into weak relocs. if fn.IsPackageInit() && base.Debug.WrapGlobalMapCtl != 1 { weakenGlobalMapInitRelocs(fn) } // fieldtrack must be called after pp.Flush. See issue 20014. fieldtrack(pp.Text.From.Sym, fn.FieldTrack)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 13.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/likelyadjust.go
b0 := b.Succs[0].b.ID b1 := b.Succs[1].b.ID certain[b.ID] = min8(certain[b0], certain[b1]) l := b2l[b.ID] l0 := b2l[b0] l1 := b2l[b1] prediction := b.Likely // Weak loop heuristic -- both source and at least one dest are in loops, // and there is a difference in the destinations. // TODO what is best arrangement for nested loops? if l != nil && l0 != l1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 15.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
doIssueError := true isStatic, abi := p.symRefAttrs(name, doIssueError) if p.peek() == '+' || p.peek() == '-' { a.Offset = int64(p.expr()) } if isStatic { a.Sym = p.ctxt.LookupStatic(name) } else { a.Sym = p.ctxt.LookupABI(name, abi) } if p.peek() == scanner.EOF { if prefix == 0 && p.isJump { // Symbols without prefix or suffix are jump labels. return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 14:34:57 UTC 2024 - 36.9K bytes - Viewed (0)