- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 5,260 for chunck (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go
later := time.Now() bval := &later if wr.Set(bval) { t.Error("second Set() returned true") } goGetAndExpect(t, wr, gots, aval) cancel() time.Sleep(time.Second) // give it a chance to misbehave goGetAndExpect(t, wr, gots, aval) } func TestWriteOnceCancel(t *testing.T) { oldTime := time.Now() cval := &oldTime ctx, cancel := context.WithCancel(context.Background())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 21 19:19:31 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java
for (byte[] buf : listOfByteArrays) { addChunk(new StreamByteBufferChunk(buf)); } } private void addChunk(StreamByteBufferChunk chunk) { chunks.add(chunk); totalBytesUnreadInList += chunk.bytesUnread(); } static class StreamByteBufferChunk { private int pointer; private byte[] buffer; private int size;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:51:14 UTC 2024 - 16.6K bytes - Viewed (0) -
pilot/pkg/config/file/store.go
scope.Debugf("Failed to parse yamlText chunk: %v", yamlText) errs = multierror.Append(errs, e) break } chunk := bytes.TrimSpace(doc) if len(chunk) == 0 { continue } chunkResources, err := s.parseChunk(r, name, lineNum, chunk) if err != nil { var uerr *unknownSchemaError if errors.As(err, &uerr) { scope.Debugf("skipping unknown yaml chunk %s: %s", name, uerr.Error()) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 18.2K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
// Set GOMAXPROCS to 1 to minimize the amount of memory held in the page cache, // and to reduce the chance that the background scavenger gets scheduled. defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1)) // Allocate allocTotal bytes of memory in allocChunk byte chunks. // Alternate between whether the chunk will be held live or will be // condemned to GC to create holes in the heap. saved := make([][]byte, allocs/2+1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
src/internal/bytealg/count_s390x.s
VREPIB $1, V_MASK // V_MASK = [16]byte{1, 1, ..., 1, 1} VZERO V_CNT // initial uint128 count of 0 vxloop: // Load input bytes in 16-byte chunks. VL (R_PTR), V_VAL // Compare each byte in input chunk against byte to be counted. // Each byte element will be set to either 0 (no match) or 1 (match). VCEQB V_CHAR, V_VAL, V_VAL // each byte will be either 0xff or 0x00
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 15 21:04:43 UTC 2019 - 5.4K bytes - Viewed (0) -
src/runtime/export_test.go
testSysStat.add(-int64(p.summaryMappedReady)) // Free the mapped space for chunks. for i := range p.chunks { if x := p.chunks[i]; x != nil { p.chunks[i] = nil // This memory comes from sysAlloc and will always be page-aligned. sysFree(unsafe.Pointer(x), unsafe.Sizeof(*p.chunks[0]), testSysStat) } } } // BaseChunkIdx is a convenient chunkIdx value which works on both
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/internal/poll/error_test.go
"time" ) func TestReadError(t *testing.T) { t.Run("ErrNotPollable", func(t *testing.T) { f, err := badStateFile() if err != nil { t.Skip(err) } defer f.Close() // Give scheduler a chance to have two separated // goroutines: an event poller and an event waiter. time.Sleep(100 * time.Millisecond) var b [1]byte _, err = f.Read(b[:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 02:32:42 UTC 2020 - 1K bytes - Viewed (0) -
hack/verify-flags-underscore.py
try: with open(pathname, 'r') as f: CHUNKSIZE = 1024 while True: chunk = f.read(CHUNKSIZE) if '\0' in chunk: # found null byte return True if len(chunk) < CHUNKSIZE: break # done except: return True return False def get_all_files(rootdir):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:51 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
// If s is labeled, label is the label name; otherwise s // is "". func (check *Checker) isTerminating(s syntax.Stmt, label string) bool { switch s := s.(type) { default: panic("unreachable") case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.SendStmt, *syntax.AssignStmt, *syntax.CallStmt: // no chance case *syntax.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Value) case *syntax.ExprStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/go/types/return.go
// is "". func (check *Checker) isTerminating(s ast.Stmt, label string) bool { switch s := s.(type) { default: panic("unreachable") case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt, *ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt, *ast.RangeStmt: // no chance case *ast.LabeledStmt: return check.isTerminating(s.Stmt, s.Label.Name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0)