- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 189 for buffer_end (0.19 sec)
-
src/cmd/internal/archive/archive.go
r.error(fmt.Errorf("debug/goobj: internal error: misuse of skip")) } if n < int64(len(r.tmp)) { // Since the data is so small, a just reading from the buffered // reader is better than flushing the buffer and seeking. r.readFull(r.tmp[:n]) } else if n <= int64(r.b.Buffered()) { // Even though the data is not small, it has already been read. // Advance the buffer instead of seeking. for n > int64(len(r.tmp)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 15:39:57 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedEncoder.java
output.writeString(key); } else { output.writeInt(index); } } /** * Returns the total number of bytes written by this encoder, some of which may still be buffered. */ public long getWritePosition() { return output.total(); } @Override public void flush() { output.flush(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 3.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyFileInterceptors.java
public static void intercept_eachByte( @Receiver File self, int bufferLen, Closure<?> closure, @CallerClassName String consumer ) throws IOException { Instrumented.fileOpened(self, consumer); ResourceGroovyMethods.eachByte(self, bufferLen, closure); } @InterceptGroovyCalls @InstanceMethod
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 24 15:57:56 UTC 2023 - 16.8K bytes - Viewed (0) -
internal/grid/benchmark_test.go
select { case <-ctx.Done(): return nil case out <- toSend: } } return nil }, Subroute: "some-subroute", OutCapacity: 1, // Only one message buffered. InCapacity: 0, })) errFatal(err) } const payloadSize = 512 rng := rand.New(rand.NewSource(time.Now().UnixNano())) payload := make([]byte, payloadSize) _, err = rng.Read(payload)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0) -
src/cmd/internal/edit/edit.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package edit implements buffered position-based editing of byte slices. package edit import ( "fmt" "sort" ) // A Buffer is a queue of edits to apply to a given byte slice. type Buffer struct { old []byte q edits }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 13 14:59:26 UTC 2017 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go
// provides) and may return unknown if the data provided is not sufficient to make a // a determination. When peek returns EOF that may mean the end of the input or the // end of buffered input - recognizers should return the best guess at that time. RecognizesData(peek []byte) (ok, unknown bool, err error) } // NewDecoder creates a decoder that will attempt multiple decoders in an order defined // by:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 3.5K bytes - Viewed (0) -
src/net/rpc/client.go
// If non-nil, done must be buffered or Go will deliberately crash. func (client *Client) Go(serviceMethod string, args any, reply any, done chan *Call) *Call { call := new(Call) call.ServiceMethod = serviceMethod call.Args = args call.Reply = reply if done == nil { done = make(chan *Call, 10) // buffered. } else { // If caller passes done != nil, it must arrange that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 9K bytes - Viewed (0) -
src/net/http/internal/chunked.go
} } func (cr *chunkedReader) chunkHeaderAvailable() bool { n := cr.r.Buffered() if n > 0 { peek, _ := cr.r.Peek(n) return bytes.IndexByte(peek, '\n') >= 0 } return false } func (cr *chunkedReader) Read(b []uint8) (n int, err error) { for cr.err == nil { if cr.checkEnd { if n > 0 && cr.r.Buffered() < 2 { // We have some data. Return early (per the io.Reader
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7.8K bytes - Viewed (0) -
src/internal/poll/splice_linux.go
return n, err } if sock.pd.pollable() { if err := sock.pd.waitRead(sock.isFile); err != nil { return n, err } } } } // splicePump moves all the buffered data from a pipe to a socket. // // Invariant: when entering splicePump, there are exactly inPipe // bytes of data in the pipe, from a previous call to spliceDrain. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/kubelet/pod_container_deletor.go
package kubelet import ( "context" "sort" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/klog/v2" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" ) const ( // The limit on the number of buffered container deletion requests // This number is a bit arbitrary and may be adjusted in the future. containerDeletorBufferLimit = 50 ) type containerStatusbyCreatedList []*kubecontainer.Status
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 4K bytes - Viewed (0)