- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for nbytes (0.1 sec)
-
src/runtime/mheap.go
_ sys.NotInHeap x uint8 } // bytep returns a pointer to the n'th byte of b. func (b *gcBits) bytep(n uintptr) *uint8 { return addb(&b.x, n) } // bitp returns a pointer to the byte containing bit n and a mask for // selecting that bit from *bytep. func (b *gcBits) bitp(n uintptr) (bytep *uint8, mask uint8) { return b.bytep(n / 8), 1 << (n % 8) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
// the runtime's accounting will be wrong. nbytes := int64(npages * pageSize) gcController.heapReleased.add(nbytes) gcController.heapFree.add(-nbytes) stats := memstats.heapStats.acquire() atomic.Xaddint64(&stats.committed, -nbytes) atomic.Xaddint64(&stats.released, nbytes) memstats.heapStats.release() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/bufio/bufio_test.go
if n := len(eofR.buf); n != 0 { t.Fatalf("got %d bytes left in bufio.Reader source; want 0 bytes", n) } // To prove the point, check that there are still 5 bytes available to read. if n := r.Buffered(); n != 5 { t.Fatalf("got %d bytes buffered in bufio.Reader; want 5 bytes", n) } // This is the second read of 0 bytes. read, err = r.Read([]byte{}) if err != nil { t.Fatalf("unexpected error: %v", err)
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/time/format.go
} func commaOrPeriod(b byte) bool { return b == '.' || b == ',' } func parseNanoseconds[bytes []byte | string](value bytes, nbytes int) (ns int, rangeErrString string, err error) { if !commaOrPeriod(value[0]) { err = errBad return } if nbytes > 10 { value = value[:10] nbytes = 10 } if ns, err = atoi(value[1:nbytes]); err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
src/math/big/int_test.go
} func checkLehmerGcd(aBytes, bBytes []byte) bool { a := new(Int).SetBytes(aBytes) b := new(Int).SetBytes(bBytes) if a.Sign() <= 0 || b.Sign() <= 0 { return true // can only test positive arguments } d := new(Int).lehmerGCD(nil, nil, a, b) d0, _, _ := euclidExtGCD(a, b) return d.Cmp(d0) == 0 } func checkLehmerExtGcd(aBytes, bBytes []byte) bool { a := new(Int).SetBytes(aBytes)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/cmd/cgo/out.go
// //line :1 // on_test *[0]byte // //line :1 // } // // Which is not useful. Moreover we never override source info, // so subsequent source code uses the same source info. // Moreover, empty file name makes compile emit no source debug info at all. var buf bytes.Buffer noSourceConf.Fprint(&buf, fset, def.Go) if bytes.HasPrefix(buf.Bytes(), []byte("_Ctype_")) ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)