Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 178 for writeBytesWireFormat (0.33 seconds)

  1. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = this.headerStart = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
    
            this.byteCount = writeBytesWireFormat(dst, dstIndex);
            dstIndex += this.byteCount;
            dstIndex += pad8(dstIndex);
    
            this.length = dstIndex - start;
    
            int len = this.length;
    
            if (this.next != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            void testWriteBytesWireFormat() throws Exception {
                // Given
                byte[] buffer = new byte[100];
    
                // When
                int bytesWritten = (int) invokeMethod(response, "writeBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0);
    
                // Then
                assertEquals(0, bytesWritten, "Should write 0 bytes for response");
            }
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            this.wordCount += 4; // for command, reserved, and offset
            dstIndex += this.wordCount + 1;
            this.wordCount /= 2;
            dst[start] = (byte) (this.wordCount & 0xFF);
    
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex] = (byte) (this.byteCount & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF);
            dstIndex += this.byteCount;
    
            /*
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

            dstIndex += 4;
            dst[dstIndex++] = this.securityFlags;
    
            return dstIndex - start;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            int n = writeString(this.path, dst, dstIndex);
            SMBUtil.writeInt2(this.isUseUnicode() ? this.path.length() * 2 : n, dst, this.namelen_index);
            return n;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

                    assertEquals(c, buffer[pathStart + i * 2]);
                    assertEquals(0, buffer[pathStart + i * 2 + 1]);
                }
            }
        }
    
        @Test
        @DisplayName("Should test writeBytesWireFormat directly")
        void testWriteBytesWireFormatDirect() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
    
            // First encode to set headerStart
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                // Simple implementation for testing
                return 0;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
                // Simple implementation for testing
                return 0;
            }
        }
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

                paramWordsWritten = 10; // Simulate writing parameter words
                return paramWordsWritten;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
                bytesWritten = 20; // Simulate writing bytes
                return bytesWritten;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                dst[dstIndex++] = (byte) 0x00; // Reserved3
                dstIndex += writeSetupWireFormat(dst, dstIndex);
            }
    
            return dstIndex - start;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (this.getCommand() == SMB_COM_TRANSACTION && !isResponse()) {
                dstIndex += writeString(this.name, dst, dstIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            dst[dstIndex] = (byte) (this.wordCount / 2 & 0xFF);
            dstIndex++;
            dstIndex += this.wordCount;
            this.wordCount /= 2;
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex++] = (byte) (this.byteCount & 0xFF);
            dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF);
            dstIndex += this.byteCount;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10;
                return paramWordsWritten;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
                bytesWritten = 20;
                return bytesWritten;
            }
    
            @Override
            protected int readParameterWordsWireFormat(byte[] src, int srcIndex) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
Back to Top