Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for contents (0.3 sec)

  1. src/bytes/buffer_test.go

    	}
    
    	if string(bytes) != s {
    		t.Errorf("%s: string(buf.Bytes()) == %q, s == %q", testname, string(bytes), s)
    	}
    }
    
    // Fill buf through n writes of string fus.
    // The initial contents of buf corresponds to the string s;
    // the result is the final contents of buf returned as a string.
    func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
    	check(t, testname+" (fill 1)", buf, s)
    	for ; n > 0; n-- {
    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/bytes/buffer.go

    type Buffer struct {
    	buf      []byte // contents are the bytes buf[off : len(buf)]
    	off      int    // read at &buf[off], write at &buf[len(buf)]
    	lastRead readOp // last read operation, so that Unread* can work correctly.
    }
    
    // The readOp constants describe the last action performed on
    // the buffer, so that UnreadRune and UnreadByte can check for
    // invalid usage. opReadRuneX constants are chosen such that
    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/archive/zip/reader.go

    	bodyOffset, err := f.findBodyOffset()
    	if err != nil {
    		return
    	}
    	return f.headerOffset + bodyOffset, nil
    }
    
    // Open returns a [ReadCloser] that provides access to the [File]'s contents.
    // Multiple files may be read concurrently.
    func (f *File) Open() (io.ReadCloser, error) {
    	bodyOffset, err := f.findBodyOffset()
    	if err != nil {
    		return nil, err
    	}
    	if strings.HasSuffix(f.Name, "/") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  4. src/archive/tar/example_test.go

    		if err != nil {
    			log.Fatal(err)
    		}
    		fmt.Printf("Contents of %s:\n", hdr.Name)
    		if _, err := io.Copy(os.Stdout, tr); err != nil {
    			log.Fatal(err)
    		}
    		fmt.Println()
    	}
    
    	// Output:
    	// Contents of readme.txt:
    	// This archive contains some text files.
    	// Contents of gopher.txt:
    	// Gopher names:
    	// George
    	// Geoffrey
    	// Gonzo
    	// Contents of todo.txt:
    	// Get animal handling license.
    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)
  5. src/cmd/cgo/doc.go

    ordinary Go string value. The string length, and a pointer to the
    string contents, may be accessed by calling the C functions
    
    	size_t _GoStringLen(_GoString_ s);
    	const char *_GoStringPtr(_GoString_ s);
    
    These functions are only available in the preamble, not in other C
    files. The C code must not modify the contents of the pointer returned
    by _GoStringPtr. Note that the string contents may not have a trailing
    NUL byte.
    
    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)
  6. src/archive/zip/example_test.go

    	// Iterate through the files in the archive,
    	// printing some of their contents.
    	for _, f := range r.File {
    		fmt.Printf("Contents of %s:\n", f.Name)
    		rc, err := f.Open()
    		if err != nil {
    			log.Fatal(err)
    		}
    		_, err = io.CopyN(os.Stdout, rc, 68)
    		if err != nil {
    			log.Fatal(err)
    		}
    		rc.Close()
    		fmt.Println()
    	}
    	// Output:
    	// Contents of README:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  7. src/archive/zip/writer_test.go

    		name             string
    		content          []byte
    		method           uint16
    		flags            uint16
    		crc32            uint32
    		uncompressedSize uint64
    		compressedSize   uint64
    	}{
    		{
    			name:    "small store w desc",
    			content: []byte("gophers"),
    			method:  Store,
    			flags:   0x8,
    		},
    		{
    			name:    "small deflate wo desc",
    			content: bytes.Repeat([]byte("abcdefg"), 2048),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  8. PATENTS

    no-charge, royalty-free, irrevocable (except as stated in this section)
    patent license to make, have made, use, offer to sell, sell, import,
    transfer and otherwise run, modify and propagate the contents of this
    implementation of Go, where such license applies only to those patent
    claims, both currently owned or controlled by Google and acquired in
    the future, licensable by Google that are necessarily infringed by this
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 06 21:31:59 GMT 2010
    - 1.3K bytes
    - Viewed (0)
  9. doc/README.md

    	[#12345](/issue/12345)             # GitHub issues
    	[CL 6789](/cl/6789)                # Gerrit changelists
    
    ## For the release team
    
    At the start of a release development cycle, the contents of `next` should be deleted
    and replaced with those of `initial`. From the repo root:
    
        > cd doc
        > rm -r next/*
        > cp -r initial/* next
    
    Then edit `next/1-intro.md` to refer to the next version.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 21:24:36 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    // It returns a [Writer] to which the file contents should be written.
    // The file contents will be compressed using the [Deflate] method.
    // The name must be a relative path: it must not start with a drive
    // letter (e.g. C:) or leading slash, and only forward slashes are
    // allowed. To create a directory instead of a file, add a trailing
    // slash to the name.
    // The file's contents must be written to the [io.Writer] before the next
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top