- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 36 for 0755 (1.38 sec)
-
src/test/java/jcifs/util/EncdecTest.java
@DisplayName("Should encode and decode UUIDs") void testUUIDOperations() { // Given byte[] uuid = { 0x12, 0x34, 0x56, 0x78, (byte) 0x9A, (byte) 0xBC, (byte) 0xDE, (byte) 0xF0, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88 }; byte[] buffer = new byte[16]; // When System.arraycopy(uuid, 0, buffer, 0, 16); // Then assertArrayEquals(uuid, buffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
Type2Message message = new Type2Message(mockContext); byte[] testContext = new byte[] { (byte) 0x11, (byte) 0x22, (byte) 0x33, (byte) 0x44, (byte) 0x55, (byte) 0x66, (byte) 0x77, (byte) 0x88 }; // When message.setContext(testContext); // Then assertArrayEquals(testContext, message.getContext()); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
void testSetFileId() { setupMockConfig(); Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE); byte[] newFileId = new byte[16]; Arrays.fill(newFileId, (byte) 0x55); request.setFileId(newFileId); // FileId is set internally assertNotNull(request); } @Test @DisplayName("Test createResponse method")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
assertNull(mockNetbiosName.getScope()); when(mockNetbiosName.getScope()).thenReturn("SCOPE"); assertEquals("SCOPE", mockNetbiosName.getScope()); // Name type can be any integer (typically 0-255 for NetBIOS) when(mockNetbiosName.getNameType()).thenReturn(255); assertEquals(255, mockNetbiosName.getNameType()); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
fp = 0L; } /** * Reads a single byte from the file at the current file pointer position. * * @return the byte read as an integer (0-255), or -1 if end of file is reached * @throws SmbException if an I/O error occurs */ public int read() throws SmbException { if (read(tmp, 0, 1) == -1) { return -1; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
// 64-fold("012345") verifyNfold("012345", 8, new byte[] { (byte) 0xbe, (byte) 0x07, (byte) 0x26, (byte) 0x31, (byte) 0x27, (byte) 0x6b, (byte) 0x19, (byte) 0x55 }); // 56-fold("password") verifyNfold("password", 7, new byte[] { (byte) 0x78, (byte) 0xa0, (byte) 0x7b, (byte) 0x6c, (byte) 0xaf, (byte) 0x85, (byte) 0xfa });Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java
} @Test @DisplayName("writeSecurityBuffer copies data and sets fields") void testWriteSecurityBufferNonZero() { byte[] dest = new byte[8 + 4]; byte[] payload = { 0x55, 0x66, 0x77 }; NtlmMessage.writeSecurityBuffer(dest, 0, 8, payload); assertEquals(3, NtlmMessage.readUShort(dest, 0), "Length field must be 3");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
int flags = NegTokenInit.DELEGATION | NegTokenInit.MUTUAL_AUTHENTICATION | NegTokenInit.INTEGRITY; byte[] mechToken = new byte[] { 0x01, 0x02, 0x03 }; byte[] mic = new byte[] { (byte) 0xFE, 0x55 }; NegTokenInit init = new NegTokenInit(mechs, flags, mechToken, mic); byte[] bytes = init.toByteArray(); NegTokenInit parsed = new NegTokenInit(bytes);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
Arrays.fill(allOnes, (byte) 0xFF); byte[] alternating = new byte[16]; for (int i = 0; i < alternating.length; i++) { alternating[i] = (byte) (i % 2 == 0 ? 0xAA : 0x55); } RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId); // All patterns should be accepted
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
buf[bodyStart + 2] = 0x02; // errorContextCount buf[bodyStart + 3] = 0x00; // reserved int bc = 4; SMBUtil.writeInt4(bc, buf, bodyStart + 4); byte[] err = new byte[] { 0x55, 0x66, 0x77, 0x01 }; System.arraycopy(err, 0, buf, bodyStart + 8, bc); int decoded = resp.decode(buf, headerStart); assertTrue(decoded > 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0)