- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 321 for metabytes (0.17 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
testEncryptionKey, testEncryptionKey); // Use same key for test byte[] plaintext = "Hello, SMB3 Encryption!".getBytes(); long sessionId = 0x123456789ABCDEF0L; // When - Encrypt byte[] encrypted = context.encryptMessage(plaintext, sessionId); // Then - Verify encrypted message structureRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
bb.putShort((short) 24); // altPathOffset bb.putShort((short) 28); // nodeOffset // Add path string at offset 20 (8 + 20 = 28) bb.position(28); bb.put("\\test\0".getBytes(StandardCharsets.UTF_16LE)); int bytesDecoded = buffer.decode(testBuffer, 0, testBuffer.length); assertEquals(42, bytesDecoded); // 8 header + 34 referral
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
import javax.security.auth.kerberos.KerberosPrincipal; import org.junit.jupiter.api.Test; /** * Tests for the PacMac class. */ class PacMacTest { private static final byte[] TEST_DATA = "test data".getBytes(); private static final KerberosPrincipal TEST_PRINCIPAL = new KerberosPrincipal("test@REALM"); /** * Test method for * {@link jcifs.pac.PacMac#calculateMacArcfourHMACMD5(int, java.security.Key, byte[])}.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Write initial content try (OutputStream out = file.openOutputStream(false)) { out.write(initialContent.getBytes("UTF-8")); } // Overwrite with new content try (OutputStream out = file.openOutputStream(false)) { out.write(newContent.getBytes("UTF-8")); } // Verify new content try (InputStream in = file.getInputStream()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
} @Test public void testBodyInputStreamMethod() { CurlRequest request = new CurlRequest(Method.POST, "https://example.com"); InputStream stream = new ByteArrayInputStream("test data".getBytes()); CurlRequest result = request.body(stream); assertSame(request, result); // Fluent API assertNull(request.body()); // body() returns String body, not stream } @TestRegistered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java
} else { int codePoint = Character.codePointAt(input, i); if (codePoint == c) { // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset)); return this; } i++; update(4, codePointToFourUtf8Bytes(codePoint)); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
if (targetName != null && targetName.length() != 0) { targetBytes = (flags & NTLMSSP_NEGOTIATE_UNICODE) != 0 ? targetName.getBytes(UNI_ENCODING) : targetName.toUpperCase().getBytes(getOEMEncoding()); size += targetBytes.length; } else { flags &= 0xffffffff ^ NTLMSSP_REQUEST_TARGET; } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
leaseContext = new LeaseV1CreateContextRequest(testKey, testState); } @Test @DisplayName("Should have correct context name") void testContextName() { assertArrayEquals("RqLs".getBytes(), leaseContext.getName()); assertEquals("RqLs", LeaseV1CreateContextRequest.CONTEXT_NAME); } @Test @DisplayName("Should initialize with default values") void testDefaultConstructor() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java
CloseableUtil.closeQuietly(in); logger.info(content); assertTrue(content.contains("ใในใ")); } public void test_getXml_empty() { final InputStream in = new ByteArrayInputStream("".getBytes()); final String content = xmlExtractor.getText(in, null).getContent(); CloseableUtil.closeQuietly(in); logger.info(content); assertEquals("", content); }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 6.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
@Override public CharSource createSource(String string) throws IOException { return factory.createSource(string.getBytes(UTF_8)).asCharSource(UTF_8); } @Override public String getExpected(String data) { return new String(factory.getExpected(data.getBytes(UTF_8)), UTF_8); } @Override public void tearDown() throws IOException { factory.tearDown();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K bytes - Viewed (0)