Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 390 for DST (0.01 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                dstIndex += 2;
                dst[dstIndex] = maxSetupCount;
                dstIndex++;
                dst[dstIndex++] = (byte) 0x00; // Reserved1
                writeInt2(flags, dst, dstIndex);
                dstIndex += 2;
                writeInt4(timeout, dst, dstIndex);
                dstIndex += 4;
                dst[dstIndex++] = (byte) 0x00; // Reserved2
                dst[dstIndex++] = (byte) 0x00;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            dst[dstIndex] = (byte) (val >> 8 & 0xFF);
            dstIndex++;
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static void writeInt4(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 24 & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
            dst[dstIndex++] = (byte) (val >> 8 & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServicePacket.java

            dst[dstIndex] = (byte) (val >> 8 & 0xFF);
            dstIndex++;
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static void writeInt4(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 24 & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (val >> 16 & 0xFF);
            dst[dstIndex++] = (byte) (val >> 8 & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/Encdec.java

         * @param i the integer value to encode
         * @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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0xFFFF, 0xFFFFFFFF);
            byte[] dst = new byte[8];
    
            int bytesWritten = querySecurityDesc.writeParametersWireFormat(dst, 0);
    
            assertEquals(8, bytesWritten);
            assertEquals(0xFFFF, SMBUtil.readInt2(dst, 0));
            assertEquals(0xFFFFFFFF, SMBUtil.readInt4(dst, 4));
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat returns zero")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            // Given
            byte[] dst = new byte[100];
            smbComRename = new SmbComRename(config, "", "");
            int dstIndex = 0;
    
            // When
            int result = smbComRename.writeBytesWireFormat(dst, dstIndex);
    
            // Then
            assertTrue(result > 0);
            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
            assertEquals((byte) 0x00, dst[1]); // Null terminator for empty old file name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComFindClose2.java

            this.sid = sid;
            command = SMB_COM_FIND_CLOSE2;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            writeInt2(sid, dst, dstIndex);
            return 2;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/EncodableTest.java

            Encodable enc = new ByteEncodable(src, 5, 0); // zero length
            byte[] dst = new byte[8];
            Arrays.fill(dst, (byte) 0x7A);
    
            int written = enc.encode(dst, 3);
    
            assertEquals(0, enc.size(), "size() must be zero");
            assertEquals(0, written, "encode() must return zero for zero length");
            for (byte b : dst) {
                assertEquals((byte) 0x7A, b, "Destination should remain unchanged");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top