Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for bufSize (0.05 sec)

  1. src/bufio/bufio_test.go

    				for k := 0; k < len(bufsizes); k++ {
    					readmaker := readMakers[i]
    					bufreader := bufreaders[j]
    					bufsize := bufsizes[k]
    					read := readmaker.fn(strings.NewReader(text))
    					buf := NewReaderSize(read, bufsize)
    					s := bufreader.fn(buf)
    					if s != text {
    						t.Errorf("reader=%s fn=%s bufsize=%d want=%q got=%q",
    							readmaker.name, bufreader.name, bufsize, text, s)
    					}
    				}
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/ByteStreams.java

        // reading and so all of the bytes in each new allocated buffer are available for reading from
        // the stream.
        for (int bufSize = initialBufferSize;
            totalLen < MAX_ARRAY_LEN;
            bufSize = IntMath.saturatedMultiply(bufSize, bufSize < 4096 ? 4 : 2)) {
          byte[] buf = new byte[min(bufSize, MAX_ARRAY_LEN - totalLen)];
          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. cmd/xl-storage_test.go

    					t.Errorf("Case: %d %#v, expected: \"%s\", got: \"%s\"", i+1, testCase, string(testCase.expectedBuf), string(buf[:testCase.bufSize]))
    				}
    				if n != int64(testCase.bufSize) {
    					t.Errorf("Case: %d %#v, expected: %d, got: %d", i+1, testCase, testCase.bufSize, n)
    				}
    			}
    		}
    	}
    
    	// TestXLStorage for permission denied.
    	if runtime.GOOS != globalWindowsOSName {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top