- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 1,011 for buffers (0.03 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HuffmanTest.kt
random.nextBytes(buf) assertRoundTrip(buf.toByteString()) } private fun assertRoundTrip(data: ByteString) { val encodeBuffer = Buffer() encode(data, encodeBuffer) assertThat(encodedLength(data).toLong()).isEqualTo(encodeBuffer.size) val decodeBuffer = Buffer() decode(encodeBuffer, encodeBuffer.size, decodeBuffer) assertEquals(data, decodeBuffer.readByteString()) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2SetFileInformationResponse.java
return 0; } @Override int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) { return 0; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
buffer.putInt(0); // nextEntryOffset (0 = last entry) buffer.putInt(FileNotifyInformation.FILE_ACTION_MODIFIED); buffer.putInt(fileNameBytes3.length); buffer.put(fileNameBytes3); // Return only the used portion of the buffer byte[] result = new byte[buffer.position()]; buffer.rewind(); buffer.get(result); return result; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
final int lLow = SMBUtil.readInt4(buffer, bufferIndex + 16); this.lengthInBytes = lHigh << 32 | lLow; return 20; } this.pid = SMBUtil.readInt2(buffer, bufferIndex); this.byteOffset = SMBUtil.readInt4(buffer, bufferIndex + 2); this.lengthInBytes = SMBUtil.readInt4(buffer, bufferIndex + 6); return 10; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Response.java
/** * Verifies the signature of this response. * * @param buffer the buffer containing the signature data * @param i the starting index in the buffer * @param size the size of the signature data * @return whether signature verification is successful */ boolean verifySignature(byte[] buffer, int i, int size); /** * Checks if signature verification failed. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
SMBUtil.writeInt4(2, buffer, notifyOffset + 4); // Action (REMOVED) SMBUtil.writeInt4(10, buffer, notifyOffset + 8); System.arraycopy("file2".getBytes("UnicodeLittleUnmarked"), 0, buffer, notifyOffset + 12, 10); // Third notification at offset 164 (120 + 44) notifyOffset = 164; SMBUtil.writeInt4(0, buffer, notifyOffset); // NextEntryOffset (last)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
guava/src/com/google/common/base/Java8Compatibility.java
import com.google.common.annotations.J2ktIncompatible; import java.nio.Buffer; /** * Wrappers around {@link Buffer} methods that are covariantly overridden in Java 9+. See * https://github.com/google/guava/issues/3990 */ @J2ktIncompatible @GwtIncompatible final class Java8Compatibility { static void clear(Buffer b) { b.clear(); } static void flip(Buffer b) { b.flip(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
byte[] buffer = new byte[512]; int bufferIndex = 0; // Set structure size to 9 (valid) SMBUtil.writeInt2(9, buffer, bufferIndex); // Set buffer offset (relative to header start) SMBUtil.writeInt2(80, buffer, bufferIndex + 2); // Set buffer length (empty directory) SMBUtil.writeInt4(0, buffer, bufferIndex + 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
} @Test @DisplayName("Test constructor with buffer decodes correctly") void testConstructorWithBuffer() throws IOException { // Create test buffer with notification data byte[] buffer = createValidNotificationBuffer("testfile.txt", FileNotifyInformation.FILE_ACTION_ADDED); FileNotifyInformationImpl info = new FileNotifyInformationImpl(buffer, 0, buffer.length); assertNotNull(info);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)