Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for buffers (2.49 sec)

  1. api/go1.8.txt

    pkg net/http, var ErrAbortHandler error
    pkg net/http, var ErrServerClosed error
    pkg net/http, var NoBody noBody
    pkg net/mail, func ParseDate(string) (time.Time, error)
    pkg net, method (*Buffers) Read([]uint8) (int, error)
    pkg net, method (*Buffers) WriteTo(io.Writer) (int64, error)
    pkg net, method (*Resolver) LookupAddr(context.Context, string) ([]string, error)
    pkg net, method (*Resolver) LookupCNAME(context.Context, string) (string, error)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
  2. src/bytes/buffer.go

    // The slice aliases the buffer content at least until the next buffer modification,
    // so immediate changes to the slice will affect the result of future reads.
    func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
    
    // AvailableBuffer returns an empty buffer with b.Available() capacity.
    // This buffer is intended to be appended to and
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  3. src/bufio/bufio.go

    	b.n = 0
    	return nil
    }
    
    // Available returns how many bytes are unused in the buffer.
    func (b *Writer) Available() int { return len(b.buf) - b.n }
    
    // AvailableBuffer returns an empty buffer with b.Available() capacity.
    // This buffer is intended to be appended to and
    // passed to an immediately succeeding [Writer.Write] call.
    // The buffer is only valid until the next write operation on b.
    func (b *Writer) AvailableBuffer() []byte {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    	// Confirm that when Reader panics, the empty buffer remains empty
    	var buf2 Buffer
    	defer func() {
    		recover()
    		check(t, "TestReadFromPanicReader (2)", &buf2, "")
    	}()
    	buf2.ReadFrom(panicReader{panic: true})
    }
    
    func TestReadFromNegativeReader(t *testing.T) {
    	var b Buffer
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	}
    	if buffered := wr.Buffered(); buffered != wantBuffered {
    		t.Fatalf("Buffered = %v; want %v", buffered, wantBuffered)
    	}
    }
    
    func BenchmarkReaderCopyOptimal(b *testing.B) {
    	// Optimal case is where the underlying reader implements io.WriterTo
    	srcBuf := bytes.NewBuffer(make([]byte, 8192))
    	src := NewReader(srcBuf)
    	dstBuf := new(bytes.Buffer)
    	dst := onlyWriter{dstBuf}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  6. misc/wasm/wasm_exec.js

    						const n = this.mem.getInt32(sp + 24, true);
    						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
    					},
    
    					// func resetMemoryDataView()
    					"runtime.resetMemoryDataView": (sp) => {
    						sp >>>= 0;
    						this.mem = new DataView(this._inst.exports.mem.buffer);
    					},
    
    					// func nanotime1() int64
    					"runtime.nanotime1": (sp) => {
    						sp >>>= 0;
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  7. api/go1.5.txt

    pkg go/types, func SelectionString(*Selection, Qualifier) string
    pkg go/types, func TypeString(Type, Qualifier) string
    pkg go/types, func WriteExpr(*bytes.Buffer, ast.Expr)
    pkg go/types, func WriteSignature(*bytes.Buffer, *Signature, Qualifier)
    pkg go/types, func WriteType(*bytes.Buffer, Type, Qualifier)
    pkg go/types, method (*Array) Elem() Type
    pkg go/types, method (*Array) Len() int64
    pkg go/types, method (*Array) String() string
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  8. src/cmd/api/api_test.go

    		gotOK := compareAPI(buf, tt.features, tt.required, tt.exception)
    		if gotOK != tt.ok {
    			t.Errorf("%s: ok = %v; want %v", tt.name, gotOK, tt.ok)
    		}
    		if got := buf.String(); got != tt.out {
    			t.Errorf("%s: output differs\nGOT:\n%s\nWANT:\n%s", tt.name, got, tt.out)
    		}
    	}
    }
    
    func TestSkipInternal(t *testing.T) {
    	tests := []struct {
    		pkg  string
    		want bool
    	}{
    		{"net/http", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. src/archive/zip/reader_test.go

    	if ft.Content == nil && ft.File == "" && ft.Size > 0 {
    		if size != ft.Size {
    			t.Errorf("%v: uncompressed size %#x, want %#x", ft.Name, size, ft.Size)
    		}
    		r.Close()
    		return
    	}
    
    	var b bytes.Buffer
    	_, err = io.Copy(&b, r)
    	if err != ft.ContentErr {
    		t.Errorf("copying contents: %v (want %v)", err, ft.ContentErr)
    	}
    	if err != nil {
    		return
    	}
    	r.Close()
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    make(chan int, 100)
    </pre>
    
    <p>
    The capacity, in number of elements, sets the size of the buffer in the channel.
    If the capacity is zero or absent, the channel is unbuffered and communication
    succeeds only when both a sender and receiver are ready. Otherwise, the channel
    is buffered and communication succeeds without blocking if the buffer
    is not full (sends) or not empty (receives).
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top