Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 5,709 for size0 (0.21 sec)

  1. src/os/writeto_linux_test.go

    )
    
    func TestSendFile(t *testing.T) {
    	sizes := []int{
    		1,
    		42,
    		1025,
    		syscall.Getpagesize() + 1,
    		32769,
    	}
    	t.Run("sendfile-to-unix", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSendFile(t, "unix", int64(size))
    			})
    		}
    	})
    	t.Run("sendfile-to-tcp", func(t *testing.T) {
    		for _, size := range sizes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
          if (trySplit.estimateSize() > originalSize) {
            fail(
                format(
                    "estimated size of trySplit result (%s) is larger than original size (%s)",
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. src/hash/crc64/crc64.go

    		return errors.New("hash/crc64: invalid hash state size")
    	}
    	if tableSum(d.tab) != byteorder.BeUint64(b[4:]) {
    		return errors.New("hash/crc64: tables do not match")
    	}
    	d.crc = byteorder.BeUint64(b[12:])
    	return nil
    }
    
    func update(crc uint64, tab *Table, p []byte) uint64 {
    	buildSlicing8TablesOnce()
    	crc = ^crc
    	// Table comparison is somewhat expensive, so avoid it for small sizes
    	for len(p) >= 64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. test/heapsampling.go

    		a := allocObjects(records, frame)
    		for s := range size {
    			// Allocations of size size[s] should be on line firstLine + s.
    			ln := firstLine + s
    			objectsPerLine[ln] = append(objectsPerLine[ln], a[ln].objects)
    			bytesPerLine[ln] = append(bytesPerLine[ln], a[ln].bytes)
    			objectCount += a[ln].objects
    		}
    		totalCount = append(totalCount, objectCount)
    	}
    	for i, w := range size {
    		ln := firstLine + i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
        public int size () {
            int size = Smb2Constants.SMB2_HEADER_LENGTH + 36 + size8(2 * this.dialects.length, 4);
            if ( this.negotiateContexts != null ) {
                for ( NegotiateContextRequest ncr : this.negotiateContexts ) {
                    size += 8 + size8(ncr.size());
                }
            }
            return size8(size);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.5K bytes
    - Viewed (0)
  6. src/internal/trace/traceviewer/emitter.go

    			sizes = append(sizes, size)
    			cw.size = 0
    		},
    		ConsumeViewerFrame: func(k string, v format.Frame) {
    			allFrames[k] = v
    		},
    		Flush: func() {
    			// Calculate size of the mandatory part of the trace.
    			// This includes thread names and stack frames for
    			// required events.
    			cw.size = 0
    			enc := json.NewEncoder(&cw)
    			enc.Encode(data)
    			requiredSize := cw.size
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    			sizeS.failedCount++
    		case replication.Completed, replication.CompletedLegacy:
    			tgtSizeS.replicatedSize += oi.Size
    			tgtSizeS.replicatedCount++
    			sizeS.replicatedSize += oi.Size
    			sizeS.replicatedCount++
    		}
    		sizeS.replTargetStats[arn] = tgtSizeS
    	}
    
    	if oi.ReplicationStatus == replication.Replica {
    		sizeS.replicaSize += oi.Size
    		sizeS.replicaCount++
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:43:17 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  8. cmd/utils_test.go

    	"strings"
    	"testing"
    )
    
    // Tests maximum object size.
    func TestMaxObjectSize(t *testing.T) {
    	sizes := []struct {
    		isMax bool
    		size  int64
    	}{
    		// Test - 1 - maximum object size.
    		{
    			true,
    			globalMaxObjectSize + 1,
    		},
    		// Test - 2 - not maximum object size.
    		{
    			false,
    			globalMaxObjectSize - 1,
    		},
    	}
    	for i, s := range sizes {
    		isMax := isMaxObjectSize(s.size)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/go/types/sizes_test.go

    type S struct {
        i int
        b bool
        s string
        n int
    }
    `
    	ts := findStructType(t, src)
    	sizes := types.StdSizes{WordSize: 4, MaxAlign: 4}
    	if got := sizes.Sizeof(ts); got != 20 {
    		t.Errorf("Sizeof(%v) with WordSize 4 = %d want 20", ts, got)
    	}
    	sizes = types.StdSizes{WordSize: 8, MaxAlign: 8}
    	if got := sizes.Sizeof(ts); got != 40 {
    		t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/sizes_test.go

    type S struct {
        i int
        b bool
        s string
        n int
    }
    `
    	ts := findStructType(t, src)
    	sizes := types2.StdSizes{WordSize: 4, MaxAlign: 4}
    	if got := sizes.Sizeof(ts); got != 20 {
    		t.Errorf("Sizeof(%v) with WordSize 4 = %d want 20", ts, got)
    	}
    	sizes = types2.StdSizes{WordSize: 8, MaxAlign: 8}
    	if got := sizes.Sizeof(ts); got != 40 {
    		t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top