Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 954 for buffer2 (0.49 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        }
    
        @Test
        @DisplayName("Test constructor with buffer decodes correctly")
        void testConstructorWithBuffer() throws IOException {
            // Create test buffer with notification data
            byte[] buffer = createValidNotificationBuffer("testfile.txt", FileNotifyInformation.FILE_ACTION_ADDED);
    
            FileNotifyInformationImpl info = new FileNotifyInformationImpl(buffer, 0, buffer.length);
    
            assertNotNull(info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

                final int lLow = SMBUtil.readInt4(buffer, bufferIndex + 16);
    
                this.lengthInBytes = lHigh << 32 | lLow;
                return 20;
            }
            this.pid = SMBUtil.readInt2(buffer, bufferIndex);
            this.byteOffset = SMBUtil.readInt4(buffer, bufferIndex + 2);
            this.lengthInBytes = SMBUtil.readInt4(buffer, bufferIndex + 6);
            return 10;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Java8Compatibility.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.nio.Buffer;
    
    /**
     * Wrappers around {@link Buffer} methods that are covariantly overridden in Java 9+. See
     * https://github.com/google/guava/issues/3990
     */
    @J2ktIncompatible
    @GwtIncompatible
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/escape/CharEscaper.java

        int slen = s.length();
    
        // Get a destination buffer and setup some loop variables.
        char[] dest = Platform.charBufferFromThreadLocal();
        int destSize = dest.length;
        int destIndex = 0;
        int lastEscape = 0;
    
        // Loop through the rest of the string, replacing when needed into the
        // destination buffer, which gets grown as needed as well.
        for (; index < slen; index++) {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                buffer[errorStart + 2] = 1; // error context count
                SMBUtil.writeInt4(5, buffer, errorStart + 4); // byte count
    
                // Error data
                buffer[errorStart + 8] = 1;
                buffer[errorStart + 9] = 2;
                buffer[errorStart + 10] = 3;
                buffer[errorStart + 11] = 4;
                buffer[errorStart + 12] = 5;
    
                return buffer;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top