- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 342 for getBytes (0.1 seconds)
-
android/guava-tests/test/com/google/common/base/Utf8Test.java
} boolean isRoundTrippable = Utf8.isWellFormed(bytes); assertEquals(isRoundTrippable, Utf8.isWellFormed(bytes, 0, numBytes)); String s = new String(bytes, UTF_8); byte[] bytesReencoded = s.getBytes(UTF_8); boolean bytesEqual = Arrays.equals(bytes, bytesReencoded); if (bytesEqual != isRoundTrippable) { fail(); } if (isRoundTrippable) { countRoundTripped++;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 12.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/SearchHelperTest.java
String testData = "This is test data for compression that should be long enough to actually compress effectively when using gzip compression algorithm"; byte[] originalBytes = testData.getBytes(); byte[] compressed = searchHelper.gzipCompress(originalBytes); byte[] decompressed = searchHelper.gzipDecompress(compressed); assertEquals(testData, new String(decompressed));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 19.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java
dstIndex += 4; SMBUtil.writeInt4(this.createOptions, dst, dstIndex); dstIndex += 4; final int nameOffsetOffset = dstIndex; final byte[] nameBytes = this.name.getBytes(StandardCharsets.UTF_16LE); SMBUtil.writeInt2(nameBytes.length, dst, dstIndex + 2); dstIndex += 4; final int createContextOffsetOffset = dstIndex; dstIndex += 4; // createContextOffsetCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 22.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
assertTrue(bytesWritten > 0); // Verify name length field at offset 46 (after 44 bytes of fixed fields + 2 for name offset) byte[] nameBytes = longPath.getBytes(StandardCharsets.UTF_16LE); int nameLenInBuffer = (buffer[46] & 0xFF) | ((buffer[47] & 0xFF) << 8); assertEquals(nameBytes.length, nameLenInBuffer); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
try (JarOutputStream jos = new JarOutputStream(new FileOutputStream(jarFile))) { JarEntry entry = new JarEntry("fess_ds++.xml"); jos.putNextEntry(entry); jos.write(xmlContent.getBytes()); jos.closeEntry(); } } // Test DataStore implementation for testing private static class TestDataStore extends AbstractDataStore { private String name;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java
@Override protected SortedMap<String, String> delegate() { return delegate; } } private static String encode(String str) { return BaseEncoding.base64().encode(str.getBytes(UTF_8)); } private static final Function<String, String> DECODE_FUNCTION = new Function<String, String>() { @Override public String apply(String input) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 32.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/DocumentHelper.java
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { try (GZIPOutputStream gos = new GZIPOutputStream(baos)) { gos.write(hash.getBytes(Constants.UTF_8)); } return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray()); } catch (final IOException e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Mar 30 14:27:04 GMT 2026 - 17.4K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
initializeNetworkExplorer(false, "jCIFS"); // Setup mock file with minimal required behavior String content = "File content for testing"; byte[] contentBytes = content.getBytes(); when(smbFile.length()).thenReturn((long) contentBytes.length); when(smbFile.getInputStream()).thenReturn(new ByteArrayInputStream(contentBytes)); // Use spy to avoid actual SMB operations
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
throw closer.rethrow(e); } finally { closer.close(); } } private static Manifest manifest(String content) throws IOException { InputStream in = new ByteArrayInputStream(content.getBytes(US_ASCII)); Manifest manifest = new Manifest(); manifest.read(in); return manifest; } private static File fullpath(String path) { return new File(new File(path).toURI()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 23.1K bytes - Click Count (0)