Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 465 for OFFSET (0.06 sec)

  1. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

        @Test
        @DisplayName("Test decode with buffer offset")
        void testDecodeWithBufferOffset() throws SMBProtocolDecodingException {
            // Prepare test data with offset
            byte[] buffer = new byte[20]; // Extra space to test offset
            int bufferIndex = 7; // Start at offset 7
            long expectedIndexNumber = 0xFEDCBA9876543210L;
    
            // Encode test data at offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

                assertEquals(expected[i], dst[offset + i], () -> "byte index " + idx);
            }
            // The region before offset and after the payload must remain untouched.
            for (int i = 0; i < offset; i++) {
                final int idx = i;
                assertEquals(0, dst[i], () -> "pre-offset byte " + idx + " modified");
            }
            for (int i = offset + 8; i < dst.length; i++) {
                final int idx = i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            SMBUtil.writeInt2(0x8004, buffer, 22); // Control flags
            SMBUtil.writeInt4(0, buffer, 24); // Owner offset
            SMBUtil.writeInt4(0, buffer, 28); // Group offset
            SMBUtil.writeInt4(0, buffer, 32); // SACL offset
            SMBUtil.writeInt4(0, buffer, 36); // DACL offset
    
            int result = response.readBytesWireFormat(buffer, bufferIndex);
    
            assertNotNull(response.getInfo());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComWrite.java

         * @param offset the file offset at which to write
         * @param remaining the number of bytes remaining to be written
         * @param b the data buffer containing bytes to write
         * @param off the offset in the buffer where data starts
         * @param len the number of bytes to write
         */
        public SmbComWrite(final Configuration config, final int fid, final int offset, final int remaining, final byte[] b, final int off,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         */
        public Smb2RdmaTransform(long offset, int token, int length) {
            this.offset = offset;
            this.token = token;
            this.length = length;
        }
    
        /**
         * Get buffer offset
         *
         * @return offset within registered buffer
         */
        public long getOffset() {
            return offset;
        }
    
        /**
         * Get RDMA token
         *
         * @return RDMA provider token
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            // Test reading data from different buffer offsets
            byte[] testData = "Test data with offset".getBytes();
            byte[] buffer = new byte[200];
            int offset = 50;
            System.arraycopy(testData, 0, buffer, offset, testData.length);
    
            int result = response.readDataWireFormat(buffer, offset, testData.length);
    
            assertEquals(testData.length, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/arch/arm64.go

    }
    
    // ARM64RegisterListOffset generates offset encoding according to AArch64 specification.
    func ARM64RegisterListOffset(firstReg, regCnt int, arrangement int64) (int64, error) {
    	offset := int64(firstReg)
    	switch regCnt {
    	case 1:
    		offset |= 0x7 << 12
    	case 2:
    		offset |= 0xa << 12
    	case 3:
    		offset |= 0x6 << 12
    	case 4:
    		offset |= 0x2 << 12
    	default:
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 14 15:13:11 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/NtlmMessage.java

            final int offset = readULong(src, index + 4);
            final byte[] buffer = new byte[length];
            System.arraycopy(src, offset, buffer, 0, length);
            return buffer;
        }
    
        static void writeULong(final byte[] dest, final int offset, final int ulong) {
            dest[offset] = (byte) (ulong & 0xff);
            dest[offset + 1] = (byte) (ulong >> 8 & 0xff);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Verify
            assertEquals(14 + nameBytes.length, bytesEncoded);
    
            // Check timeout value at offset
            assertEquals(timeout, SMBUtil.readInt8(buffer, offset));
    
            // Check name length at offset
            assertEquals(nameBytes.length, SMBUtil.readInt4(buffer, offset + 8));
    
            // Check timeout specified flag at offset
            assertEquals(0x1, buffer[offset + 12]);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testVariousOffsetsAndLengths(int dataSize, int offset, int length) {
                byte[] data = new byte[dataSize];
                assertDoesNotThrow(() -> request.setData(data, offset, length));
            }
        }
    
        @Nested
        @DisplayName("Parameter Setting Tests")
        class ParameterSettingTests {
    
            @Test
            @DisplayName("Should set offset correctly")
            void testSetOffset() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top