Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 1,143 for butter (0.29 sec)

  1. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            int desiredAccess = (buffer[24] & 0xFF) | ((buffer[25] & 0xFF) << 8) | ((buffer[26] & 0xFF) << 16) | ((buffer[27] & 0xFF) << 24);
            assertEquals(0x00120089, desiredAccess);
    
            // Check default share access (READ | WRITE) at offset 32
            int shareAccess = (buffer[32] & 0xFF) | ((buffer[33] & 0xFF) << 8) | ((buffer[34] & 0xFF) << 16) | ((buffer[35] & 0xFF) << 24);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            // Arrange
            byte[] buffer = new byte[100];
            SMBUtil.writeInt2(0, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
            SMBUtil.writeInt2(0, buffer, 4);
    
            // Act & Assert
            assertEquals(0, response.readSetupWireFormat(buffer, 0, 100));
            assertEquals(6, response.readParametersWireFormat(buffer, 0, 100));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/transport/Response.java

        /**
         * Verifies the signature of this response.
         *
         * @param buffer the buffer containing the signature data
         * @param i the starting index in the buffer
         * @param size the size of the signature data
         * @return whether signature verification is successful
         */
        boolean verifySignature(byte[] buffer, int i, int size);
    
        /**
         * Checks if signature verification failed.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteStreams.java

       *       then sequentially accessing it could result in other processes dying. This is solvable
       *       via madvise(2), but that obviously doesn't exist in java.
       *   <li>Ordinary copy. Kernel copies bytes into a kernel buffer, from a kernel buffer into a
       *       userspace buffer (byte[] or ByteBuffer), then copies them from that buffer into the
       *       destination channel.
       * </ol>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

            // Verify by writing to buffer and checking the fileIndex position
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, Smb2Constants.SMB2_HEADER_LENGTH);
    
            // FileIndex is at offset 4 in the request structure
            int readIndex = (buffer[Smb2Constants.SMB2_HEADER_LENGTH + 4] & 0xFF) | ((buffer[Smb2Constants.SMB2_HEADER_LENGTH + 5] & 0xFF) << 8)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

        public void testBufferCreation() throws UnsupportedEncodingException {
            byte[] dataBytes = { 1, 2, 3, 4 };
            String params = "test";
            byte[] buffer = createBuffer(10, dataBytes, params);
    
            // Verify buffer structure
            assertTrue(buffer.length >= 14, "Buffer should contain header, params and data");
        }
    
        @Test
        public void testByteOperations() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals(5120L, SMBUtil.readInt8(buffer, offset + 8));
                assertEquals(8192, SMBUtil.readInt4(buffer, offset + 16));
    
                offset += CHUNK_SIZE;
                assertEquals(12288L, SMBUtil.readInt8(buffer, offset));
                assertEquals(13312L, SMBUtil.readInt8(buffer, offset + 8));
                assertEquals(16384, SMBUtil.readInt4(buffer, offset + 16));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

         * readAndXWireFormat without reading the non-existent header.
         */
    
        @Override
        int decode(final byte[] buffer, int bufferIndex) {
            final int start = headerStart = bufferIndex;
    
            bufferIndex += readHeaderWireFormat(buffer, bufferIndex);
            bufferIndex += readAndXWireFormat(buffer, bufferIndex);
    
            length = bufferIndex - start;
            return length;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Test encoding
            byte[] buffer = new byte[200];
            int bytesEncoded = request.encode(buffer, 0);
    
            // Verify proper encoding
            assertEquals(14 + nameBytes.length, bytesEncoded);
            assertEquals(30000L, SMBUtil.readInt8(buffer, 0));
            assertEquals(nameBytes.length, SMBUtil.readInt4(buffer, 8));
            assertEquals(0x1, buffer[12]); // Timeout specified
    
            // Verify pipe name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top