- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,069 for nBytes (0.06 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
// Act int written = req.writeBytesWireFormat(buf, offset); // Assert: should write exactly 4 bytes assertEquals(4, written, "Should report 4 bytes written"); // StructureSize (2 bytes, LE) == 4 assertEquals(4, SMBUtil.readInt2(buf, offset)); // Reserved (2 bytes, LE) == 0 assertEquals(0, SMBUtil.readInt2(buf, offset + 2)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
}; } /** * Encodes a String as UTF-8 bytes. * * @param str the String to encode * @param dst the destination byte array * @param di the starting index in the destination array * @param dlim the maximum index in the destination array * @return the number of bytes written */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
// Then assertEquals(dst.length, bytesWritten, "The number of bytes written should match the expected length."); // Check informationLevel assertEquals((byte) (informationLevel & 0xFF), dst[0]); assertEquals((byte) ((informationLevel >> 8) & 0xFF), dst[1]); // Check reserved bytes for (int i = 2; i < 6; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
} @Test void testWriteDataWireFormat() { // Given // writeInt8 writes 8 bytes but needs to access dst[dstIndex+7] // Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42]; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
docs/uk/docs/tutorial/request-files.md
/// Файли будуть завантажені у вигляді "форматованих даних форми". Якщо Ви оголосите тип параметра функції обробника маршруту як `bytes`, **FastAPI** прочитає файл за Вас, і Ви отримаєте його вміст у вигляді `bytes`. Однак майте на увазі, що весь вміст буде збережено в пам'яті. Це працюватиме добре для малих файлів. Але в деяких випадках Вам може знадобитися `UploadFile`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Feb 22 22:01:44 UTC 2025 - 11.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt
} @Test fun clientSimpleBinary() { val bytes = binaryData(256) data.write("827E0100".decodeHex()).write(bytes) clientReader.processNextFrame() callback.assertBinaryMessage(bytes) } @Test fun clientTwoFrameBinary() { val bytes = binaryData(200) data.write("0264".decodeHex()).write(bytes, 0, 100) data.write("8064".decodeHex()).write(bytes, 100, 100) clientReader.processNextFrame()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 14.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
hasher.assertBytes(new byte[] {1, 2}); } public void testString() { Random random = new Random(); for (int i = 0; i < 100; i++) { byte[] bytes = new byte[64]; random.nextBytes(bytes); String s = new String(bytes, UTF_16LE); // so all random strings are valid assertEquals( new TestHasher().putUnencodedChars(s).hash(), new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
// When byte[] bytes = message.toByteArray(); // Then assertNotNull(bytes); assertTrue(bytes.length >= 48); // Minimum size // Verify signature assertTrue(Arrays.equals(Type2Message.NTLMSSP_SIGNATURE, Arrays.copyOfRange(bytes, 0, 8))); // Verify message type
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java
this.newLeaseState = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // BreakReason (4 bytes) this.breakReason = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // AccessMaskHint (4 bytes) this.accessMaskHint = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // ShareAccessHint (4 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.6K bytes - Viewed (0)