- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for getBuffer (0.18 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb/BufferCacheImplTest.java
verify(cfg, times(1)).getMaximumBufferSize(); verifyNoMoreInteractions(cfg); // When cache is empty, getBuffer allocates a new buffer with configured size byte[] buf = impl.getBuffer(); assertNotNull(buf, "getBuffer should never return null"); assertEquals(5, buf.length, "Newly allocated buffer length should match config maximum size"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.5K bytes - Click Count (0) -
src/test/java/jcifs/BufferCacheTest.java
cache.getBuffer(); cache.releaseBuffer(new byte[1024]); }, "All BufferCache interface methods should be callable"); } @Test @DisplayName("getBuffer should return non-null byte array") void testGetBufferContract() { // Given byte[] expectedBuffer = new byte[1024]; when(mockBufferCache.getBuffer()).thenReturn(expectedBuffer);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/BufferCache.java
} return new byte[bufferSize]; } static void getBuffers(final SmbComTransaction req, final SmbComTransactionResponse rsp) { req.txn_buf = getBuffer(); rsp.txn_buf = getBuffer(); } /** * Returns a buffer to the cache for reuse. * * Performance: O(1) operation with size limit check *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/jcifs/BufferCache.java
*/ public interface BufferCache { /** * Gets a buffer from the cache or creates a new one if the cache is empty. * * @return a buffer from the cache, or a new one */ byte[] getBuffer(); /** * Return a buffer to the cache * * @param buf the buffer to return to the cache for reuse */ void releaseBuffer(byte[] buf);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java
} /** * Get the underlying buffer * * @return memory buffer * @throws IllegalStateException if memory region has been invalidated */ public ByteBuffer getBuffer() { if (!valid) { throw new IllegalStateException("Memory region invalidated"); } return buffer; } /** * Get local memory key *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 4.3K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
if (this.state == 0) { bind(); } final byte[] inB = this.transportContext.getBufferCache().getBuffer(); final byte[] out = this.transportContext.getBufferCache().getBuffer(); try { final NdrBuffer buf = encodeMessage(msg, out); final int off = sendFragments(msg, out, buf);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 15.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
resp.reset(); long k; /* * First request w/ interim response */ try { req.setBuffer(getContext().getBufferCache().getBuffer()); req.nextElement(); if (req.hasMoreElements()) { final SmbComBlankResponse interim = new SmbComBlankResponse(getContext().getConfig());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
private final FbosByteSource byteSource; private final State state; /** ByteArrayOutputStream that exposes its internals. */ private static final class MemoryOutput extends ByteArrayOutputStream { byte[] getBuffer() { return buf; } int getCount() { return count; } } /** Returns the file holding the data (possibly null). */ @VisibleForTesting @Nullable File getFile() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
public int getTailSpace() { return buf.length - index; } /** * Returns the underlying byte buffer. * * @return the byte buffer */ public byte[] getBuffer() { return buf; } /** * Aligns the buffer index to the specified boundary with a fill value. * * @param boundary the alignment boundary
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.4K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
public int getTailSpace() { return this.buf.length - this.index; } /** * Returns the underlying byte buffer. * * @return the byte buffer */ public byte[] getBuffer() { return this.buf; } /** * Aligns the buffer index to the specified boundary with a fill value. * * @param boundary the alignment boundary
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.7K bytes - Click Count (0)