- Sort Score
- Result 10 results
- Languages All
Results 611 - 620 of 1,011 for buffers (0.39 sec)
-
src/test/java/jcifs/util/transport/ResponseTest.java
} @Test void testVerifySignature() { byte[] buffer = new byte[] { 1, 2, 3 }; int offset = 0; int size = 3; // Simulate successful verification when(mockResponse.verifySignature(buffer, offset, size)).thenReturn(true); assertTrue(mockResponse.verifySignature(buffer, offset, size)); // Simulate failed verification
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
thread.start(); thread.join(1000); String output = thread.getOutput(); String[] lines = output.split("\n"); assertTrue("Buffer should be limited to 10 items", lines.length <= 10); assertTrue("Last lines should be kept", output.contains("line15")); } public void test_run_maxBufferSizeConstant() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
try (InputStream stream = response.getContentAsStream()) { assertNotNull(stream); byte[] buffer = new byte[1024]; int bytesRead = stream.read(buffer); assertEquals(data.length, bytesRead); assertArrayEquals(data, Arrays.copyOf(buffer, bytesRead)); } } @Test public void testGetContentAsStreamWithoutCache() {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
@Test fun responseBodyIsBinary() { setLevel(Level.BODY) val buffer = Buffer() buffer.writeUtf8CodePoint(0x89) buffer.writeUtf8CodePoint(0x50) buffer.writeUtf8CodePoint(0x4e) buffer.writeUtf8CodePoint(0x47) buffer.writeUtf8CodePoint(0x0d) buffer.writeUtf8CodePoint(0x0a) buffer.writeUtf8CodePoint(0x1a) buffer.writeUtf8CodePoint(0x0a) server.enqueue( MockResponse
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 37.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java
final int start = bufferIndex; if (in.read(buffer, bufferIndex, length) != length) { throw new IOException("invalid session request wire format"); } bufferIndex += calledName.readWireFormat(buffer, bufferIndex); bufferIndex += callingName.readWireFormat(buffer, bufferIndex); return bufferIndex - start;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/bytes/example_test.go
"fmt" "io" "os" "slices" "strconv" "unicode" ) func ExampleBuffer() { var b bytes.Buffer // A Buffer needs no initialization. b.Write([]byte("Hello ")) fmt.Fprintf(&b, "world!") b.WriteTo(os.Stdout) // Output: Hello world! } func ExampleBuffer_reader() { // A Buffer can turn a string or a []byte into an io.Reader. buf := bytes.NewBufferString("R29waGVycyBydWxlIQ==")
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/PrimitiveSink.java
PrimitiveSink putBytes(byte[] bytes, int off, int len); /** * Puts the remaining bytes of a byte buffer into this sink. {@code bytes.position()} is the first * byte written, {@code bytes.limit() - 1} is the last. The position of the buffer will be equal * to the limit when this method returns. * * @param bytes a byte buffer * @return this instance * @since 23.0 */ @CanIgnoreReturnValue
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
assertEquals(4, SMBUtil.readInt2(buf, offset)); // Reserved (2 bytes, LE) == 0 assertEquals(0, SMBUtil.readInt2(buf, offset + 2)); } @Test @DisplayName("writeBytesWireFormat throws when buffer too small") void writeBytesWireFormat_throwsIfInsufficientSpace() { // Arrange Smb2LogoffRequest req = newRequest(); byte[] tiny = new byte[3]; // less than 4 bytes available
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTreeDisconnect.java
int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComBlankResponse.java
int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.5K bytes - Viewed (0)