- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for 68 (0.01 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
int expectedFlags = DirectoryLeaseContext.DIRECTORY_LEASE_FLAG_RECURSIVE | DirectoryLeaseContext.DIRECTORY_LEASE_FLAG_NOTIFICATIONS; assertEquals(expectedFlags, SMBUtil.readInt4(buffer, 68)); // Verify notification filter assertEquals(0x1F, SMBUtil.readInt4(buffer, 72)); } @Test public void testDecode() { // Create a context and encode it
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
int bytesWritten = packet.writeTrailerWireFormat(dst, 0); assertTrue(bytesWritten > 0); // Each name should write at least 34 bytes (encoded name + scope) assertTrue(bytesWritten >= 68); } @Test @DisplayName("writeTrailerWireFormat with scope should handle scoped names") void testWriteTrailerWireFormatWithScope() { when(mockCalledName.getName()).thenReturn("SERVER");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
} } @Test void testSMB2Header() { assertNotNull(SMBUtil.SMB2_HEADER); // The actual header is 68 bytes (4 + 2 + 2 + 2 + 2 + 4 + 2 + 2 + 4 + 4 + 8 + 4 + 4 + 8 + 8 + 8 = 68) assertEquals(68, SMBUtil.SMB2_HEADER.length); // Verify SMB2 header signature assertEquals((byte) 0xFE, SMBUtil.SMB2_HEADER[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/internal/fscc/FileBothDirectoryInfoTest.java
SMBUtil.writeInt4(0, buffer, 64); // eaSize // Write short name length and short name byte[] shortNameBytes = Strings.getUNIBytes(shortName); buffer[68] = (byte) shortNameBytes.length; // shortNameLength System.arraycopy(shortNameBytes, 0, buffer, 70, Math.min(shortNameBytes.length, 24)); // Write filename if (unicode) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
byte[] buffer = new byte[512]; int bytesWritten = request.writeBytesWireFormat(buffer, 64); // Verify buffer length field contains the info size int bufferLength = SMBUtil.readInt4(buffer, 68); assertEquals(infoSize, bufferLength); // Verify total bytes written assertEquals(32 + infoSize, bytesWritten); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} @Test @DisplayName("Size should be 72 bytes (64 header + 4 body aligned to 8)") void testExactSize() { // SMB2_HEADER_LENGTH = 64, body = 4, total = 68 // size8 aligns to 8-byte boundary: (68 + 7) & ~7 = 72 assertEquals(72, echoRequest.size()); } } @Nested @DisplayName("WriteBytesWireFormat Tests")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
assertEquals((byte) 0x01, buffer[66]); assertEquals((byte) 0x04, buffer[67]); // Verify output buffer length assertEquals(0x8000, SMBUtil.readInt4(buffer, 68)); // Verify input buffer offset (should be 0 when no input buffer) assertEquals(0, SMBUtil.readInt2(buffer, 72)); // Verify input buffer length (should be 0 when no input buffer)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
assertEquals(8, size8Method.invoke(request, 1)); assertEquals(8, size8Method.invoke(request, 8)); assertEquals(16, size8Method.invoke(request, 9)); assertEquals(72, size8Method.invoke(request, 68)); // SMB2_HEADER_LENGTH + 4 = 68 } @Test @DisplayName("Should maintain consistent command type") void testCommandTypeConsistency() throws Exception { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
e.fileNameLength = readInt4(buffer, bufferIndex + 60); // e.eaSize = readInt4( buffer, bufferIndex + 64 ); // e.shortNameLength = buffer[bufferIndex + 68] & 0xFF; /* With NT, the shortName is in Unicode regardless of what is negotiated. */ // e.shortName = readString( buffer, bufferIndex + 70, e.shortNameLength );
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.6K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
* `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` They work the same way as for other FastAPI endpoints/*path operations*: {* ../../docs_src/websockets/tutorial002_an_py310.py hl[68:69,82] *} /// info As this is a WebSocket it doesn't really make sense to raise an `HTTPException`, instead we raise a `WebSocketException`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5.7K bytes - Viewed (0)