Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for pad8 (0.03 seconds)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

                    new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, token);
    
            // Use reflection to access pad8 method
            Method pad8Method = ServerMessageBlock2.class.getDeclaredMethod("pad8", int.class);
            pad8Method.setAccessible(true);
    
            // Test various positions
            int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    dstIndex += cnBytes.length;
                    dstIndex += pad8(dstIndex);
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, dataOffsetOffset);
                    final int len = createContext.encode(dst, dstIndex);
                    SMBUtil.writeInt4(len, dst, dataLengthOffset);
                    dstIndex += len;
    
                    final int pad = pad8(dstIndex);
                    totalCreateContextLength += len + pad;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 22.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            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) {
                final int nextStart = dstIndex;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                System.arraycopy(buffer, hdrStart + securityBufferOffset, this.securityBuffer, 0, securityBufferLength);
                bufferIndex += securityBufferLength;
            }
    
            final int pad = (bufferIndex - hdrStart) % 8;
            bufferIndex += pad;
    
            if (this.dialectRevision == 0x0311 && negotiateContextOffset != 0 && negotiateContextCount != 0) {
                // Validate negotiate context offset
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                    this.pad1 = this.pad(this.parameterOffset);
                    this.parameterOffset += this.pad1;
                }
    
                // caclulate parameterDisplacement before calculating new parameterCount
                this.parameterDisplacement += this.parameterCount;
    
                int available = this.maxBufferSize - this.parameterOffset - this.pad1;
    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)
  6. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                available -= parameterCount;
    
                dataOffset = parameterOffset + parameterCount;
                pad1 = dataOffset % PADDING_SIZE;
                pad1 = pad1 == 0 ? 0 : PADDING_SIZE - pad1;
                dataOffset += pad1;
    
                dataDisplacement += dataCount;
    
                available -= pad1;
                dataCount = Math.min(totalDataCount - dataDisplacement, available);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

                    + this.parameterDisplacement + ",dataCount=" + this.dataCount + ",dataOffset=" + this.dataOffset + ",dataDisplacement="
                    + this.dataDisplacement + ",setupCount=" + this.setupCount + ",pad=" + this.pad + ",pad1=" + this.pad1);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

        @Test
        @DisplayName("Test pad calculation with various offsets")
        void testPadCalculation() {
            // Test pad calculation with different alignment values
            assertEquals(0, transaction.pad(0)); // Already aligned
            assertEquals(0, transaction.pad(4)); // Already aligned
            assertEquals(0, transaction.pad(8)); // Already aligned
            assertEquals(3, transaction.pad(1)); // Need 3 bytes to align to 4
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

                    }
                    String progress = " [" + number + '/' + totalProjects + ']';
    
                    int pad = lineLength - building.length() - progress.length();
    
                    infoMain(building + ((pad > 0) ? chars(' ', pad) : "") + progress);
                }
    
                // path to pom.xml
                File currentPom = project.getFile();
                if (currentPom != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                    }
                    String progress = " [" + number + '/' + totalProjects + ']';
    
                    int pad = lineLength - building.length() - progress.length();
    
                    infoMain(building + ((pad > 0) ? chars(' ', pad) : "") + progress);
                }
    
                // path to pom.xml
                File currentPom = project.getFile();
                if (currentPom != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 17.2K bytes
    - Click Count (0)
Back to Top