- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 70 for newBuf (0.29 sec)
-
cmd/erasure-decode.go
newBuf := dst if len(dst) != len(p.readers) { newBuf = make([][]byte, len(p.readers)) } else { for i := range newBuf { newBuf[i] = newBuf[i][:0] } } var newBufLK sync.RWMutex if p.offset+p.shardSize > p.shardFileSize { p.shardSize = p.shardFileSize - p.offset } if p.shardSize == 0 { return newBuf, nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 21 14:36:21 UTC 2024 - 9.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9K bytes - Viewed (0) -
src/encoding/json/stream.go
dec.buf = dec.buf[:n] dec.scanp = 0 } // Grow buffer if not large enough. const minRead = 512 if cap(dec.buf)-len(dec.buf) < minRead { newBuf := make([]byte, len(dec.buf), 2*cap(dec.buf)+minRead) copy(newBuf, dec.buf) dec.buf = newBuf } // Read. Delay error for next iteration (after scan). n, err := dec.r.Read(dec.buf[len(dec.buf):cap(dec.buf)]) dec.buf = dec.buf[0 : len(dec.buf)+n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 12.9K bytes - Viewed (0) -
src/internal/trace/order.go
return } // Create new buf and copy data over. newBuf := make([]T, len(q.buf)*2) pivot := q.start % len(q.buf) first, last := q.buf[pivot:], q.buf[:pivot] copy(newBuf[:len(first)], first) copy(newBuf[len(first):], last) // Update the queue state. q.start = 0 q.end = len(q.buf) q.buf = newBuf } // pop removes an event from the front of the queue. If the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 52.4K bytes - Viewed (0) -
cmd/xl-storage.go
// Convert to slice. dirs = dirs[:0] for dir := range foundDirs { dirs = append(dirs, dir) } if xl.data.remove(dirs...) { newBuf, err := xl.AppendTo(metaDataPoolGet()) if err == nil { defer metaDataPoolPut(newBuf) return s.WriteAll(ctx, volume, pathJoin(path, xlStorageFormatFile), buf) } } return nil } func convertAccessError(err, permErr error) error {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 85.3K bytes - Viewed (0) -
src/internal/coverage/slicereader/slicereader.go
} r.off = offset return offset, nil case io.SeekCurrent: newoff := r.off + offset if newoff < 0 || newoff > int64(len(r.b)) { return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(r.b)) } r.off = newoff return r.off, nil case io.SeekEnd: newoff := int64(len(r.b)) + offset if newoff < 0 || newoff > int64(len(r.b)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 2.5K bytes - Viewed (0) -
operator/pkg/metrics/monitoring.go
"version", "Version of operator binary", ) ReconcileRequestTotal = monitoring.NewSum( "reconcile_request_total", "Number of times requesting Reconcile", ) // GetCRErrorTotal counts the number of times fetching // CR fails from API server. GetCRErrorTotal = monitoring.NewSum( "get_cr_error_total", "Number of times fetching CR from apiserver failed", )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 10 15:35:03 UTC 2023 - 7K bytes - Viewed (0) -
src/internal/coverage/slicewriter/slicewriter.go
return offset, nil case io.SeekCurrent: newoff := sws.off + offset if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) { return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", newoff, len(sws.payload)) } sws.off += offset return sws.off, nil case io.SeekEnd: newoff := int64(len(sws.payload)) + offset if newoff != sws.off && (newoff < 0 || newoff > int64(len(sws.payload))) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 26 12:44:26 UTC 2023 - 2.5K bytes - Viewed (0) -
security/pkg/nodeagent/cache/monitoring.go
var ( outgoingLatency = monitoring.NewSum( "outgoing_latency", "The latency of outgoing requests (e.g. to a token exchange server, CA, etc.) in milliseconds.", ) numOutgoingRequests = monitoring.NewSum( "num_outgoing_requests", "Number of total outgoing requests (e.g. to a token exchange server, CA, etc.)", ) numFailedOutgoingRequests = monitoring.NewSum( "num_failed_outgoing_requests",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/istio-agent/metrics/metrics.go
IstiodConnectionFailures = monitoring.NewSum( "istiod_connection_failures", "The total number of connection failures to Istiod", ) // istiodDisconnections records total number of unexpected disconnections by Istiod. istiodDisconnections = monitoring.NewSum( "istiod_connection_terminations", "The total number of connection errors to Istiod", )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 2.2K bytes - Viewed (0)