- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 431 for READ (0.01 sec)
-
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
* * @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); } /** * Reads up to len bytes from the file into the specified byte array. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Read request message. * * This command is used to read data from a file that has been * previously opened with a Create request. * * @author mbechler */ public class Smb2ReadRequest extends ServerMessageBlock2Request<Smb2ReadResponse> implements RequestWithFileId { /** * Flag to indicate unbuffered read operation */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseState.java
/** * Read and Write caching (RW) */ public static final int SMB2_LEASE_READ_WRITE = 0x05; /** * Full caching - Read, Write and Handle (RWH) */ public static final int SMB2_LEASE_FULL = 0x07; private Smb2LeaseState() { // Utility class } /** * Check if state has read caching * @param state lease state
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB1 Read AndX Response message. * * This response contains the data that was read from the file * along with information about the read operation. */ public class SmbComReadAndXResponse extends AndXServerMessageBlock { private byte[] data; private int offset, dataCompactionMode, dataLength, dataOffset; /** * Constructs a Read AndX response. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbRandomAccess.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/en/docs/environment-variables.md
// Use it with other programs, like $ echo "Hello $Env:MY_NAME" Hello Wade Wilson ``` </div> //// ## Read env vars in Python { #read-env-vars-in-python } You could also create environment variables **outside** of Python, in the terminal (or with any other method), and then **read them in Python**. For example you could have a file `main.py` with: ```Python hl_lines="3" import os
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
int result = smbRandomAccessFile.read(); assertEquals(42, result); assertEquals(1, smbRandomAccessFile.getFilePointer()); } @Test void testReadEOF() throws SmbException { // Mock the read operation to return EOF doAnswer(new Answer<Void>() { @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
} @Test @DisplayName("readn should handle multiple read calls") void testReadnMultipleCalls() throws IOException { 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];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
// Read first message assertEquals(1, sis.read()); assertEquals(2, sis.read()); // Read second message assertEquals(3, sis.read()); assertEquals(4, sis.read()); assertEquals(5, sis.read()); // After all data is consumed, next read throws IOException assertThrows(IOException.class, () -> sis.read()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* `write(data)`: Writes `data` (`str` or `bytes`) to the file. * `read(size)`: Reads `size` (`int`) bytes/characters of the file. * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file. * E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.3K bytes - Viewed (0)