- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 325 for SetBytes (1.49 sec)
-
src/test/java/org/codelibs/core/crypto/CachedCipherTest.java
@Test public void testEncryptDecryptBytes() { final CachedCipher cipher = new CachedCipher(); cipher.setKey("mySecretKey"); final byte[] original = "Hello World".getBytes(); final byte[] encrypted = cipher.encrypt(original); final byte[] decrypted = cipher.decrypt(encrypted); assertThat(encrypted, is(not(original))); assertArrayEquals(original, decrypted);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
private final TestByteSink byteSink; public TestCharSink(TestOption... options) { this.byteSink = new TestByteSink(options); } public String getString() { return new String(byteSink.getBytes(), UTF_8); } @Override public boolean wasStreamOpened() { return byteSink.wasStreamOpened(); } @Override public boolean wasStreamClosed() { return byteSink.wasStreamClosed(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
} @Test @DisplayName("Parses a valid buffer and exposes fields") void parseValidBuffer() { // Arrange String name = "******@****.***"; byte[] buf = buildBuffer(oidDer(), name.getBytes(StandardCharsets.US_ASCII)); // Act MIEName parsed = new MIEName(buf); // Assert // equals should match case-insensitively for name and equal OIDRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteArrayDataOutput.java
void writeChars(String s); @Override void writeUTF(String s); /** * @deprecated This method is dangerous as it discards the high byte of every character. For * UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}. */ @Deprecated @Override void writeBytes(String s); /** Returns the contents that have been written to this instance, as a byte array. */ byte[] toByteArray();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 20:25:25 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
for (int i = 0; i < reps; i++) { res += System.identityHashCode( hashFunctionEnum .getHashFunction() .hashBytes(strings[i & SAMPLE_MASK].getBytes(UTF_8))); } return res; } @Benchmark int hashUtf8GetBytesHasher(int reps) { int res = 0; for (int i = 0; i < reps; i++) { res += System.identityHashCode(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TextExtractor.java
} @Override public ExtractData getText(final InputStream in, final Map<String, String> params) { validateInputStream(in); try { final String content = new String(InputStreamUtil.getBytes(in), getEncoding()); return new ExtractData(content); } catch (final Exception e) { throw new ExtractException("Failed to extract text content using encoding: " + getEncoding(), e); }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Dec 11 08:38:29 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
for (int i = 0; i < 16; i++) { assertEquals(fileId[i], buffer[Smb2Constants.SMB2_HEADER_LENGTH + 8 + i]); } // Verify filename byte[] expectedFileName = "*.txt".getBytes(StandardCharsets.UTF_16LE); assertTrue(bytesWritten > 32); assertEquals(32 + expectedFileName.length, bytesWritten); } @Test @DisplayName("Test writeBytesWireFormat without fileName")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex); dstIndex += 2; final byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE); System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length); dstIndex += pathBytes.length; SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // null terminator
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java
} @AfterEach void tearDown() throws Exception { builder = null; } private InputStream toStream(String xml) { return new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8)); } @Test void testEmptyDescriptor() throws Exception { String xml = "<extension></extension>"; ExtensionDescriptor ed = builder.build(toStream(xml));Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
// ShortName (24 bytes) for (int i = 0; i < 24; i++) { buffer[dataOffset + 70 + i] = 0; } // FileName "test".getBytes(StandardCharsets.UTF_16LE); System.arraycopy("test".getBytes(StandardCharsets.UTF_16LE), 0, buffer, dataOffset + 94, 8); int result = response.readBytesWireFormat(buffer, bufferIndex); assertNotNull(response.getResults());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0)