- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 914 for readFn (0.33 sec)
-
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
void testDecodeWithBufferOverflow() { assertThrows(SMBProtocolDecodingException.class, () -> testResponse.decode(testBuffer, 250, 10), "Should throw exception when reading beyond buffer bounds"); } @Test @DisplayName("Should handle zero-length decode") void testDecodeWithZeroLength() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
internal/logger/target/kafka/kafka.go
type Target struct { status int32 totalMessages int64 failedMessages int64 wg sync.WaitGroup // Channel of log entries. // Reading logCh must hold read lock on logChMu (to avoid read race) // Sending a value on logCh must hold read lock on logChMu (to avoid closing) logCh chan any logChMu sync.RWMutex // store to persist and replay the logs to the targetRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 10.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
* use the `endpoint` field, compareTo() and endpoint(). Additionally, the main implementation * of Cut.compareTo checks for belowAll before reading accessing `endpoint` on another Cut * instance. */ super(""); } @Override Comparable<?> endpoint() { throw new IllegalStateException("range unbounded on this side");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 12.4K bytes - Viewed (0) -
cmd/data-usage-cache.go
} err = enc.Close() if err != nil { return err } return nil } // deserialize the supplied byte slice into the cache. func (d *dataUsageCache) deserialize(r io.Reader) error { var b [1]byte n, _ := r.Read(b[:]) if n != 1 { return io.ErrUnexpectedEOF } ver := int(b[0]) switch ver { case dataUsageCacheVerV1: return errors.New("cache version deprecated (will autoupdate)")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 34.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java
private final int maxLineBuffer; /** * Constructs a new InputStreamThread. * @param is The InputStream to read from. * @param charset The charset to use for reading. * @param maxOutputLineBuffer The maximum number of lines to buffer. */ public InputStreamThread(final InputStream is, final String charset, final int maxOutputLineBuffer) { try {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
setupCountField.setAccessible(true); assertEquals(128, setupCountField.get(response)); } @Test @DisplayName("Test reading from different buffer positions") void testReadFromDifferentPositions() throws Exception { byte[] buffer = new byte[200]; // Test at various positions in the buffer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
import com.google.common.reflect.Reflection; import com.google.common.reflect.TypeToken; import java.io.ByteArrayInputStream; import java.io.File; import java.io.InputStream; import java.io.Reader; import java.io.StringReader; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
} // Read partial content try (InputStream in = file.getInputStream()) { byte[] buffer = new byte[10]; int bytesRead = in.read(buffer); assertEquals(10, bytesRead, "Should read requested bytes"); assertEquals("0123456789", new String(buffer, 0, bytesRead, "UTF-8")); // Read next chunk bytesRead = in.read(buffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
System.arraycopy(b, i, this.buf, this.index, l); advance(l); } /** * Reads an octet array from the buffer. * * @param b the byte array to read into * @param i the starting index in the array * @param l the number of bytes to read */ public void readOctetArray(final byte[] b, final int i, final int l) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(sourceData.length, ndrBuffer.getLength()); // Length is updated on read too assertArrayEquals(sourceData, destData); // Read with offset and length ndrBuffer.setIndex(0); Arrays.fill(destData, (byte) 0x00); // Clear destData ndrBuffer.readOctetArray(destData, 1, 3); // Read 0x10, 0x11, 0x12 into destData[1-3] assertEquals(3, ndrBuffer.getIndex());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0)