- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for 0755 (0.57 sec)
-
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/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/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) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
} @Test @DisplayName("Test with maximum data size") void testWithMaxDataSize() { // Given byte[] maxData = new byte[0xFFFF]; Arrays.fill(maxData, (byte) 0x55); transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, maxData, 0, maxData.length); byte[] dst = new byte[0x10000]; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
// Test with alternating pattern byte[] alternatingFileId = new byte[16]; for (int i = 0; i < 16; i++) { alternatingFileId[i] = (byte) (i % 2 == 0 ? 0xAA : 0x55); } Smb2FlushRequest alternatingRequest = new Smb2FlushRequest(mockConfig, alternatingFileId); testFileIdInRequest(alternatingRequest, alternatingFileId); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
int readHeaderWireFormat(byte[] buffer, int bufferIndex) { return 33; } }; byte[] buf = new byte[128]; buf[33] = 4; // wordCount buf[34] = 0x55; // andxCommand != 0xFF // andxOffset arbitrarily > 0 ServerMessageBlock.writeInt2(80, buf, 36); // byteCount position: 33 + 1 + 8 = 42 ServerMessageBlock.writeInt2(0, buf, 42);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)