- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 248 for 0x41 (0.03 sec)
-
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
@DisplayName("Test buffer management") void testBufferManagement() { byte[] buffer = new byte[1024]; buffer[0] = 0x42; transaction.setBuffer(buffer); byte[] released = transaction.releaseBuffer(); assertSame(buffer, released); assertEquals(0x42, released[0]); // After release, getting buffer again should return null assertNull(transaction.releaseBuffer());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java
* . */ @Test public void testToBinary() { assertThat(BinaryConversionUtil.toBinary(null), nullValue()); final byte[] b = { 0x00, 0x01 }; assertThat(BinaryConversionUtil.toBinary(b), is(b)); assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes())); } /** * Test method for
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Then assertTrue(response.haveCapabilitiy(0x01)); // Has this bit assertTrue(response.haveCapabilitiy(0x0F)); // Has all these bits assertFalse(response.haveCapabilitiy(0x10)); // Doesn't have this bit assertFalse(response.haveCapabilitiy(0x40)); // Doesn't have this bit } @Test @DisplayName("Should check DFS support correctly")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5); HMACT64 hmac = new HMACT64(TEST_KEY); hmac.engineUpdate((byte) 0x01); verify(mockMd5, times(1)).update((byte) 0x01); } } @Test void testEngineUpdateByteArray() throws NoSuchAlgorithmException { // Test engineUpdate(byte[] input, int offset, int len)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java
void byteArrayConstructor_malformedDER_throwsWrapped() { // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content) byte[] malformed = new byte[] { 0x30, 0x02, 0x01 }; // Act + Assert PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(malformed, null)); assertTrue(ex.getMessage().contains("Malformed Kerberos Ticket"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
// relative to headerStart private static final int PRIMARY_SETUP_OFFSET = 61; private static final int SECONDARY_PARAMETER_OFFSET = 51; private static final int DISCONNECT_TID = 0x01; private static final int ONE_WAY_TRANSACTION = 0x02; private static final int PADDING_SIZE = 2; private final int flags = 0x00; private int fid; private int pad = 0; private int pad1 = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2Constants.java
/** * Server supports DFS */ public static final int SMB2_GLOBAL_CAP_DFS = 0x1; /** * Server supports leasing */ public static final int SMB2_GLOBAL_CAP_LEASING = 0x2; /** * Server supports multi-credit operations */ public static final int SMB2_GLOBAL_CAP_LARGE_MTU = 0x4; /** * Server supports multi-channel connections */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java
// Assert assertEquals(expectedFlags, queryPolicy.getFlags()); // Binary check for individual flags assertEquals(0x03, queryPolicy.getFlags()); // 0x01 | 0x02 = 0x03 } @Test void getOpnum_shouldReturnCorrectValue() { // Arrange short level = 1;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
SMBUtil.writeInt8(500, buffer1, 48); SMBUtil.writeInt4(0x01, buffer1, 56); response.readBytesWireFormat(buffer1, 0); assertEquals(1, response.getCloseFlags()); assertEquals(1000, response.getAllocationSize()); assertEquals(500, response.getEndOfFile()); assertEquals(0x01, response.getFileAttributes()); // Second read with different values
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
// First decode byte[] buffer1 = new byte[28]; Arrays.fill(buffer1, 0, 24, (byte) 0x11); int bytesConsumed1 = response.decode(buffer1, 0, 28); assertEquals(28, bytesConsumed1); byte[] resumeKey1 = response.getResumeKey(); assertNotNull(resumeKey1); assertEquals((byte) 0x11, resumeKey1[0]); // Second decode - should overwrite
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0)