Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for totalLen (0.03 sec)

  1. guava/src/com/google/common/io/ByteStreams.java

        }
      }
    
      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;
        }
        int remaining = totalLen - result.length;
        result = Arrays.copyOf(result, totalLen);
        while (remaining > 0) {
          byte[] buf = bufs.remove();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            int totalLen;
            if (ctxOffsetFromHeader != null && ctxBytes != null) {
                totalLen = Math.max(SMB2_HEADER_LENGTH + body.length, ctxOffsetFromHeader + ctxBytes.length);
            } else {
                totalLen = SMB2_HEADER_LENGTH + body.length;
            }
            byte[] packet = new byte[totalLen];
            System.arraycopy(header, 0, packet, 0, header.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/bufio/bufio.go

    			err = e
    			break
    		}
    
    		// Make a copy of the buffer.
    		buf := bytes.Clone(frag)
    		fullBuffers = append(fullBuffers, buf)
    		totalLen += len(buf)
    	}
    
    	totalLen += len(frag)
    	return fullBuffers, frag, totalLen, err
    }
    
    // ReadBytes reads until the first occurrence of delim in the input,
    // returning a slice containing the data up to and including the delimiter.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                testMessage.setBytesWritten(10);
                testMessage.chain(second);
    
                byte[] buffer = new byte[1024];
                int totalLen = testMessage.encode(buffer, 0);
    
                assertTrue(totalLen > testMessage.getLength());
    
                // Check next command offset was written
                int nextOffset = SMBUtil.readInt4(buffer, 20);
                assertTrue(nextOffset > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top