Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 215 for Off (0.02 sec)

  1. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

        }
    
        public synchronized void write( byte[] b, int off, int len ) throws IOException {
            if( len > 0xFFFF ) {
                throw new IOException( "write too large: " + len );
            } else 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 Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComWrite.java

            super(config, SMB_COM_WRITE);
            this.fid = fid;
            this.count = len;
            this.offset = offset;
            this.remaining = remaining;
            this.b = b;
            this.off = off;
        }
    
    
        /**
         * 
         * @param fid
         * @param offset
         * @param remaining
         * @param b
         * @param off
         * @param len
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

                System.arraycopy( b, off, pipe_buf, nxt_idx, i );
                off += i;
                System.arraycopy( b, off, pipe_buf, 0, len - i ); 
            } else {
                System.arraycopy( b, off, pipe_buf, nxt_idx, len );
            }
            nxt_idx = ( nxt_idx + len ) % pipe_buf.length;
            used += len;
            return len;
        }
        public int dce_read( byte[] b, int off, int len ) throws IOException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  4. 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
                        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);
                    off += stub_frag_len;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

            this.b = b;
            this.off = off;
            dataLength = len;
            command = SMB_COM_WRITE_ANDX;
        }
    
        void setParam( int fid, long offset, int remaining,
                        byte[] b, int off, int len ) {
            this.fid = fid;
            this.offset = offset;
            this.remaining = remaining;
            this.b = b;
            this.off = off;
            dataLength = len;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  6. internal/config/bool-flag_test.go

    )
    
    // Test BoolFlag.String()
    func TestBoolFlagString(t *testing.T) {
    	var bf BoolFlag
    
    	testCases := []struct {
    		flag           BoolFlag
    		expectedResult string
    	}{
    		{bf, "off"},
    		{BoolFlag(true), "on"},
    		{BoolFlag(false), "off"},
    	}
    
    	for _, testCase := range testCases {
    		str := testCase.flag.String()
    		if testCase.expectedResult != str {
    			t.Fatalf("expected: %v, got: %v", testCase.expectedResult, str)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComReadAndXResponse.java

    class SmbComReadAndXResponse extends AndXServerMessageBlock {
    
        byte[] b;
        int off, dataCompactionMode, dataLength, dataOffset;
    
        SmbComReadAndXResponse() {
        }
        SmbComReadAndXResponse( byte[] b, int off ) {
            this.b = b;
            this.off = off;
        }
    
        void setParam( byte[] b, int off ) {
            this.b = b;
            this.off = off;
        }
        int writeParameterWordsWireFormat( byte[] dst, int dstIndex ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            }
    
            while ( off < length ) {
                int r = this.handle.recv(buf, off, length - off);
                if ( r == 0 ) {
                    throw new IOException("Unexpected EOF");
                }
                off += r;
            }
            return off;
        }
    
    
        @Override
        public void close () throws IOException {
            super.close();
            try {
                this.handle.close();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jan 26 11:51:07 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java

                bufferIndex += 14;
                e.type = readInt2( buffer, bufferIndex );
                bufferIndex += 2;
                int off = readInt4( buffer, bufferIndex );
                bufferIndex += 4;
                off = ( off & 0xFFFF ) - converter;
                off = start + off;
                e.remark = readString( buffer, off, 128, false );
    
                if (log.level >= 4)
                    log.println( e );
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3K bytes
    - Viewed (0)
  10. 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 Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.6K bytes
    - Viewed (0)
Back to top