Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,386 for Byte (0.01 sec)

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

        void testReadParametersWireFormatIgnoresMiddleBytes() {
            // Arrange
            byte[] buffer = new byte[10];
            SMBUtil.writeInt2(200, buffer, 0);
            // These bytes should be ignored
            buffer[2] = (byte) 0xFF;
            buffer[3] = (byte) 0xFF;
            SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_LISTENING, buffer, 4);
    
            // Act
    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/trans2/Trans2SetFileInformationTest.java

            when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO);
            when(mockFileInfo.encode(any(byte[].class), anyInt())).thenReturn(50);
    
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            byte[] setupBuffer = new byte[256];
            byte[] paramBuffer = new byte[256];
            byte[] dataBuffer = new byte[256];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/persistent/DurableHandleContextTest.java

            assertEquals(60000, request.getTimeoutMs());
            assertFalse(request.isPersistent());
        }
    
        @Test
        public void testDurableHandleReconnect() {
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) (i + 1);
            }
    
            DurableHandleReconnect reconnect = new DurableHandleReconnect(fileId);
    
            assertEquals("DHnC", new String(reconnect.getName()));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformationResponse.java

        @Override
        int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int writeDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        public static final byte TRANS2_SET_FILE_INFORMATION = (byte) 0x08;
    
        /**
         * Network share enumeration subcommand
         */
        public static final byte NET_SHARE_ENUM = (byte) 0x00;
        /**
         * Network server enumeration subcommand version 2
         */
        public static final byte NET_SERVER_ENUM2 = (byte) 0x68;
        /**
         * Network server enumeration subcommand version 3
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        void testSetFileId() {
            request = new Smb2QueryDirectoryRequest(mockConfig);
            byte[] fileId = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId[i] = (byte) (i + 1);
            }
    
            request.setFileId(fileId);
    
            // Verify by writing to buffer and checking the fileId position
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, Smb2Constants.SMB2_HEADER_LENGTH);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

         */
        public void setContext(final byte[] context) {
            this.context = context;
        }
    
        @Override
        public byte[] toByteArray() {
            try {
                final String targetName = getTarget();
                final byte[] challenge = getChallenge();
                byte[] context = getContext();
                final byte[] targetInformation = getTargetInformation();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                assertEquals((byte) 0xFE, buffer[0]);
                assertEquals((byte) 'S', buffer[1]);
                assertEquals((byte) 'M', buffer[2]);
                assertEquals((byte) 'B', buffer[3]);
            }
    
            @Test
            @DisplayName("Should encode with signature when digest is set")
            void testEncodeWithSignature() {
                byte[] buffer = new byte[1024];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                byte[] testContext =
                        new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 };
                message.setContext(testContext);
                byte[] testTargetInfo = new byte[] { 0x10, 0x20, 0x30 };
                message.setTargetInformation(testTargetInfo);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            int offset = 10;
            byte[] buffer = new byte[34]; // 10 offset + 16 header + 8 data
            int bufferIndex = offset;
    
            // Set up test values
            int namedPipeState = 0x02;
            int readDataAvailable = 256;
            int numberOfMessages = 5;
            int messageLength = 128;
            byte[] testData = { (byte) 0xFF, (byte) 0xEE, (byte) 0xDD, (byte) 0xCC, (byte) 0xBB, (byte) 0xAA, (byte) 0x99, (byte) 0x88 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top