- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 342 for getBytes (0.07 seconds)
-
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());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.5K bytes - Click Count (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(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.3K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/AbstractStreamingHasher.java
* even to an intermediate buffer) should be considerably more efficient than potentially * copying the CharSequence to a String and then calling getBytes(Charset) on that String, in * reality there are optimizations that make the getBytes(Charset) approach considerably faster, * at least for commonly used charsets like UTF-8. */ @Override @CanIgnoreReturnValue
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 7.1K bytes - Click Count (0) -
docs/smb3-features/02-persistent-handles-design.md
writeInt2(buffer, offset + 10, STRUCTURE_SIZE); // DataOffset writeInt4(buffer, offset + 12, STRUCTURE_SIZE); // DataLength // Name System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, nameLen); // Data (16 bytes of reserved) int dataOffset = offset + 16 + nameLen; dataOffset = (dataOffset + 7) & ~7; // 8-byte alignment
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
indexFile.deleteOnExit(); FileUtil.writeBytes(indexFile.getAbsolutePath(), content.getBytes("UTF-8")); for (int i = 1; i <= 10; i++) { final File file = new File(dir, "file" + count + "-" + i + ".html"); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes("UTF-8")); final File childDir = new File(dir, "dir" + count + "-" + i);
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 15 01:11:43 GMT 2026 - 5.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java
final byte[] b = { 0x00, 0x01 }; assertThat(BinaryConversionUtil.toBinary(b), is(b)); assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes())); } /** * Test method for * {@link org.codelibs.core.convert.BinaryConversionUtil#toBinary(java.lang.Object)} * . */ @Test public void testToBinaryException() {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
System.arraycopy("short".getBytes(), 0, buffer, 0, 5); buffer[5] = 0; // Null terminator String result = smb.readString(buffer, 0, 5, false); assertEquals("short", result); } @Test void testReadStringWithMaxLengthExceeded() { smb.useUnicode = false; byte[] buffer = "a very long string that exceeds max length".getBytes();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java
@Setup public void initResults() throws IOException { final BytesStreamOutput tmp = new BytesStreamOutput(); final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes(); for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } bytesArray = tmp.copyBytes(); if (bytesArray instanceof BytesArray == false) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java
@Setup public void initResults() throws IOException { final BytesStreamOutput tmp = new BytesStreamOutput(); final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes(); for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type1Message.java
flags |= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED; domain = suppliedDomainString.toUpperCase().getBytes(getOEMEncoding()); size += domain.length; } else { flags &= NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED ^ 0xffffffff; } byte[] workstation = {};Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.8K bytes - Click Count (0)