Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for lastNameOffset (0.07 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

            int lastNameBufferIndex = bufferIndex + this.lastNameOffset;
    
            final FileBothDirectoryInfo[] results = new FileBothDirectoryInfo[getNumEntries()];
            for (int i = 0; i < getNumEntries(); i++) {
                results[i] = e = new FileBothDirectoryInfo(getConfig(), isUseUnicode());
    
                e.decode(buffer, bufferIndex, len);
    
                /*
                 * lastNameOffset ends up pointing to either to
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                e.filename = readString(buffer, bufferIndex + 94, e.fileNameLength);
    
                /* lastNameOffset ends up pointing to either to
                 * the exact location of the filename(e.g. Win98)
                 * or to the start of the entry containing the
                 * filename(e.g. NT). Ahhrg! In either case the
                 * lastNameOffset falls between the start of the
                 * entry and the next entry.
                 */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            assertEquals(4, response.lastNameOffset);
        }
    
        @Test
        void testReadDataWireFormat() {
            response.numEntries = 1;
            response.lastNameOffset = 94; // Pointing to the start of the filename
            response.useUnicode = false; // Use OEM for simplicity
    
            byte[] buffer = new byte[120];
            int bufferIndex = 0;
    
            // Entry 1
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            buffer[4] = 0x01; // end of search = true
            buffer[5] = 0x00;
            // eaErrorOffset (2 bytes)
            buffer[6] = 0x00;
            buffer[7] = 0x00;
            // lastNameOffset (2 bytes)
            buffer[8] = 0x10;
            buffer[9] = 0x00;
    
            int result = response.readParametersWireFormat(buffer, 0, 10);
    
            // Should read 10 bytes
            assertEquals(10, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top