- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readLength (0.32 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
@Test @DisplayName("readLength should handle maximum length") void testReadLengthMaximum() { byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF }; int length = SessionServicePacket.readLength(src, 0); assertEquals(0x01FFFF, length); } @Test @DisplayName("readLength should handle zero length") void testReadLengthZero() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
assertTrue(writeLength > 0); // Create new request to read NodeStatusRequest readRequest = new NodeStatusRequest(mockConfig, new Name(mockConfig)); // Act - Read int readLength = readRequest.readWireFormat(buffer, 0); // Assert read assertEquals(0x1234, readRequest.nameTrnId); assertEquals(NameServicePacket.NBSTAT, readRequest.questionType);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0)