Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 232 for writeInt2 (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            byte[] buffer = new byte[10];
            SMBUtil.writeInt2(0, buffer, 0);
            SMBUtil.writeInt2(0, buffer, 2);
            SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4);
    
            response.readParametersWireFormat(buffer, 0, 6);
            assertEquals(0, response.getAvailable());
    
            // Test maximum unsigned 16-bit value (65535)
            SMBUtil.writeInt2(0xFFFF, buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

                return 0;
            }
    
            SMBUtil.writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            SMBUtil.writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 2;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameServicePacketTest.java

            NameServicePacket.writeInt2(0x1234, src, 0);
            src[2] = (byte) (0x80 | (NameServicePacket.QUERY << 3) | 0x04 | 0x02 | 0x01);
            src[3] = (byte) (0x80 | 0x10 | NameServicePacket.FMT_ERR);
            NameServicePacket.writeInt2(1, src, 4);
            NameServicePacket.writeInt2(2, src, 6);
            NameServicePacket.writeInt2(3, src, 8);
            NameServicePacket.writeInt2(4, src, 10);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

            int start = dstIndex;
    
            // Compression count (2 bytes)
            SMBUtil.writeInt2(this.compressionAlgorithms.length, dst, dstIndex);
            dstIndex += 2;
    
            // Padding (2 bytes)
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            // Flags (4 bytes)
            SMBUtil.writeInt4(this.flags, dst, dstIndex);
            dstIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

            final int start = dstIndex;
    
            writeInt2(sid, dst, dstIndex);
            dstIndex += 2;
            writeInt2(Trans2FindFirst2.LIST_COUNT, dst, dstIndex);
            dstIndex += 2;
            writeInt2(informationLevel, dst, dstIndex);
            dstIndex += 2;
            writeInt4(resumeKey, dst, dstIndex);
            dstIndex += 4;
            writeInt2(flags, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            int testSecurityMode = 0x0001;
            int testDialect = 0x0202;
    
            // Write to buffer
            SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex);
            System.arraycopy(testGuid, 0, buffer, bufferIndex + 4, 16);
            SMBUtil.writeInt2(testSecurityMode, buffer, bufferIndex + 20);
            SMBUtil.writeInt2(testDialect, buffer, bufferIndex + 22);
    
            // Execute decode
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

            dataOffset += pad;
    
            writeInt2(fid, dst, dstIndex);
            dstIndex += 2;
            writeInt4(offset, dst, dstIndex);
            dstIndex += 4;
            for (int i = 0; i < 4; i++) {
                dst[dstIndex++] = (byte) 0xFF;
            }
            writeInt2(writeMode, dst, dstIndex);
            dstIndex += 2;
            writeInt2(remaining, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/util/SMBUtilTest.java

        @Test
        void testNegativeValueHandling() {
            byte[] buffer = new byte[8];
    
            // Test negative values in writeInt4
            SMBUtil.writeInt4(-1L, buffer, 0);
            assertEquals(-1, SMBUtil.readInt4(buffer, 0));
    
            // Test negative values in writeInt8
            SMBUtil.writeInt8(-1L, buffer, 0);
            assertEquals(-1L, SMBUtil.readInt8(buffer, 0));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java

            int idx = 0;
            SMBUtil.writeInt2(minVersion, data, idx);
            idx += 2;
            SMBUtil.writeInt2(maxVersion, data, idx);
            idx += 2;
            SMBUtil.writeInt2(negotiatedVersion, data, idx);
            idx += 2;
            SMBUtil.writeInt2(reserved, data, idx);
            idx += 2;
            SMBUtil.writeInt2(creditsGranted, data, idx);
            idx += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top