- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,063 for buffer3 (0.04 seconds)
-
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
new TestNetbiosName("WORKSTATION1", 0x00, "CORP.LOCAL")); // Write to buffer byte[] buffer = new byte[512]; int written = originalPacket.writeWireFormat(buffer, 0); // Read from buffer ByteArrayInputStream bais = new ByteArrayInputStream(buffer); SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
*/ @Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; // Read total allocation units. this.alloc = SMBUtil.readInt8(buffer, bufferIndex); bufferIndex += 8; // read caller available allocation units this.free = SMBUtil.readInt8(buffer, bufferIndex); bufferIndex += 8;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.1K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Apr 03 11:23:19 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
// Given byte[] buffer = new byte[256]; int offset = 10; int size = 100; when(response.verifySignature(buffer, offset, size)).thenReturn(true); // When boolean verified = response.verifySignature(buffer, offset, size); // Then assertTrue(verified); verify(response).verifySignature(buffer, offset, size); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.3K bytes - Click Count (0) -
internal/bpool/bpool.go
select { case b = <-bp.c: // reuse existing buffer default: // create new aligned buffer b = reedsolomon.AllocAligned(1, bp.wcap)[0][:bp.w] } return b } // Put returns the given Buffer to the BytePool. func (bp *BytePoolCap) Put(b []byte) { if bp == nil { return } if cap(b) != bp.wcap { // someone tried to put back buffer which is not part of this buffer poolCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
void testWriteReadSymmetry(int value, boolean isInt2) { byte[] buffer = new byte[10]; if (isInt2) { SessionServicePacket.writeInt2(value, buffer, 0); int result = SessionServicePacket.readInt2(buffer, 0); assertEquals(value & 0xFFFF, result); } else { SessionServicePacket.writeInt4(value, buffer, 0); int result = SessionServicePacket.readInt4(buffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComOpenAndXResponse.java
int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex; fid = readInt2(buffer, bufferIndex); bufferIndex += 2; fileAttributes = readInt2(buffer, bufferIndex); bufferIndex += 2; lastWriteTime = readUTime(buffer, bufferIndex); bufferIndex += 4; dataSize = readInt4(buffer, bufferIndex); bufferIndex += 4;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.7K bytes - Click Count (0) -
cmd/erasure-object.go
buffer = make([]byte, size, 2*size+int64(fi.Erasure.ParityBlocks+fi.Erasure.DataBlocks-1)) } if len(buffer) > int(fi.Erasure.BlockSize) { buffer = buffer[:fi.Erasure.BlockSize] } writers := make([]io.Writer, len(onlineDisks)) inlineBuffers := make([]*bytes.Buffer, len(onlineDisks)) for i, disk := range onlineDisks { if disk == nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:31 GMT 2025 - 80.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Queues.java
*/ @CanIgnoreReturnValue @J2ktIncompatible @GwtIncompatible // BlockingQueue public static <E> int drain( BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout) throws InterruptedException { return drain(q, buffer, numElements, toNanosSaturated(timeout), NANOSECONDS); } /** * Drains the queue as {@link BlockingQueue#drainTo(Collection, int)}, but if the requested {@code
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 18K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
@Test void testReadSetupWireFormat() { // Given Trans2QueryPathInformation trans = new Trans2QueryPathInformation("anyfile.txt", 0); byte[] buffer = new byte[10]; // When int bytesRead = trans.readSetupWireFormat(buffer, 0, 10); // Then assertEquals(0, bytesRead, "Should read 0 bytes."); } /** * Tests the readParametersWireFormat method.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0)