Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 268 for woff (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

         *
         * @param b the byte array to read data into
         * @param off the offset in the array at which to start storing bytes
         * @param len the maximum number of bytes to read
         * @return the number of bytes read, or -1 if end of file is reached
         * @throws SmbException if an I/O error occurs
         */
        public int read(final byte b[], final int off, int len) throws SmbException {
            if (len <= 0) {
                return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. 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;
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            }
    
            while (off < length) {
                final 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 Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            assertEquals(expected, len);
    
            int off = 0;
            assertEquals(65535, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(65535, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(0, SMBUtil.readInt2(buf, off));
            off += 2;
            assertEquals(0x12345678, SMBUtil.readInt4(buf, off));
            off += 4;
            assertEquals(blob.length, SMBUtil.readInt2(buf, off));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/AbstractHasher.java

        return putBytes(bytes, 0, bytes.length);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes, int off, int len) {
        Preconditions.checkPositionIndexes(off, off + len, bytes.length);
        for (int i = 0; i < len; i++) {
          putByte(bytes[off + i]);
        }
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(ByteBuffer b) {
        if (b.hasArray()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * @param off offset in the buffer
         * @param length maximum length to receive
         * @return number of bytes received
         * @throws IOException if an I/O error occurs
         */
        int recv(byte[] buf, int off, int length) throws IOException;
    
        /**
         * Send data to the pipe
         *
         * @param buf buffer containing data to send
         * @param off offset in the buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            int off = 0; // Offset where position should be written
    
            // Test with non-null source array
            int bytesWritten = NtlmMessage.writeSecurityBufferContent(dest, pos, off, src);
            assertEquals(src.length, bytesWritten, "Should return correct number of bytes written.");
            assertEquals(pos, NtlmMessage.readULong(dest, off), "Position should be written correctly at offset.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. 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 (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
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        testThreshold(1000, 100, false, true);
      }
    
      static void write(OutputStream out, byte[] b, int off, int len, boolean singleByte)
          throws IOException {
        if (singleByte) {
          for (int i = off; i < off + len; i++) {
            out.write(b[i]);
          }
        } else {
          out.write(b, off, len);
        }
        out.flush(); // for coverage
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. 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()
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top