Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 189 for buffer_end (0.19 sec)

  1. src/vendor/golang.org/x/text/transform/transform.go

    		r.src1 += n
    	}
    }
    
    // TODO: implement ReadByte (and ReadRune??).
    
    // Writer wraps another io.Writer by transforming the bytes read.
    // The user needs to call Close to flush unwritten bytes that may
    // be buffered.
    type Writer struct {
    	w   io.Writer
    	t   Transformer
    	dst []byte
    
    	// src[:n] contains bytes that have not yet passed through t.
    	src []byte
    	n   int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 22:10:00 UTC 2020
    - 21.7K bytes
    - Viewed (0)
  2. src/internal/zstd/zstd.go

    	// If frameSizeUnknown is true, this is not valid.
    	remainingFrameSize uint64
    
    	// The number of bytes read from r up to the start of the current
    	// block, for error reporting.
    	blockOffset int64
    
    	// Buffered decompressed data.
    	buffer []byte
    	// Current read offset in buffer.
    	off int
    
    	// The current repeated offsets.
    	repeatedOffset1 uint32
    	repeatedOffset2 uint32
    	repeatedOffset3 uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/net/lookup_windows.go

    		// GetAddrInfoEx with lpOverlapped, which requires
    		// Windows 8 or newer. I guess we'll need oldLookupIP,
    		// newLookupIP, and newerLookUP.
    		//
    		// For now we just let it finish and write to the
    		// buffered channel.
    		return nil, newDNSError(mapErr(ctx.Err()), name, "")
    	}
    }
    
    func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {
    	if systemConf().mustUseGoResolver(r) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. src/internal/trace/generation.go

    // generation.
    type spilledBatch struct {
    	gen uint64
    	*batch
    }
    
    // readGeneration buffers and decodes the structural elements of a trace generation
    // out of r. spill is the first batch of the new generation (already buffered and
    // parsed from reading the last generation). Returns the generation and the first
    // batch read of the next generation, if any.
    //
    // If gen is non-nil, it is valid and must be processed before handling the returned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/codegen/GradleApiExtensionsTest.kt

        private
        fun fixturesApiMetadataJar(): File =
            file("gradle-api-metadata.jar").also { file ->
                JarOutputStream(
                    file.outputStream().buffered(),
                    Manifest().apply { mainAttributes[Attributes.Name.MANIFEST_VERSION] = "1.0" }
                ).use { output ->
                    output.putNextEntry(JarEntry("gradle-api-declaration.properties"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/wait/poll.go

    // it would be the caller's responsibility to close the done channel.
    // Failure to do so would result in a leaked goroutine.
    //
    // Output ticks are not buffered. If the channel is not ready to receive an
    // item, the tick is skipped.
    //
    // Deprecated: Will be removed in a future release.
    func poller(interval, timeout time.Duration) waitWithContextFunc {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 06:13:35 UTC 2023
    - 14K bytes
    - Viewed (0)
  7. src/os/pipe_test.go

    	// Write calls occurs during that interval it can spuriously succeed,
    	// buffering the write to the child's copy of the pipe (even though the child
    	// will not actually read the buffered bytes).
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err := r.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	expect := syscall.EPIPE
    	if runtime.GOOS == "windows" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_test.go

    	path := file.Name()
    	file.WriteString(contents)
    	file.Close()
    	return path
    }
    
    // localListener is set up by TestMain and used by localPipe to create Conn
    // pairs like net.Pipe, but connected by an actual buffered TCP connection.
    var localListener struct {
    	mu   sync.Mutex
    	addr net.Addr
    	ch   chan net.Conn
    }
    
    const localFlakes = 0 // change to 1 or 2 to exercise localServer/localPipe handling of mismatches
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. src/encoding/json/stream_test.go

    		Name string
    	}
    	d := NewDecoder(r)
    	err := d.Decode(&m)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if m.Name != "Gopher" {
    		t.Errorf("Name = %s, want Gopher", m.Name)
    	}
    	rest, err := io.ReadAll(d.Buffered())
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got, want := string(rest), " extra "; got != want {
    		t.Errorf("Remaining = %s, want %s", got, want)
    	}
    }
    
    func nlines(s string, n int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. pilot/test/xds/fake.go

    	// Override the default kube client constructor
    	KubeClientBuilder func(objects ...runtime.Object) kubelib.Client
    
    	// ListenerBuilder, if specified, allows making the server use the given
    	// listener instead of a buffered conn.
    	ListenerBuilder func() (net.Listener, error)
    
    	// Time to debounce
    	// By default, set to 0s to speed up tests
    	DebounceTime time.Duration
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top