Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for butter (0.17 sec)

  1. 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)
  2. src/bufio/bufio_test.go

    		t.Error("NewReaderSize did not detect underlying Reader")
    	}
    	// Does it wrap if existing buffer is too small?
    	b2 := NewReaderSize(b, 2*BufSize)
    	if b2 == b {
    		t.Error("NewReaderSize did not enlarge buffer")
    	}
    }
    
    func TestNewWriterSizeIdempotent(t *testing.T) {
    	const BufSize = 1000
    	b := NewWriterSize(new(bytes.Buffer), BufSize)
    	// Does it recognize itself?
    	b1 := NewWriterSize(b, BufSize)
    	if b1 != b {
    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)
  3. 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)
  4. src/archive/zip/fuzz_test.go

    			}
    			files = append(files, file{header: &f.FileHeader, content: content})
    			if _, err := r.Open(f.Name); err != nil {
    				continue
    			}
    		}
    
    		// If we were unable to read anything out of the archive don't
    		// bother trying to roundtrip it.
    		if len(files) == 0 {
    			return
    		}
    
    		w := NewWriter(io.Discard)
    		for _, f := range files {
    			ww, err := w.CreateHeader(f.header)
    			if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    	// The content is expected to be all zeros.
    	// Don't bother uncompressing: too big.
    	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 {
    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)
  6. 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 Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    unicode_letter = /* a Unicode code point classified as "Letter" */ .
    unicode_digit  = /* a Unicode code point classified as "Number, decimal digit" */ .
    </pre>
    
    <p>
    In <a href="https://www.unicode.org/versions/Unicode8.0.0/">The Unicode Standard 8.0</a>,
    Section 4.5 "General Category" defines a set of character categories.
    Go treats all characters in any of the Letter categories Lu, Ll, Lt, Lm, or Lo
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    circumstances: if net is the only cgo-using package, then internal
    linking is probably fine, but if other packages are involved, so that there
    are dependencies on libraries beyond libc, external linking is likely
    to work better. The compilation of a package records the relevant
    information to support both linking modes, leaving the decision
    to be made when linking the final binary.
    
    Linking Directives
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/1-time.md

    that for any call to a `Reset` or `Stop` method, no stale values
    prepared before that call will be sent or received after the call.
    Earlier versions of Go used channels with a one-element buffer,
    making it difficult to use `Reset` and `Stop` correctly.
    A visible effect of this change is that `len` and `cap` of timer channels
    now returns 0 instead of 1, which may affect programs that
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/archive/tar/example_test.go

    package tar_test
    
    import (
    	"archive/tar"
    	"bytes"
    	"fmt"
    	"io"
    	"log"
    	"os"
    )
    
    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
Back to top