Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for over (0.18 sec)

  1. src/bytes/bytes_test.go

    var RepeatTests = []RepeatTest{
    	{"", "", 0},
    	{"", "", 1},
    	{"", "", 2},
    	{"-", "", 0},
    	{"-", "-", 1},
    	{"-", "----------", 10},
    	{"abc ", "abc abc abc ", 3},
    	// Tests for results over the chunkLimit
    	{string(rune(0)), string(make([]byte, 1<<16)), 1 << 16},
    	{longString, longString + longString, 2},
    }
    
    func TestRepeat(t *testing.T) {
    	for _, tt := range RepeatTests {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    	//
    	// The following are semantically equivalent:
    	//  h.Xattrs[key] = value
    	//  h.PAXRecords["SCHILY.xattr."+key] = value
    	//
    	// When Writer.WriteHeader is called, the contents of Xattrs will take
    	// precedence over those in PAXRecords.
    	//
    	// Deprecated: Use PAXRecords instead.
    	Xattrs map[string]string
    
    	// PAXRecords is a map of PAX extended header records.
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  3. src/bytes/bytes.go

    	// should therefore be always resident in the L1 cache - until we
    	// have completed the construction of the result.
    	// This yields significant speedups (up to +100%) in cases where
    	// the result length is large (roughly, over L2 cache size).
    	const chunkLimit = 8 * 1024
    	chunkMax := n
    	if chunkMax > chunkLimit {
    		chunkMax = chunkLimit / len(b) * len(b)
    		if chunkMax == 0 {
    			chunkMax = len(b)
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. src/archive/zip/writer.go

    		size = uint32max
    		offset = uint32max
    	}
    
    	// write end record
    	var buf [directoryEndLen]byte
    	b := writeBuf(buf[:])
    	b.uint32(uint32(directoryEndSignature))
    	b = b[4:]                        // skip over disk number and first disk number (2x uint16)
    	b.uint16(uint16(records))        // number of entries this disk
    	b.uint16(uint16(records))        // number of entries total
    	b.uint32(uint32(size))           // size of directory
    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)
  5. src/archive/tar/writer_test.go

    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top