Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for writeTrailerWireFormat (0.07 sec)

  1. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            byte[] dst = new byte[256];
            int bytesWritten = packet.writeTrailerWireFormat(dst, 0);
    
            assertTrue(bytesWritten > 0);
            // Each name should write at least 34 bytes (encoded name + scope)
            assertTrue(bytesWritten >= 68);
        }
    
        @Test
        @DisplayName("writeTrailerWireFormat with scope should handle scoped names")
        void testWriteTrailerWireFormatWithScope() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/SessionServicePacket.java

         * @param dstIndex the starting index in the destination array
         * @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;
        }
    
    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/SessionRetargetResponsePacketTest.java

        }
    
        @Test
        void writeTrailerWireFormatShouldReturnZero() {
            // Test that writeTrailerWireFormat always returns 0, as per its implementation.
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
            assertEquals(0, packet.writeTrailerWireFormat(new byte[0], 0));
        }
    
        @Test
        void readTrailerWireFormatShouldReadSixBytesSuccessfully() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

         * @param dstIndex the starting index in the destination array
         * @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;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java

    class SessionRetargetResponsePacket extends SessionServicePacket {
    
        SessionRetargetResponsePacket() {
            this.type = SESSION_RETARGET_RESPONSE;
            this.length = 6;
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/SessionRetargetResponsePacket.java

        private NbtAddress retargetAddress;
    
        SessionRetargetResponsePacket() {
            type = SESSION_RETARGET_RESPONSE;
            length = 6;
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/SessionRequestPacket.java

            this.type = SESSION_REQUEST;
            this.calledName = new Name(config, calledName);
            this.callingName = new Name(config, callingName);
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += this.calledName.writeWireFormat(dst, dstIndex);
            dstIndex += this.callingName.writeWireFormat(dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java

            type = SESSION_REQUEST;
            this.calledName = calledName;
            this.callingName = callingName;
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += calledName.writeWireFormat(dst, dstIndex);
            dstIndex += callingName.writeWireFormat(dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            int trailerLength = 10; // Default trailer length for testing
            int trailerBytesRead = 0;
    
            @Override
            int writeTrailerWireFormat(byte[] dst, int dstIndex) {
                // Simple mock implementation
                for (int i = 0; i < trailerLength && dstIndex + i < dst.length; i++) {
                    dst[dstIndex + i] = (byte) i;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top