- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 463 for GetBytes (0.13 sec)
-
android/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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryCreator.java
} return newDictionaryFile(encodePath(path), path, timestamp); } protected String encodePath(final String path) { return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8)); } protected boolean isTarget(final String path) { return pattern.matcher(path).find(); }
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
@Override public int encode ( byte[] dst, int dstIndex ) { int start = dstIndex; SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex); dstIndex += 2; 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: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/TarSlipIntegrationTest.groovy
evilTar.withOutputStream { new TarOutputStream(it).withCloseable { TarOutputStream tos -> TarEntry entry = new TarEntry('../../tmp/evil.sh') byte[] bytes = 'evil'.getBytes('utf-8') entry.size = bytes.length tos.putNextEntry(entry) tos.write(bytes) tos.closeEntry() } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/Name.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 6.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
/** * @throws Exception */ @Test public void testFileToFile() throws Exception { final byte[] bytes = readBytes(inputFile); assertThat(bytes, is("あいうえお".getBytes("UTF-8"))); } /** * @throws Exception */ @Test public void testReadUTF8() throws Exception { assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ")); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0) -
pkg/bootstrap/fuzz_test.go
return } if cfg.Metadata == nil { return } if cfg.Metadata.ProxyConfig == nil { return } i := New(cfg) // create template file templateBytes, err := ff.GetBytes() if err != nil { return } tf, err := os.Create("templateFile") if err != nil { return } defer func() { tf.Close() os.Remove("templateFile") }()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetShareEnum.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ConfigurableClassLoaderHierarchyHasher.java
Map<ClassLoader, byte[]> hashes = new WeakHashMap<ClassLoader, byte[]>(); for (Map.Entry<ClassLoader, String> entry : knownClassLoaders.entrySet()) { hashes.put(entry.getKey(), entry.getValue().getBytes(Charsets.UTF_8)); } this.knownClassLoaders = hashes; } @Nullable @Override public HashCode getClassLoaderHash(ClassLoader classLoader) { Visitor visitor = new Visitor();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.9K bytes - Viewed (0) -
tests/fuzz/helm_reconciler_fuzzer.go
"istio.io/istio/operator/pkg/object" ) type fakeClientWrapper struct { client.Client } func FuzzHelmReconciler(data []byte) int { f := fuzz.NewConsumer(data) k8sobjBytes, err := f.GetBytes() if err != nil { return 0 } k8obj, err := object.ParseYAMLToK8sObject(k8sobjBytes) if err != nil { return 0 } m := name.Manifest{} err = f.GenerateStruct(&m) if err != nil { return 0
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 12 17:12:54 UTC 2023 - 1.6K bytes - Viewed (0)