Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Pad (0.15 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                    pad = parameterOffset % PADDING_SIZE;
                    pad = pad == 0 ? 0 : PADDING_SIZE - pad;
                    parameterOffset += pad;
                }
    
                // caclulate parameterDisplacement before calculating new parameterCount
                parameterDisplacement += parameterCount;
    
                int available = maxBufferSize - parameterOffset - pad;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            this.pad = this.pad1 = 0;
            if (this.parameterCount > 0) {
                bufferIndex += this.pad = this.parameterOffset - (bufferIndex - this.headerStart);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    off += 27;
                    resp.decode(BUF, 4);
                    /* EMC can send pad w/o data */
                    final int pad = r.dataOffset - off;
                    if (r.byteCount > 0 && pad > 0 && pad < 4) {
                        readn(in, BUF, 4 + off, pad);
                    }
    
                    if (r.dataLength > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    	if tw.err != nil {
    		return tw.err
    	}
    	if nb := tw.curr.logicalRemaining(); nb > 0 {
    		return fmt.Errorf("archive/tar: missed writing %d bytes", nb)
    	}
    	if _, tw.err = tw.w.Write(zeroBlock[:tw.pad]); tw.err != nil {
    		return tw.err
    	}
    	tw.pad = 0
    	return nil
    }
    
    // WriteHeader writes hdr and prepares to accept the file's contents.
    // The Header.Size determines how many bytes can be written for the next file.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                if (this.getCommand() == SMB_COM_TRANSACTION && !isResponse()) {
                    this.parameterOffset += stringWireLength(this.name, this.parameterOffset);
                }
    
                this.pad1 = pad(this.parameterOffset);
                this.parameterOffset += this.pad1;
    
                this.totalParameterCount = writeParametersWireFormat(this.txn_buf, this.bufParameterOffset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    SMBUtil.writeInt4(len, dst, dataLengthOffset);
                    dstIndex += len;
    
                    final int pad = pad8(dstIndex);
                    totalCreateContextLength += len + pad;
                    dstIndex += pad;
                    lastStart = structStart;
                }
            }
            SMBUtil.writeInt4(totalCreateContextLength, dst, createContextLengthOffset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  8. src/main/resources/fess_label_nl.properties

    labels.file_crawling_configuration=Bestandscrawlen
    labels.file_crawling_title_details=Bestandscrawlconfiguratie
    labels.included_paths=Pad(en) om op te nemen in crawlen
    labels.excluded_paths=Pad(en) om uit te sluiten van crawlen
    labels.included_doc_paths=Pad(en) om op te nemen in zoeken
    labels.excluded_doc_paths=Pad(en) om uit te sluiten van zoeken
    labels.config_parameter=Configuratieparameter
    labels.max_access_count=Maximaal aantal toegangspogingen
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 04:56:21 UTC 2025
    - 42.8K bytes
    - Viewed (1)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            buffer.putInt(entry1AlignedSize); // nextEntryOffset
            buffer.putInt(FileNotifyInformation.FILE_ACTION_ADDED);
            buffer.putInt(fileNameBytes1.length);
            buffer.put(fileNameBytes1);
    
            // Pad to aligned size
            while (buffer.position() < entry1AlignedSize) {
                buffer.put((byte) 0);
            }
    
            // Second notification
            buffer.putInt(entry2AlignedSize); // nextEntryOffset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    		// Discard the remainder of the file and any padding.
    		if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil {
    			return nil, err
    		}
    		if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil {
    			return nil, err
    		}
    		tr.pad = 0
    
    		hdr, rawHdr, err := tr.readHeader()
    		if err != nil {
    			return nil, err
    		}
    		if err := tr.handleRegularFile(hdr); err != nil {
    			return nil, err
    		}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top