Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 382 for DST (0.02 sec)

  1. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            byte[] dst = new byte[100];
    
            int result = netShareEnum.writeSetupWireFormat(dst, 0);
            assertEquals(0, result);
    
            // Test with different offset
            result = netShareEnum.writeSetupWireFormat(dst, 50);
            assertEquals(0, result);
    
            // Verify no data was written
            assertArrayEquals(new byte[100], dst);
        }
    
        @Test
    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/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java

            byte[] dst = new byte[10];
            int dstIndex = 0;
    
            // Act
            int bytesWritten = transWaitNamedPipe.writeSetupWireFormat(dst, dstIndex);
    
            // Assert
            assertEquals(4, bytesWritten);
            assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0]);
            assertEquals((byte) 0x00, dst[1]);
            assertEquals((byte) 0x00, dst[2]); // no FID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte) 0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte) 0x00;
                //            dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
                //            dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[start + ANDX_OFFSET_OFFSET] = (byte) 0xde;
                dst[start + ANDX_OFFSET_OFFSET + 1] = (byte) 0xde;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponse.java

        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

            assertTrue(result.contains("dataOffset=54"));
        }
    
        // Helper method to write a 2-byte integer to a byte array
        private void writeInt2(int val, byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dst[dstIndex + 1] = (byte) (val >> 8);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            // Create buffer for encoding - initially allocate some space
            byte[] encodeBuffer = new byte[1024];
            NdrBuffer dst = new NdrBuffer(encodeBuffer, 0);
            info1.encode(dst);
    
            ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
            // Use the encoded buffer for decoding
            NdrBuffer src = new NdrBuffer(encodeBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

            dstIndex += 4;
            if (this.blob != null) {
                SMBUtil.writeInt2(this.blob.length, dst, dstIndex);
            } else {
                SMBUtil.writeInt2(this.lmHash.length, dst, dstIndex);
                dstIndex += 2;
                SMBUtil.writeInt2(this.ntHash.length, dst, dstIndex);
            }
            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

                dst[dstIndex++] = (byte) 0xFF;
            }
            writeInt2(writeMode, dst, dstIndex);
            dstIndex += 2;
            writeInt2(remaining, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            writeInt2(dataLength, dst, dstIndex);
            dstIndex += 2;
            writeInt2(dataOffset, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            byte[] dst = new byte[10];
    
            // Act
            int bytesWritten = write.writeBytesWireFormat(dst, 0);
    
            // Assert
            assertEquals(6, bytesWritten, "Should write 6 bytes (1 type + 2 length + 3 data)");
            assertEquals(0x01, dst[0], "Data block type");
            assertEquals(3, dst[1] & 0xFF, "Data length low byte");
            assertEquals(0, dst[2] & 0xFF, "Data length high byte");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top