Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for writeHeaderWireFormat (0.13 sec)

  1. src/main/java/jcifs/netbios/SessionServicePacket.java

         * @return written bytes
         */
        public int writeWireFormat(final byte[] dst, final int dstIndex) {
            this.length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH);
            writeHeaderWireFormat(dst, dstIndex);
            return HEADER_LENGTH + this.length;
        }
    
        int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

         * @return the number of bytes written
         */
        public int writeWireFormat(final byte[] dst, final int dstIndex) {
            length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH);
            writeHeaderWireFormat(dst, dstIndex);
            return HEADER_LENGTH + length;
        }
    
        int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            assertEquals(10, packet.length);
        }
    
        @Test
        @DisplayName("writeHeaderWireFormat should write correct header")
        void testWriteHeaderWireFormat() {
            packet.type = SessionServicePacket.SESSION_REQUEST;
            packet.length = 0x1234;
    
            byte[] dst = new byte[10];
            int written = packet.writeHeaderWireFormat(dst, 0);
    
            assertEquals(4, written);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServicePacket.java

            this.questionCount = 1;
            this.questionClass = IN;
        }
    
        int writeWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            isBroadcast = true;
            questionCount = 1;
            questionClass = IN;
        }
    
        int writeWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

         * all but the first smb of the chaain do not have a header
         * and therefore we do not want to writeHeaderWireFormat. We
         * just recursivly call writeAndXWireFormat.
         */
    
        @Override
        int encode(final byte[] dst, int dstIndex) {
            final int start = headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeAndXWireFormat(dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                return testResponse;
            }
    
            @Override
            public int size() {
                return testSize;
            }
    
            @Override
            protected int writeHeaderWireFormat(byte[] dst, int dstIndex) {
                return 64; // Simulate header writing
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         * and therefore we do not want to writeHeaderWireFormat. We
         * just recursivly call writeAndXWireFormat.
         */
    
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = this.headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeAndXWireFormat(dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                }
            }
            return len;
        }
    
        int encode(final byte[] dst, int dstIndex) {
            final int start = headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            wordCount = writeParameterWordsWireFormat(dst, dstIndex + 1);
            dst[dstIndex] = (byte) (wordCount / 2 & 0xFF);
            dstIndex++;
            dstIndex += wordCount;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            smb.flags = (byte) 0x18;
            smb.flags2 = 0x0001;
            smb.tid = 1;
            smb.pid = 2;
            smb.uid = 3;
            smb.mid = 4;
    
            smb.writeHeaderWireFormat(buffer, 0);
    
            TestServerMessageBlock readSmb = new TestServerMessageBlock();
            readSmb.readHeaderWireFormat(buffer, 0);
    
            assertEquals(smb.command, readSmb.command);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top