- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 84 for ByteBuffer (0.27 seconds)
-
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
void testDecodeNoReferrals() { // Prepare test data: pathConsumed=0, numReferrals=0, tflags=0 byte[] testBuffer = new byte[8]; ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 0); // pathConsumed (will be divided by 2) bb.putShort((short) 0); // numReferrals bb.putShort((short) 0); // tflags
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/nio/ChannelUtil.java
} /** * Returns a {@link ByteBuffer} that maps the file channel to memory. * * @param channel * The file channel. Must not be {@literal null}. * @param mode * The mode. Must not be {@literal null}. * @return A {@link ByteBuffer} that maps the file channel to memory. */ public static ByteBuffer map(final FileChannel channel, final MapMode mode) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.6K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
@Override public HashCode hashBytes(ByteBuffer input) { return newHasher(input.remaining()).putBytes(input).hash(); } /** In-memory ByteBuffer-based implementation of {@link Hasher}. */ private final class ByteBufferHasher extends AbstractHasher { ByteBuffer buffer; ByteBufferHasher(int expectedInputSize) { this.buffer = ByteBuffer.allocate(expectedInputSize).order(ByteOrder.LITTLE_ENDIAN); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 04 15:39:10 GMT 2025 - 4.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal.smb2.rdma; import java.nio.ByteBuffer; import java.util.EnumSet; /** * Abstract base class for RDMA memory regions. * * Represents a registered memory region that can be used for * RDMA operations. The memory region contains a buffer, access
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/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException { // Given - prepare buffer with typical file system values ByteBuffer buffer = ByteBuffer.allocate(24); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(1048576L); // Total allocation units (1M) buffer.putLong(524288L); // Free allocation units (512K)
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.9K bytes - Click Count (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
} else { region.close(); totalReleased.incrementAndGet(); } } public ByteBuffer allocateBuffer(int size) { return ByteBuffer.allocateDirect(size); } public void releaseBuffer(ByteBuffer buffer) { // For direct buffers, we rely on GC // Could implement a more sophisticated buffer pool here }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 35.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException { // Given - prepare buffer with typical file system values ByteBuffer buffer = ByteBuffer.allocate(32); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(1048576L); // Total allocation units (1M) buffer.putLong(524288L); // Caller available allocation units (512K)
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 30.5K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
ByteBuffer scratch = scratch(); scratch.putInt(i); return update(scratch, Ints.BYTES); } @Override @CanIgnoreReturnValue public Hasher putLong(long l) { ByteBuffer scratch = scratch(); scratch.putLong(l); return update(scratch, Longs.BYTES); } @Override @CanIgnoreReturnValue public Hasher putChar(char c) { ByteBuffer scratch = scratch();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 12:40:17 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
testBuffer = new byte[512]; } // Version 3 Referral Tests @Test public void testDecodeVersion3WithoutNameList() { // Prepare test data ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); // Header bb.putShort((short) 3); // version bb.putShort((short) 100); // size (large enough for all strings)
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 22K bytes - Click Count (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
request.read(ByteBuffer.allocateDirect(4096 * 8)) } override fun onReadCompleted( request: UrlRequest, info: UrlResponseInfo, byteBuffer: ByteBuffer, ) { println("onReadCompleted ${info.headers.asMap}") byteBuffer.flip() buffer.write(byteBuffer)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.3K bytes - Click Count (0)