Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 335 for dst2 (0.48 sec)

  1. src/main/java/jcifs/internal/smb2/lock/Smb2Lock.java

         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.offset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.length, dst, dstIndex);
            dstIndex += 8;
    
            SMBUtil.writeInt4(this.flags, dst, dstIndex);
            dstIndex += 4;
            dstIndex += 4; // Reserved
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            byte[] dst = new byte[100];
            int result = response.writeSetupWireFormat(dst, 10);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteParametersWireFormat() {
            // Test that writeParametersWireFormat returns 0
            byte[] dst = new byte[100];
            int result = response.writeParametersWireFormat(dst, 20);
            assertEquals(0, result);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                @Override
                int writeSetupWireFormat(byte[] dst, int dstIndex) {
                    return 0;
                }
    
                @Override
                int writeParametersWireFormat(byte[] dst, int dstIndex) {
                    return 0;
                }
    
                @Override
                int writeDataWireFormat(byte[] dst, int dstIndex) {
                    return 0;
                }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            expected[dirName.length() + 1] = 0x00; // null terminator
    
            byte[] dst = new byte[100];
            int len = sdd.writeBytesWireFormat(dst, 0);
    
            assertEquals(expected.length, len);
    
            byte[] result = new byte[len];
            System.arraycopy(dst, 0, result, 0, len);
            assertArrayEquals(expected, result);
        }
    
        /**
         * Test readParameterWordsWireFormat.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals((byte) NameServicePacket.IN, dst[5]); // recordClass low byte
            assertEquals(0x00, dst[6]); // ttl
            assertEquals(0x00, dst[7]);
            assertEquals(0x00, dst[8]);
            assertEquals(0x64, dst[9]);
            assertEquals((byte) 0x00, dst[10]); // rDataLength high byte
            assertEquals((byte) 0x00, dst[11]); // rDataLength low byte (0 because writeRDataWireFormat returns 0)
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComNtTransaction.java

        @Override
        int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (command != SMB_COM_NT_TRANSACT_SECONDARY) {
                dst[dstIndex++] = maxSetupCount;
            } else {
                dst[dstIndex++] = (byte) 0x00; // Reserved
            }
            dst[dstIndex] = (byte) 0x00; // Reserved
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00; // Reserved
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            byte[] dst = new byte[10];
            int dstIndex = 0;
    
            // Act
            int bytesWritten = trans.writeSetupWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(4, bytesWritten);
            assertEquals(SmbComTransaction.TRANS_TRANSACT_NAMED_PIPE, dst[0]);
            assertEquals(0x00, dst[1]);
    
            // Verify FID is written correctly (little-endian)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Encdec.java

         * @param dst the destination byte array
         * @param di the starting index in the destination array
         * @return the number of bytes written (4)
         */
        public static int enc_uint32be(final int i, final byte[] dst, int di) {
            dst[di] = (byte) (i >> 24 & 0xFF);
            di++;
            dst[di++] = (byte) (i >> 16 & 0xFF);
            dst[di++] = (byte) (i >> 8 & 0xFF);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

        }
    
        @Override
        int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = subCommand;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            return 2;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            writeInt2(fid, dst, dstIndex);
            dstIndex += 2;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferral.java

        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = this.getSubCommand();
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            return 2;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += this.request.encode(dst, dstIndex);
            return dstIndex - start;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top