- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 31 for setBuffer (0.07 seconds)
-
android/guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
OutputStream encodingStream = encoding.encoding.encodingStream(target); encodingStream.write(encodingInputs[i & INPUTS_MASK]); encodingStream.close(); tmp += target.getBuffer().length(); } return tmp; } @Benchmark public int decodingStream(int reps) throws IOException { int tmp = 0; byte[] target = new byte[n]; for (int i = 0; i < reps; i++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
alignmentBytes = 1; // Need 1 byte of padding for 2-byte alignment } // The value 0xCD should be encoded as a 16-bit value (0x00CD) in little-endian byte[] bufferData = buf.getBuffer(); assertEquals((byte) 0xCD, bufferData[startIndex + alignmentBytes], "Least significant byte should be first");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
// Test allocation performance long allocStart = System.nanoTime(); byte[] buffer = BufferCache.getBuffer(); long allocEnd = System.nanoTime(); totalAllocTime.addAndGet(allocEnd - allocStart); allocations.incrementAndGet();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.3K 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/internal/smb2/rdma/disni/DisniRdmaConnection.java
// In real implementation, this would receive using DiSNI: // RdmaCompletionEvent event = endpoint.getCqProcessor().getCqEvent(timeout); // if (event != null) { // return event.getBuffer(); // } // return null; // For skeleton implementation, return null (timeout) return null; } catch (Exception e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache); // Setup buffer cache to return buffers for sendrecv operations lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]); } /** * Helper method to create a DcerpcPipeHandle with injected mocks * Uses mock to avoid constructor issues while allowing real method calls */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K 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) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
@BeforeEach void setUp() { // Setup buffer cache mocks with lenient stubbing lenient().when(mockContext.getBufferCache()).thenReturn(mockBufferCache); lenient().when(mockBufferCache.getBuffer()).thenReturn(new byte[8192]); handle = new TestDcerpcHandle(mockContext, mockBinding); } @Nested @DisplayName("Binding Parsing Tests") class BindingParsingTests {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
void testGetTailSpace() { ndrBuffer.setIndex(100); assertEquals(buffer.length - 100, ndrBuffer.getTailSpace()); } @Test void testGetBuffer() { assertSame(buffer, ndrBuffer.getBuffer()); } @Test void testAlignWithValue() { // Align to 4-byte boundary with a fill value ndrBuffer.setIndex(1); int alignedBytes = ndrBuffer.align(4, (byte) 0xFF);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (0)