Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 954 for buffer3 (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            info.allocationSize = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.endOfFile = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.numberOfLinks = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            info.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
            bufferIndex++;
            info.directory = (buffer[bufferIndex++] & 0xFF) > 0;
            this.info = info;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            buffer.putInt(4, 8); // Offset
    
            System.arraycopy(content, 0, data, 8, content.length); // Place content at offset 8
    
            byte[] result = NtlmMessage.readSecurityBuffer(data, 0);
            assertArrayEquals(content, result, "Should read security buffer content correctly.");
    
            // Test with zero length buffer
            buffer.putShort(0, (short) 0);
            buffer.putShort(2, (short) 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            byte[] buffer = new byte[1024];
    
            request.writeBytesWireFormat(buffer, 0);
    
            // Control code is at offset 4 (4 bytes)
            int encodedControlCode = (buffer[4] & 0xFF) | ((buffer[5] & 0xFF) << 8) | ((buffer[6] & 0xFF) << 16) | ((buffer[7] & 0xFF) << 24);
            assertEquals(testControlCode, encodedControlCode);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

        protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    
            buffer[bufferIndex] = (byte) 0x00; // Reserved
            bufferIndex++;
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            this.totalParameterCount = SMBUtil.readInt4(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageInflater.kt

      private val inflaterSource = InflaterSource(deflatedBytes, inflater)
    
      /** Inflates [buffer] in place as described in RFC 7692 section 7.2.2. */
      @Throws(IOException::class)
      fun inflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          inflater.reset()
        }
    
        deflatedBytes.writeAll(buffer)
        deflatedBytes.writeInt(OCTETS_TO_ADD_BEFORE_INFLATION)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

        }
    
        /**
         * Reads the AndX wire format from buffer
         * @param buffer the buffer to read from
         * @param bufferIndex the starting index
         * @return the number of bytes read
         * @throws SMBProtocolDecodingException if decoding fails
         */
        protected int readAndXWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. android/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)
  8. 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)
  9. 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)
  10. 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)
Back to top