- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 842 for buffers (0.03 sec)
-
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
private static long fingerprint(byte[] bytes, int length) { return HASH_FN.hashBytes(bytes, 0, length).asLong(); } /** * Tests that the Java port of FarmHashFingerprint64 provides the same results on buffers up to * 800 bytes long as the C++ reference implementation. */ public void testMultipleLengths() { int iterations = 800; byte[] buf = new byte[iterations * 4]; int bufLen = 0;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/pac/Pac.java
} } } } catch (IOException e) { throw new PACDecodingException("Malformed PAC", e); } if (this.serverSignature == null || this.kdcSignature == null || this.logonInfo == null) { throw new PACDecodingException("Missing required buffers"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
* InterruptibleChannel and JavaLangAccess.blockedOn(Thread, Interruptible), it isn't * predictable what work might be done. (e.g., close a file and flush buffers to disk). To * protect ourselves from this, we park ourselves and tell our interrupter that we did so. */ if (state == PARKED || compareAndSet(state, PARKED)) { // Interrupting Cow Says:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 10K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
to.append(buf); total += buf.remaining(); Java8Compatibility.clear(buf); } return total; } // TODO(lukes): consider allowing callers to pass in a buffer to use, some callers would be able // to reuse buffers, others would be able to size them more appropriately than the constant // defaults /** * Copies all characters between the {@link Reader} and {@link StringBuilder} objects. Does not
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 30 17:25:01 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
return buf; }, StringIndexOutOfBoundsException.class)); } @ParameterizedTest(name = "{0}") @MethodSource("invalidBuffers") @DisplayName("Invalid buffers throw appropriate exceptions") void invalidInputsThrow(String name, Object bufferSupplierOrBytes, Class<? extends Throwable> expected) { // Arrange byte[] buf;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
spyTarget.send(b, 1, 2); verify(out).writeDirect(b, 1, 2, 1); } @Test @DisplayName("sendrecv with null buffers throws relevant exceptions") void testSendRecvInvalidInputs() throws CIFSException { // Null out buffer for SMB2 path -> expect NPE when building request when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
when(mockSmbPipeHandleInternal.recv(buf, 0, buf.length)).thenAnswer(invocation -> { byte[] buffer = invocation.getArgument(0); buffer[0] = 5; // Valid PDU version buffer[1] = 0; // Valid PDU type Encdec.enc_uint16le((short) 50, buffer, 8); // Fragment length return 30; // Initial bytes received });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
// Arrange byte[] buffer = new byte[100]; // Act & Assert assertEquals(0, response.readSetupWireFormat(buffer, 0, 100)); assertEquals(0, response.readParametersWireFormat(buffer, 0, 100)); assertEquals(0, response.readDataWireFormat(buffer, 0, 100)); } @Test @DisplayName("Methods should handle null buffer without validation")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
* * @return netbios cache timeout, in seconds, 0 - disable caching, -1 - cache forever */ int getNetbiosCachePolicy(); /** * Gets the maximum buffer size for IO operations * * @return the maximum size of IO buffers, limits the maximum message size */ int getMaximumBufferSize(); /** * * Property {@code jcifs.smb.client.transaction_buf_size} (int, default 65535)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0)