Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for Goff (0.28 sec)

  1. src/main/java/jcifs/smb1/util/RC4.java

            i = j = 0;
        }
        public void update(byte[] src, int soff, int slen, byte[] dst, int doff)
        {
            int slim;
    
            slim = soff + slen;
            while (soff < slim) {
                i = (i + 1) & 0xff;
                j = (j + s[i]) & 0xff;
                byte t = s[i];
                s[i] = s[j];
                s[j] = t;
                dst[doff++] = (byte)(src[soff++] ^ s[(s[i] + s[j]) & 0xff]);
            }
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

          bufs.add(buf);
          int off = 0;
          while (off < buf.length) {
            // always OK to fill buf; its size plus the rest of bufs is never more than MAX_ARRAY_LEN
            int r = in.read(buf, off, buf.length - off);
            if (r == -1) {
              return combineBuffers(bufs, totalLen);
            }
            off += r;
            totalLen += r;
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. 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( log.level >= 4 )
                    log.println( e );
            }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteProcessor.java

      /**
       * This method will be called for each chunk of bytes in an input stream. The implementation
       * should process the bytes from {@code buf[off]} through {@code buf[off + len - 1]} (inclusive).
       *
       * @param buf the byte array containing the data to process
       * @param off the initial offset into the array
       * @param len the length of data to be processed
       * @return true to continue processing, false to stop
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
    
        @Override
        public int read ( byte[] b, int off, int len ) throws IOException {
            return readDirect(b, off, len);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         * 
         * @param b
         * @param off
         * @param len
         * @return number of bytes read
         *
         * @throws IOException
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     *
     * @throws IOException if a network error occurs
     */
    
        public int read( byte[] b, int off, int len ) throws IOException {
            return readDirect(b, off, len);
        }
        public int readDirect( byte[] b, int off, int len ) throws IOException {
            if( len <= 0 ) {
                return 0;
            }
            long start = fp;
    
            if( tmp == null ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ReaderInputStream.java

      }
    
      // TODO(chrisn): Consider trying to encode/flush directly to the argument byte
      // buffer when possible.
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        // Obey InputStream contract.
        checkPositionIndexes(off, off + len, b.length);
        if (len == 0) {
          return 0;
        }
    
        // The rest of this method implements the process described by the CharsetEncoder javadoc.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/RandomAmountInputStream.java

      public RandomAmountInputStream(InputStream in, Random random) {
        super(checkNotNull(in));
        this.random = checkNotNull(random);
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        return super.read(b, off, random.nextInt(len) + 1);
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/TestOutputStream.java

        throwIf(OPEN_THROWS);
      }
    
      public boolean closed() {
        return closed;
      }
    
      @Override
      public void write(byte[] b, int off, int len) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b, off, len);
      }
    
      @Override
      public void write(int b) throws IOException {
        throwIf(closed);
        throwIf(WRITE_THROWS);
        super.write(b);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/TransCallNamedPipe.java

        private byte[] pipeData;
        private int pipeDataOff, pipeDataLen;
    
        TransCallNamedPipe( String pipeName, byte[] data, int off, int len ) {
            name = pipeName;
            pipeData = data;
            pipeDataOff = off;
            pipeDataLen = len;
            command = SMB_COM_TRANSACTION;
            subCommand = TRANS_CALL_NAMED_PIPE;
            timeout = 0xFFFFFFFF;
            maxParameterCount = 0;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 2.6K bytes
    - Viewed (0)
Back to top