- Sort Score
- Result 10 results
- Languages All
Results 411 - 420 of 1,191 for differ (0.03 sec)
-
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
@Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; final int nciphers = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.ciphers = new int[nciphers]; for (int i = 0; i < nciphers; i++) { this.ciphers[i] = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt
assertOnFileDescriptor(content = "Hello") { fd -> val requestBody = fd.toRequestBody() val buffer = Buffer() requestBody.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo("Hello") assertThrows(IOException::class.java) { requestBody.writeTo(Buffer()) } } } @Test fun testFileDescriptorAfterClose() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (1) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java
/** * Constructs a SMB2 read response with the specified configuration and output buffer * * @param config * the configuration to use for this response * @param outputBuffer * the buffer to receive the read data * @param outputBufferOffset * the offset in the output buffer to start writing data */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
@Test void testNegativeValueHandling() { byte[] buffer = new byte[8]; // Test negative values in writeInt4 SMBUtil.writeInt4(-1L, buffer, 0); assertEquals(-1, SMBUtil.readInt4(buffer, 0)); // Test negative values in writeInt8 SMBUtil.writeInt8(-1L, buffer, 0); assertEquals(-1L, SMBUtil.readInt8(buffer, 0)); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
verify(mockNdrBuffer).enc_ndr_short((short) 6); verify(mockNdrBuffer).enc_ndr_referent(entry.name.buffer, 1); } @Test @DisplayName("Should encode entry with null buffer") void testEncodeNullBuffer() throws NdrException { // Given: SAM entry with null buffer samr.SamrSamEntry entry = new samr.SamrSamEntry(); entry.idx = 1;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
e.creationTime = readTime(buffer, bufferIndex + 8); // e.lastAccessTime = readTime( buffer, bufferIndex + 16 ); e.lastWriteTime = readTime(buffer, bufferIndex + 24); // e.changeTime = readTime( buffer, bufferIndex + 32 ); e.endOfFile = readInt8(buffer, bufferIndex + 40); // e.allocationSize = readInt8( buffer, bufferIndex + 48 );
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
} @Test @DisplayName("writeParametersWireFormat with mock request buffer") void testWriteParametersWireFormatWithMock() throws Exception { // Given String filename = "\\\\server\\share"; trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, filename); // Mock the request buffer DfsReferralRequestBuffer mockRequest = mock(DfsReferralRequestBuffer.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
writeLong(buffer, 0, (create + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L); writeLong(buffer, 8, (lastAccess + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L); writeLong(buffer, 16, (lastWrite + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L); writeLong(buffer, 24, (change + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L); writeShort(buffer, 32, attributes);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
*/ @Test public void testReadParameterWordsWireFormat() { // Prepare a buffer with sample data. // 2 bytes for fileAttributes, 4 bytes for lastWriteTime, 4 bytes for fileSize byte[] buffer = new byte[20]; // File Attributes: 0x0010 (Directory) buffer[0] = 0x10; buffer[1] = 0x00; // Last Write Time (UTime): A sample timestamp in millisecondsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
// Arrange int fid = 0x1234; int offset = 100; int remaining = 50; byte[] buffer = new byte[100]; int off = 10; int len = 40; // Act SmbComWrite write = new SmbComWrite(fid, offset, remaining, buffer, off, len); // Assert assertEquals(fid, getFieldValue(write, "fid"), "FID should match constructor arg");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)