Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 178 for writeBytesWireFormat (0.09 sec)

  1. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java

            return size8(Smb2Constants.SMB2_HEADER_LENGTH + 32);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(32, dst, dstIndex);
            SMBUtil.writeInt2(this.notifyFlags, dst, dstIndex + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java

            return this.fileSize;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            if (this.wordCount == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComDeleteDirectory.java

        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x04;
            dstIndex++;
            dstIndex += writeString(this.path, dst, dstIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

            assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0));
        }
    
        @Test
        public void testWriteBytesWireFormat() {
            assertEquals(0, response.writeBytesWireFormat(new byte[0], 0));
        }
    
        @Test
        public void testReadBytesWireFormat() {
            assertEquals(0, response.readBytesWireFormat(new byte[0], 0));
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            request.encode(tempBuffer, 50);
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            // The writeBytesWireFormat writes the structure and calculates padding
            // Base structure: 24 bytes, then pad8 alignment, then token: 5 bytes
            // Total bytes written includes padding for 8-byte alignment
            int expectedBytesWritten = 35;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            expected[directoryName.length() + 1] = 0x00; // Null terminator
    
            byte[] dst = new byte[100];
            int bytesWritten = smbCom.writeBytesWireFormat(dst, 0);
    
            assertEquals(expected.length, bytesWritten, "Number of bytes written should match expected length.");
    
            byte[] actual = new byte[bytesWritten];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals(0, dst[3] & 0xFF);
            // Check offset
            assertEquals(0x78, dst[4] & 0xFF);
            assertEquals(0x56, dst[5] & 0xFF);
        }
    
        /**
         * Test writeBytesWireFormat writes data correctly
         */
        @Test
        public void testWriteBytesWireFormat() {
            // Arrange
            byte[] data = { 1, 2, 3, 4, 5 };
            SmbComWrite write = new SmbComWrite();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(33, dst, dstIndex);
            dst[dstIndex + 2] = this.infoType;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

        }
    
        @Override
        public int size() {
            return size8(Smb2Constants.SMB2_HEADER_LENGTH + STRUCTURE_SIZE);
        }
    
        @Override
        protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
            int start = dstIndex;
    
            // StructureSize (2 bytes) - must be 36
            SMBUtil.writeInt2(STRUCTURE_SIZE, dst, dstIndex);
            dstIndex += 2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top