- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 1,191 for differ (0.03 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
byte[] buffer = new byte[6]; close.writeParameterWordsWireFormat(buffer, 0); // first two bytes encode fid 42 assertEquals((byte) 42, buffer[0]); assertEquals((byte) 0, buffer[1]); // remaining 4 bytes should all be 0xFF according to writeUTime for (int i = 2; i < 6; i++) { assertEquals((byte) 0xFF, buffer[i], "byte %d should be 0xFF".formatted(i));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseRequestInterceptor.kt
* limitations under the License. */ package okhttp3 import java.io.IOException import okhttp3.Interceptor.Chain import okio.Buffer import okio.BufferedSink import okio.ForwardingSink import okio.Sink import okio.buffer /** Rewrites the request body sent to the server to be all uppercase. */ class UppercaseRequestInterceptor : Interceptor { @Throws(IOException::class)Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
SmbComWriteAndXResponse response = new SmbComWriteAndXResponse(); byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10 int bytesRead = response.readParameterWordsWireFormat(buffer, 0); // The count should be read from the buffer. assertEquals(10L, response.count); // The method should return the number of bytes read.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
assertEquals(300L, SMBUtil.readInt8(buffer, 24)); assertEquals(400L, SMBUtil.readInt8(buffer, 32)); assertEquals(2, SMBUtil.readInt4(buffer, 40)); // Verify third lock assertEquals(500L, SMBUtil.readInt8(buffer, 48)); assertEquals(600L, SMBUtil.readInt8(buffer, 56)); assertEquals(4, SMBUtil.readInt4(buffer, 64)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
SmbComReadAndX readCmd = invocation.getArgument(0); SmbComReadAndXResponse response = invocation.getArgument(1); response.dataLength = 1; // The response buffer points to the internal tmp buffer if (response.b != null && response.off < response.b.length) { response.b[response.off] = 42; // Return byte value 42 } return null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
import kotlin.test.Test import okhttp3.MediaType.Companion.toMediaType import okhttp3.ResponseBody.Companion.toResponseBody import okio.Buffer import okio.BufferedSource import okio.ByteString.Companion.decodeHex import okio.ByteString.Companion.encodeUtf8 import okio.IOException import okio.Source import okio.buffer class ResponseBodyTest { @Test fun sourceEmpty() {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
byte[] buffer = new byte[37]; // 3 reserved + 8*4 bytes for int4 values + 2 bytes for setupCount int bufferIndex = 0; // Reserved bytes buffer[bufferIndex++] = 0x00; buffer[bufferIndex++] = 0x00; buffer[bufferIndex++] = 0x00; // totalParameterCount = 10 writeInt4(10, buffer, bufferIndex); bufferIndex += 4;
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/internal/smb2/rdma/tcp/TcpMemoryRegion.java
/** * Create new TCP memory region * * @param buffer memory buffer * @param access access permissions (ignored for TCP) */ public TcpMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) { super(buffer, access); } @Override public void invalidate() { // No real invalidation needed for TCPRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
byte[] buffer = new byte[256]; int written = trans2FindFirst2.writeParametersWireFormat(buffer, 0); assertEquals(0, SMBUtil.readInt2(buffer, 0)); // search attributes assertEquals(0, SMBUtil.readInt2(buffer, 2)); // max items } // Helper method to read string from buffer private String readStringFromBuffer(byte[] buffer, int offset, int length) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponse.java
@Override public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException { final int start = bufferIndex; this.namedPipeState = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.readDataAvailable = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.numberOfMessages = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0)