- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 966 for buffer2 (0.06 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
byte[] buffer = new byte[512]; // Fill buffer with non-zero values to ensure padding writes zeros for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) 0xFF; } int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should report 26 bytes written (20 from encode + 6 increment)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); // Create a buffer large enough to hold the read bytes byte[] buffer = new byte[6]; int bytesRead = packet.readTrailerWireFormat(bais, buffer, 0); // Verify that 6 bytes were read, which is the expected length. assertEquals(6, bytesRead); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt
import okhttp3.internal.http2.Header import okhttp3.internal.http2.Http2Connection import okhttp3.internal.http2.Http2Stream import okhttp3.internal.platform.Platform import okhttp3.tls.internal.TlsUtil.localhost import okio.buffer import okio.source /** A basic HTTP/2 server that serves the contents of a local directory. */ class Http2Server( private val baseDirectory: File, private val sslSocketFactory: SSLSocketFactory,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
@DisplayName("Should encode lease key to buffer") void testEncode() { byte[] testBytes = new byte[] { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF, 0x00 }; Smb2LeaseKey key = new Smb2LeaseKey(testBytes); byte[] buffer = new byte[20]; key.encode(buffer, 2);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaProvider.java
/** * Register memory region for RDMA operations * * @param buffer memory buffer to register * @param access access permissions for the memory region * @return registered memory region * @throws IOException if memory registration fails */ RdmaMemoryRegion registerMemory(ByteBuffer buffer, EnumSet<RdmaAccess> access) throws IOException; /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
// Verify output buffer length assertEquals(0x8000, SMBUtil.readInt4(buffer, 68)); // Verify input buffer offset (should be 0 when no input buffer) assertEquals(0, SMBUtil.readInt2(buffer, 72)); // Verify input buffer length (should be 0 when no input buffer) assertEquals(0, SMBUtil.readInt4(buffer, 76)); // Verify additional informationRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
void testWireFormatStructure() { byte[] buffer = new byte[256]; Arrays.fill(buffer, (byte) 0xCC); // Fill with pattern to detect unwritten areas int written = request.writeBytesWireFormat(buffer, 0); // Verify structure according to SMB2 FLUSH specification // Structure Size (2 bytes) - should be 24 assertEquals(24, SMBUtil.readInt2(buffer, 0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java
e.name = readString(buffer, bufferIndex, 16, false); bufferIndex += 16; e.versionMajor = buffer[bufferIndex] & 0xFF; bufferIndex++; e.versionMinor = buffer[bufferIndex++] & 0xFF; e.type = readInt4(buffer, bufferIndex); bufferIndex += 4; int off = readInt4(buffer, bufferIndex); bufferIndex += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java
public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; this.capabilities = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; System.arraycopy(buffer, bufferIndex, this.serverGuid, 0, 16); bufferIndex += 16; this.securityMode = SMBUtil.readInt2(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java
this.maxDataCount = maxDataCount; } /** * Sets the transaction buffer * @param buffer * the transaction buffer to use */ public void setBuffer(final byte[] buffer) { this.txn_buf = buffer; } /** * Releases and returns the transaction buffer * @return the txn_buf */ public byte[] releaseBuffer() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.3K bytes - Viewed (0)