- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for bufferSize (0.04 sec)
-
src/test/java/jcifs/BufferCacheTest.java
private final List<byte[]> cache; private final int bufferSize; private final int maxBuffers; public TestBufferCacheImpl(int maxBuffers, int bufferSize) { this.maxBuffers = maxBuffers; this.bufferSize = bufferSize; this.cache = new ArrayList<>(maxBuffers); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
T[] castBuffer = (T[]) buffer; sort(castBuffer, 0, bufferSize, comparator); if (bufferSize > k) { Arrays.fill(buffer, k, buffer.length, null); bufferSize = k; threshold = buffer[k - 1]; } // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null) T[] topK = Arrays.copyOf(castBuffer, bufferSize); // we have to support null elements, so no ImmutableList for us
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
// Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); int[] bufferSizes = { 0, 10, 50, 100, 1024 }; for (int bufferSize : bufferSizes) { byte[] dst = new byte[bufferSize]; // When int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
@DisplayName("Should handle various buffer configurations") void testVariousBufferConfigurations(int bufferSize, int offset, int length) { byte[] buffer = new byte[bufferSize]; FileFsSizeInformation info = new FileFsSizeInformation(); if (offset + length <= bufferSize && length >= 24) { assertDoesNotThrow(() -> { info.decode(buffer, offset, length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/InputStreamThread.java
*/ public InputStreamThread(final InputStream is, final Charset charset, final int bufferSize, final Consumer<String> outputCallback) { super("InputStreamThread"); this.bufferSize = bufferSize; this.outputCallback = outputCallback; br = new BufferedReader(new InputStreamReader(is, charset)); } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/BufferCacheImpl.java
/** * Cache for reusable byte buffers * * * <p>This class is intended for internal use.</p> */ public class BufferCacheImpl implements BufferCache { private final Object[] cache; private final int bufferSize; private int freeBuffers = 0; /** * Constructs a buffer cache using configuration settings. * * @param cfg the configuration to use for buffer cache settings */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
return buf; } // Validate buffer size to prevent overflow int bufferSize = SmbComTransaction.TRANSACTION_BUF_SIZE; if (bufferSize < 0 || bufferSize > MAX_BUFFER_SIZE) { throw new IllegalStateException("Invalid buffer size: " + bufferSize); } return new byte[bufferSize]; } static void getBuffers(final SmbComTransaction req, final SmbComTransactionResponse rsp) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/JobProcess.java
* * @param process the system process to wrap * @param bufferSize the buffer size for reading process output * @param outputCallback the callback function to handle process output lines */ public JobProcess(final Process process, final int bufferSize, final Consumer<String> outputCallback) { this.process = process;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/pac/Pac.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0)