- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 183 for 0xF4 (0.01 sec)
-
src/main/java/jcifs/SmbConstants.java
*/ int ATTR_READONLY = 0x01; /** * File is marked hidden */ int ATTR_HIDDEN = 0x02; /** * File is marked a system file */ int ATTR_SYSTEM = 0x04; /** * File is marked a volume */ int ATTR_VOLUME = 0x08; /** * File is a directory */ int ATTR_DIRECTORY = 0x10; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName); // Expected format: buffer format (0x04) + path string (null terminated) byte[] expected = new byte[directoryName.length() + 2]; expected[0] = 0x04; // Buffer format System.arraycopy(directoryName.getBytes(StandardCharsets.UTF_8), 0, expected, 1, directoryName.length());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbConstantsTest.java
@DisplayName("Should define file attribute constants") void testFileAttributes() { assertEquals(0x01, SmbConstants.ATTR_READONLY); assertEquals(0x02, SmbConstants.ATTR_HIDDEN); assertEquals(0x04, SmbConstants.ATTR_SYSTEM); assertEquals(0x08, SmbConstants.ATTR_VOLUME); assertEquals(0x10, SmbConstants.ATTR_DIRECTORY); assertEquals(0x20, SmbConstants.ATTR_ARCHIVE);
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/smb1/SMB1SigningDigestTest.java
byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 }; assertDoesNotThrow(() -> digest.update(data, 0, data.length)); } @Test @DisplayName("Test update method with zero length") void testUpdateWithZeroLength() { SMB1SigningDigest digest = new SMB1SigningDigest(testMacSigningKey); byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
int written = cmd.writeParametersWireFormat(buf, 0); assertEquals(2, written, "writeParametersWireFormat should write exactly 2 bytes"); // Verify little-endian encoding (0x1234 -> 0x34 0x12) assertEquals((byte) 0x34, buf[0], "First byte should be low byte of level"); assertEquals((byte) 0x12, buf[1], "Second byte should be high byte of level"); } @Test @DisplayName("all read* methods return zero")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComRename.java
} @Override int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dst[dstIndex] = (byte) 0x04; dstIndex++; dstIndex += writeString(oldFileName, dst, dstIndex); dst[dstIndex++] = (byte) 0x04; if (useUnicode) { dst[dstIndex++] = (byte) '\0'; } dstIndex += writeString(newFileName, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
private static final int TEST_CAPABILITIES = 0x00000001; private static final long TEST_PREVIOUS_SESSION_ID = 0x1234567890ABCDEFL; private static final byte[] TEST_TOKEN = { 0x01, 0x02, 0x03, 0x04, 0x05 }; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java
byte[] dst = new byte[2]; int bytesWritten = smbComDelete.writeParameterWordsWireFormat(dst, 0); assertEquals(2, bytesWritten); // ATTR_HIDDEN (0x02) | ATTR_SYSTEM (0x04) = 0x06 assertEquals(0x06, dst[0]); assertEquals(0x00, dst[1]); } @Test public void testWriteBytesWireFormat() { // Test the writing of bytes to a byte array
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
// Pre-populate buffer with the encoding of a short value NdrBuffer prepare = new NdrBuffer(new byte[10], 0); prepare.enc_ndr_short(0x34); // Encode value 0x34 prepare.reset(); // Reset to beginning for decoding NdrBuffer spy = spy(prepare); ns.decode(spy); verify(spy).dec_ndr_short(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairTest.java
class AvPairTest { @Test void testConstructorAndGetters() { // Test with a valid type and raw data int type = AvPair.MsvAvTimestamp; byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 }; AvPair avPair = new AvPair(type, raw); assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0)