- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 198 for readn (0.09 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(2) // First read returns 2 bytes .thenReturn(2) // Second read returns 2 bytes .thenReturn(1); // Third read returns 1 byte byte[] buffer = new byte[10]; int bytesRead = SessionServicePacket.readn(mockInputStream, buffer, 0, 5); assertEquals(5, bytesRead);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
static LogStream log = LogStream.getInstance(); /** * Reads exactly len bytes from the input stream into the buffer. * * @param in the input stream to read from * @param b the buffer to read into * @param off the offset in the buffer to start writing * @param len the number of bytes to read * @return the number of bytes actually read * @throws IOException if an I/O error occurs */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Transport.java
/** * Read bytes from the input stream into a buffer * * @param in the input stream to read from * @param b the buffer to read into * @param off the offset in the buffer to start writing * @param len the number of bytes to read * @return number of bytes read * @throws IOException if an I/O error occurs */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 27.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
int read3 = response.readBytesWireFormat(buffer, 0); // Then - all reads should return same result assertEquals(4, read1); assertEquals(4, read2); assertEquals(4, read3); } @Test @DisplayName("Should validate structure size before processing") void testStructureSizeValidation() { // Given various invalid structure sizes
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
SMBUtil.writeInt2(4, buffer, 0); // When int read1 = response1.readBytesWireFormat(buffer, 0); int read2 = response2.readBytesWireFormat(buffer, 0); // Then assertEquals(4, read1); assertEquals(4, read2); } } @Nested @DisplayName("Edge case tests") class EdgeCaseTests {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java
// Test user boost item.setUserBoost(2.0f); assertEquals(2.0f, item.getUserBoost(), 0.001f); // Test readings String[][] newReadings = { { "read1", "read2" }, { "read3" } }; item.setReadings(newReadings); assertArrayEquals(newReadings, item.getReadings()); // Test fields String[] fields = { "field1", "field2" };Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
} /** * Reads bytes from the file into the specified byte array. * * @param b the byte array to read data into * @return the number of bytes read, or -1 if end of file is reached * @throws SmbException if an I/O error occurs */ public int read(final byte b[]) throws SmbException { return read(b, 0, b.length); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java
} /** * Calculate average read latency in microseconds * * @return average read latency */ public double getAverageReadLatencyMicros() { long reads = rdmaReads.get(); if (reads == 0) { return 0.0; } return totalReadTime.get() / (double) reads / 1000.0; // Convert to microseconds } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 10.7K bytes - Viewed (0)