- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for writeDirect (0.15 sec)
-
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
byte[] b = new byte[10]; int n = spyTarget.recv(b, 2, 4); assertEquals(7, n); verify(in).readDirect(b, 2, 4); } @Test @DisplayName("send delegates to output.writeDirect with provided args") void testSendDelegation() throws Exception { SmbPipeHandleImpl spyTarget = spy(target); SmbPipeOutputStream out = mock(SmbPipeOutputStream.class);
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/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java
} if (out == null) { out = (SmbFileOutputStream) pipe.getNamedPipeOutputStream(); } if (isDirect) { out.writeDirect(buf, off, length, 1); return; } out.write(buf, off, length); } @Override protected void doReceiveFragment(final byte[] buf, final boolean isDirect) throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
int n = spyHandle.recv(b, 1, 3); assertEquals(5, n); verify(mockIn).readDirect(eq(b), eq(1), eq(3)); } @Test @DisplayName("send delegates to output.writeDirect with args") void send_delegates_writeDirect() throws Exception { SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\y"); // Mock the stream directly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return getInput().readDirect(buf, off, len); } @Override public void send(final byte[] buf, final int off, final int length) throws IOException { getOutput().writeDirect(buf, off, length, 1); } /** * * {@inheritDoc} * * @see jcifs.smb.SmbPipeHandleInternal#getPipeType() */ @Override public int getPipeType() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java
if (!file.isOpen() && file instanceof SmbNamedPipe) { file.send(new TransWaitNamedPipe("\\pipe" + file.unc), new TransWaitNamedPipeResponse()); } writeDirect(b, off, len, 0); } /** * Just bypasses TransWaitNamedPipe - used by DCERPC bind. * * @param b the byte array containing the data to write * @param off the start offset in the data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
* @throws IOException * if a network error occurs */ @Override public void write(final byte[] b, final int off, final int len) throws IOException { writeDirect(b, off, len, 0); } /** * Just bypasses TransWaitNamedPipe - used by DCERPC bind. * * @param b the byte array containing the data to write * @param off the start offset in the data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0)