Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for v2bufs (0.23 sec)

  1. cmd/erasure-object.go

    	var v2bufs [][]byte
    	if !readData {
    		v2bufs = make([][]byte, len(rawFileInfos))
    	}
    
    	// Read `xl.meta` in parallel across disks.
    	for index := range rawFileInfos {
    		rf := rawFileInfos[index]
    		if rf.Buf == nil {
    			continue
    		}
    		if !readData {
    			// Save the buffer so we can reuse it.
    			v2bufs[index] = rf.Buf
    		}
    
    		var xl xlMetaV2
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  2. android/guava/src/com/google/common/io/ByteStreams.java

          // oh, there's the end of the stream
          return combineBuffers(bufs, MAX_ARRAY_LEN);
        } else {
          throw new OutOfMemoryError("input is too large to fit in a byte array");
        }
      }
    
      private static byte[] combineBuffers(Queue<byte[]> bufs, int totalLen) {
        if (bufs.isEmpty()) {
          return new byte[0];
        }
        byte[] result = bufs.remove();
        if (result.length == totalLen) {
          return result;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. cmd/erasure-decode.go

    	startBlock := int64(0)
    	endBlock := totalLength / e.blockSize
    	if totalLength%e.blockSize != 0 {
    		endBlock++
    	}
    
    	var bufs [][]byte
    	for block := startBlock; block < endBlock; block++ {
    		var err error
    		bufs, err = reader.Read(bufs)
    		if len(bufs) > 0 {
    			if errors.Is(err, errFileNotFound) || errors.Is(err, errFileCorrupt) {
    				if derr == nil {
    					derr = err
    				}
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
Back to top