- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 1,011 for buffers (5.45 sec)
-
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
char[] buffer = new char[maxChars]; int bufIndex = 0; int remaining = buffer.length; try (InputStreamReader reader = new InputStreamReader(byteSource.openStream(), cs)) { int nRead = 0; while (remaining > 0 && (nRead = reader.read(buffer, bufIndex, remaining)) != -1) { bufIndex += nRead;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.2K bytes - Viewed (0) -
cmd/tier-last-day-stats_gen_test.go
v := DailyAllTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len())) en := msgp.NewWriter(msgp.Nowhere) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.EncodeMsg(en) } en.Flush() } func BenchmarkDecodeDailyAllTierStats(b *testing.B) { v := DailyAllTierStats{} var buf bytes.Buffer msgp.Encode(&buf, &v) b.SetBytes(int64(buf.Len()))
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
*/ public MonitorTarget() { // Default constructor } /** * Appends a key-value pair to the buffer in JSON format. * * @param buf the string buffer to append to * @param key the key name * @param supplier the value supplier * @return the updated buffer */ protected StringBuilder append(final StringBuilder buf, final String key, final Supplier<Object> supplier) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
@Test void testNegativeValueHandling() { byte[] buffer = new byte[8]; // Test negative values in writeInt4 SMBUtil.writeInt4(-1L, buffer, 0); assertEquals(-1, SMBUtil.readInt4(buffer, 0)); // Test negative values in writeInt8 SMBUtil.writeInt8(-1L, buffer, 0); assertEquals(-1L, SMBUtil.readInt8(buffer, 0)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
e.creationTime = readTime(buffer, bufferIndex + 8); // e.lastAccessTime = readTime( buffer, bufferIndex + 16 ); e.lastWriteTime = readTime(buffer, bufferIndex + 24); // e.changeTime = readTime( buffer, bufferIndex + 32 ); e.endOfFile = readInt8(buffer, bufferIndex + 40); // e.allocationSize = readInt8( buffer, bufferIndex + 48 );
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
} @Test @DisplayName("Should reject null data buffer in sign method") void testSignNullDataBuffer() { assertThrows(IllegalArgumentException.class, () -> digest.sign(null, 0, 100, request, response), "Should throw IllegalArgumentException for null data buffer"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt
val buffer = Buffer() body.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo(expected) } @Test fun buildEmptyForm() { val body = FormBody.Builder().build() val expected = "" assertThat(body.contentLength()).isEqualTo(expected.length.toLong()) val buffer = Buffer() body.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo(expected)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
void testReadSetupWireFormat() { querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1234, OWNER_SECURITY_INFORMATION); byte[] buffer = new byte[100]; int result = querySecurityDesc.readSetupWireFormat(buffer, 10, 50); assertEquals(0, result); } @Test @DisplayName("Test readParametersWireFormat returns zero")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractByteHasher.java
update(b, 0, b.length); } /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */ protected void update(byte[] b, int off, int len) { for (int i = off; i < off + len; i++) { update(b[i]); } } /** Updates this hasher with bytes from the given buffer. */ protected void update(ByteBuffer b) { if (b.hasArray()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 12:40:17 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/rpc.idl
* USHORT Length; * USHORT MaximumLength; * [size_is(MaximumLength / 2), length_is((Length) / 2) ] USHORT * Buffer; * } UNICODE_STRING; */ typedef struct { uint16_t length; uint16_t maximum_length; [length_is(length / 2),size_is(maximum_length / 2)] uint16_t *buffer; } unicode_string; /* * typedef struct _SID_IDENTIFIER_AUTHORITY { * UCHAR Value[6];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.4K bytes - Viewed (0)