Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getByteCount (0.05 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                SMBUtil.writeInt2(20, buffer, SmbConstants.SMB1_HEADER_LENGTH + 11);
    
                int length = customBlock.decode(buffer, 0);
    
                assertTrue(length > 0);
                assertEquals(20, customBlock.getByteCount());
            }
    
            @Test
            @DisplayName("Test write string with odd Unicode alignment")
            void testWriteStringUnicodeAlignment() {
                testBlock.setUseUnicode(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            this.command = (byte) command;
        }
    
        /**
         * Gets the byte count of this message block
         * @return the byteCount
         */
        public final int getByteCount() {
            return this.byteCount;
        }
    
        /**
         * Gets the total length of this message block
         * @return the length
         */
        public final int getLength() {
            return this.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

                    off += 27;
                    resp.decode(buffer, 4);
                    /* EMC can send pad w/o data */
                    final int pad = r.getDataOffset() - off;
                    if (r.getByteCount() > 0 && pad > 0 && pad < 4) {
                        readn(this.in, buffer, 4 + off, pad);
                    }
    
                    if (r.getDataLength() > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top