Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 334 for OFF (0.01 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComWrite.java

            this.b = b;
            this.off = off;
        }
    
        /**
         * Sets the parameters for this write request.
         *
         * @param fid the file identifier
         * @param offset the file offset at which to write
         * @param remaining the number of bytes remaining to be written
         * @param b the data buffer containing bytes to write
         * @param off the offset in the buffer where data starts
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

            this.b = b;
            this.off = off;
            dataLength = len;
            command = SMB_COM_WRITE_ANDX;
        }
    
        void setParam(final int fid, final long offset, final int remaining, final byte[] b, final int off, final int len) {
            this.fid = fid;
            this.offset = offset;
            this.remaining = remaining;
            this.b = b;
            this.off = off;
            dataLength = len;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        len -= cnt;
                        off += cnt;
                    } else {
                        if (log.isTraceEnabled()) {
                            log.trace(String.format("Wrote at %d remain %d off %d len %d", this.fp, len - w, off, w));
                        }
                        this.req.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        th.send(this.req, this.rsp);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals(remaining, getFieldValue(write, "remaining"), "Remaining should match constructor arg");
            assertEquals(buffer, getFieldValue(write, "b"), "Buffer reference should be set");
            assertEquals(off, getFieldValue(write, "off"), "Off should match constructor arg");
            assertEquals(len, getFieldValue(write, "count"), "Count should equal len");
        }
    
        /**
         * Test setParam method updates the write parameters
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

        @Override
        public synchronized void write(final byte[] b, int off, final int len) throws IOException {
            if (len > 0xFFFF) {
                throw new IOException("write too large: " + len);
            }
            if (off < 4) {
                throw new IOException("NetBIOS socket output buffer requires 4 bytes available before off");
            }
    
            off -= 4;
    
            b[off + 0] = (byte) SessionServicePacket.SESSION_MESSAGE;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

                result = len > used ? used : len;
                if (used > i && result > i) {
                    System.arraycopy(pipe_buf, beg_idx, b, off, i);
                    off += i;
                    System.arraycopy(pipe_buf, 0, b, off, result - i);
                } else {
                    System.arraycopy(pipe_buf, beg_idx, b, off, result);
                }
                used -= result;
                beg_idx = (beg_idx + result) % pipe_buf.length;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java

                e.type = SMBUtil.readInt2(buffer, bufferIndex);
                bufferIndex += 2;
                int off = SMBUtil.readInt4(buffer, bufferIndex);
                bufferIndex += 4;
                off = (off & 0xFFFF) - this.converter;
                off = start + off;
                e.remark = readString(buffer, off, 128, false);
    
                if (log.isTraceEnabled()) {
                    log.trace(e.toString());
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java

                e.type = readInt4(buffer, bufferIndex);
                bufferIndex += 4;
                int off = readInt4(buffer, bufferIndex);
                bufferIndex += 4;
                off = (off & 0xFFFF) - converter;
                off = start + off;
                e.commentOrMasterBrowser = readString(buffer, off, 48, false);
    
                if (LogStream.level >= 4) {
                    log.println(e);
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            doAnswer(inv -> {
                byte[] b = inv.getArgument(0);
                int off = inv.getArgument(1);
                b[off] = 0x01;
                b[off + 1] = 0x02;
                b[off + 2] = 0x03;
                b[off + 3] = 0x04;
                b[off + 4] = 0x05;
                b[off + 5] = 0x06;
                b[off + 6] = 0x07;
                b[off + 7] = 0x08;
                return 8;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                    if (off + stub_frag_len > stub.length) {
                        // shouldn't happen if alloc_hint is correct or greater
                        final byte[] tmp = new byte[off + stub_frag_len];
                        System.arraycopy(stub, 0, tmp, 0, off);
                        stub = tmp;
                    }
    
                    System.arraycopy(frag, 24, stub, off, stub_frag_len);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top