- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,106 for Buffer (0.03 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
setPrivateField(cmd, "maxReferralLevel", 0x12AB); byte[] buffer = new byte[100]; int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) assertEquals(0xAB, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacConstants.java
/** * Buffer type for server checksum signature. */ int SERVER_CHECKSUM = 6; /** * Buffer type for privilege server (KDC) checksum signature. */ int PRIVSVR_CHECKSUM = 7; /** * Buffer type for client name information. */ int CLIENT_NAME_TYPE = 0xA; /** * Buffer type for constrained delegation information. */ int CONSTRAINT_DELEGATIION_TYPE = 0xB;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
if (buffer == null) { failedValidations.incrementAndGet(); throw new SmbException("Response buffer is null"); } if (buffer.length < expectedSize) { failedValidations.incrementAndGet(); bufferOverflowsPrevented.incrementAndGet(); log.warn("Response buffer too small: {} < {}", buffer.length, expectedSize);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
Object obj; } /** * The underlying byte buffer containing the NDR data. */ public byte[] buf; /** * The starting position in the buffer. */ public int start; /** * The current position in the buffer. */ public int index; /** * The length of data in the buffer. */ public int length; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/RelayTest.kt
Callable { val buffer = Buffer() while (source!!.read(buffer, 16384) != -1L) { } source.close() buffer.readByteString() } private fun assertFile( prefix: ByteString, upstreamSize: Long, metadataSize: Int, upstream: String?, metadata: ByteString?, ) { val source = file.source().buffer()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Prepare buffer with offset long expectedValue = 0xAAAABBBBCCCCDDDDL; byte[] buffer = new byte[20]; int offset = 7; SMBUtil.writeInt8(expectedValue, buffer, offset); // Decode from offset int bytesRead = fileInfo.decode(buffer, offset, buffer.length - offset); assertEquals(8, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
@DisplayName("Test decode method with valid buffer") void testDecodeWithValidBuffer() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[256]; int bufferIndex = 0; int expectedLength = 100; when(messageBlock.decode(buffer, bufferIndex)).thenReturn(expectedLength); // When int actualLength = messageBlock.decode(buffer, bufferIndex); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
when(mockSmbPipeHandleInternal.recv(buf, 0, buf.length)).thenAnswer(invocation -> { byte[] buffer = invocation.getArgument(0); buffer[0] = 5; // Valid PDU version buffer[1] = 0; // Valid PDU type Encdec.enc_uint16le((short) 50, buffer, 8); // Fragment length return 30; // Initial bytes received });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
// Given ByteBuffer buffer = ByteBuffer.allocate(32); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(Long.MAX_VALUE); buffer.putLong(Long.MAX_VALUE); buffer.putLong(Long.MAX_VALUE); buffer.putInt(Integer.MAX_VALUE); buffer.putInt(Integer.MAX_VALUE); byte[] bufferArray = buffer.array(); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0)