Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 919 for buffered (0.03 sec)

  1. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

      private static final byte[] testBytes = new byte[] {'y', 'a', 'm', 's'};
      private ByteArrayInputStream buffer;
    
      @SuppressWarnings("DoNotMock")
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        hasher = mock(Hasher.class);
        hashFunction = mock(HashFunction.class);
        buffer = new ByteArrayInputStream(testBytes);
    
        when(hashFunction.newHasher()).thenReturn(hasher);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

                SMBUtil.writeInt4(0, buffer, offset + 4); // sin6_flowinfo
                System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16); // sin6_addr
                SMBUtil.writeInt4(0, buffer, offset + 24); // sin6_scope_id
            } else {
                // IPv4 sockaddr_in structure (Windows AF_INET = 2)
                SMBUtil.writeInt2(2, buffer, offset); // sa_family: AF_INET
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                // Create a buffer with sample data
                byte[] buffer = new byte[100];
                // Fill with some test data
                for (int i = 0; i < buffer.length; i++) {
                    buffer[i] = (byte) (i % 256);
                }
    
                int result = resp.readDataWireFormat(buffer, 0, 40);
                assertNotNull(resp.info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        @CanIgnoreReturnValue
        @Override
        public Hasher putBytes(ByteBuffer buffer) {
          ByteOrder bo = buffer.order();
          buffer.order(ByteOrder.LITTLE_ENDIAN);
          while (buffer.remaining() >= 4) {
            putInt(buffer.getInt());
          }
          while (buffer.hasRemaining()) {
            putByte(buffer.get());
          }
          buffer.order(bo);
          return this;
        }
    
        @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

            this.server.smaxMpxCount = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxNumberVcs = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.server.maxBufferSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.server.maxRawSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/AbstractArtifactMetadata.java

        @Override
        public String extendedToString() {
            StringBuilder buffer = new StringBuilder(256);
    
            buffer.append(LS).append("Artifact Metadata").append(LS).append("--------------------------");
            buffer.append(LS).append("GroupId: ").append(getGroupId());
            buffer.append(LS).append("ArtifactId: ").append(getArtifactId());
            buffer.append(LS).append("Metadata Type: ").append(getClass().getName());
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralResponseBuffer.java

        }
    
        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
    
            this.pathConsumed = SMBUtil.readInt2(buffer, bufferIndex) / 2;
            bufferIndex += 2;
            this.numReferrals = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.tflags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            byte[] buffer = new byte[512];
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            // Then
            assertTrue(bytesWritten > 0);
    
            // Verify structure size
            assertEquals(36, SMBUtil.readInt2(buffer, 0));
    
            // Verify dialect count
            assertEquals(3, SMBUtil.readInt2(buffer, 2)); // SMB210, SMB300, SMB302
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(16, SMBUtil.readInt2(buffer, 4));
    
            // NameLength field (2 bytes) - should be 4 for "RqLs"
            assertEquals(4, SMBUtil.readInt2(buffer, 6));
    
            // Reserved field (2 bytes) - should be 0
            assertEquals(0, SMBUtil.readInt2(buffer, 8));
    
            // DataOffset field (2 bytes) - should be 24 (16 header + 4 name + 4 padding)
            assertEquals(24, SMBUtil.readInt2(buffer, 10));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt

      ): Long {
        var byteCount = 0L
        val buffer: Buffer = if (countBytes) Buffer() else sink!!.buffer
    
        for (i in 0 until encodedNames.size) {
          if (i > 0) buffer.writeByte('&'.code)
          buffer.writeUtf8(encodedNames[i])
          buffer.writeByte('='.code)
          buffer.writeUtf8(encodedValues[i])
        }
    
        if (countBytes) {
          byteCount = buffer.size
          buffer.clear()
        }
    
        return byteCount
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top