Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 95 for Read (0.15 sec)

  1. src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java

        public int decode ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException {
            int start = bufferIndex;
    
            // Read total allocation units.
            this.alloc = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // read caller available allocation units
            this.free = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            // skip actual free units
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                }
    
                out.write( sbuf, 0, 4 + n );
                out.flush();
                /* Note the Transport thread isn't running yet so we can
                 * read from the socket here.
                 */
                if (peekKey() == null) /* try to read header */
                    throw new IOException( "transport closed in negotiate" );
                int size = Encdec.dec_uint16be( sbuf, 2 ) & 0xFFFF;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComReadAndX.java

        SmbComReadAndX() {
            super( null );
            command = SMB_COM_READ_ANDX;
            openTimeout = 0xFFFFFFFF;
        }
        SmbComReadAndX( int fid, long offset, int maxCount, ServerMessageBlock andx ) {
            super( andx );
            this.fid = fid;
            this.offset = offset;
            this.maxCount = minCount = maxCount;
            command = SMB_COM_READ_ANDX;
            openTimeout = 0xFFFFFFFF;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/ConcurrencyTest.java

                        while ( is.read() >= 0 ) {
                            readCnt++;
                        }
                    }
                    if ( log.isDebugEnabled() ) {
                        log.debug("Failures " + failCount.get() + " wrote " + writeCount.get() + " read " + readCnt);
                    }
                    assertEquals("Read less than we wrote", writeCount.get(), readCnt);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            if (isStart && !isDirect) { // start of new frag, do trans
                off = in.read(buf, 0, 1024);
            } else {
                off = in.readDirect(buf, 0, buf.length);
            }
    
            if (buf[0] != 5 && buf[1] != 0)
                throw new IOException("Unexpected DCERPC PDU header");
    
            flags = buf[3] & 0xFF;
            // next read is start of new frag
            isStart = (flags & DCERPC_LAST_FRAG) == DCERPC_LAST_FRAG;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFile.java

                Smb2QueryInfoResponse resp = withOpen(
                    th,
                    Smb2CreateRequest.FILE_OPEN,
                    SmbConstants.FILE_READ_ATTRIBUTES | SmbConstants.READ_CONTROL,
                    SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE,
                    req);
                return resp.getInfo(SecurityDescriptor.class);
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

                                bufDataStart + dataDisplacement, dataCount );
                bufferIndex += dataCount;
            }
    
            /* Check to see if the entire transaction has been
             * read. If so call the read methods.
             */
    
            if( !parametersDone &&
                    ( parameterDisplacement + parameterCount ) == totalParameterCount) {
                parametersDone = true;
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbNamedPipe.java

    import jcifs.SmbPipeHandle;
    import jcifs.SmbPipeResource;
    import jcifs.internal.smb1.com.SmbComNTCreateAndX;
    import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse;
    
    
    /**
     * This class will allow a Java program to read and write data to Named
     * Pipes and Transact NamedPipes.
     *
     * <p>
     * There are three Win32 function calls provided by the Windows SDK
     * that are important in the context of using jCIFS. They are:
     *
     * <ul>
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

                break;
            case SMB2_CLOSE:
                c = "SMB2_CLOSE";
                break;
            case SMB2_FLUSH:
                c = "SMB2_FLUSH";
                break;
            case SMB2_READ:
                c = "SMB2_READ";
                break;
            case SMB2_WRITE:
                c = "SMB2_WRITE";
                break;
            case SMB2_LOCK:
                c = "SMB2_LOCK";
                break;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Sep 30 10:47:31 GMT 2018
    - 19.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

            int dataStart = getHeaderStart() + dataOffset;
    
            if ( this.dataLength + this.outputBufferOffset > this.outputBuffer.length ) {
                throw new SMBProtocolDecodingException("Buffer to small for read response");
            }
            System.arraycopy(buffer, dataStart, this.outputBuffer, this.outputBufferOffset, this.dataLength);
            bufferIndex = Math.max(bufferIndex, dataStart + this.dataLength);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 07:13:17 GMT 2018
    - 3.8K bytes
    - Viewed (0)
Back to top