Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 324 for chunks (0.05 seconds)

  1. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopy.java

     * copy operations with multiple chunk specifications.
     *
     * @author mbechler
     *
     */
    public class SrvCopychunkCopy implements Encodable {
    
        private final byte[] sourceKey;
        private final SrvCopychunk[] chunks;
    
        /**
         * Constructs a server copy chunk operation request
         * @param sourceKey the resume key identifying the source file
         * @param chunks the array of copy chunk descriptors
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixTrie.java

          this.chunks = chunks;
          this.chunkShift = chunkShift;
          this.chunkMask = (1 << chunkShift) - 1;
          int total = 0;
          for (CharSequence element : chunks) {
            total += element.length();
          }
          this.length = total;
        }
    
        @Override
        public int length() {
          return length;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  3. tests/test_stream_cancellation.py

        """Call the ASGI app for *path* and cancel after *timeout* seconds.
    
        Returns `True` if the cancellation was delivered (i.e. it did not hang).
        """
        chunks: list[bytes] = []
    
        async def receive():  # type: ignore[no-untyped-def]
            # Simulate a client that never disconnects, rely on cancellation
            await anyio.sleep(float("inf"))
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

       * Computes a hash code based on the data that have been provided to this hasher. This is called
       * after all chunks are handled with {@link #process} and any leftover bytes that did not make a
       * complete chunk are handled with {@link #processRemaining}.
       */
      protected abstract HashCode makeHash();
    
      // Process pent-up data in chunks
      private void munchIfFull() {
        if (buffer.remaining() < 8) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(expected.isEmpty() ? -1 : expected.length(), reader.read(buf));
        assertThat(new String(buf)).isEqualTo(expected);
        assertFullyRead(reader);
    
        // read in chunks to fixed array
        reader = new CharSequenceReader(charSequence);
        buf = new char[5];
        StringBuilder builder = new StringBuilder();
        int read;
        while ((read = reader.read(buf, 0, buf.length)) != -1) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(expected.isEmpty() ? -1 : expected.length(), reader.read(buf));
        assertThat(new String(buf)).isEqualTo(expected);
        assertFullyRead(reader);
    
        // read in chunks to fixed array
        reader = new CharSequenceReader(charSequence);
        buf = new char[5];
        StringBuilder builder = new StringBuilder();
        int read;
        while ((read = reader.read(buf, 0, buf.length)) != -1) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java

        private int totalBytesWritten;
    
        /**
         * Gets the number of bytes written in the last chunk
         * @return the chunkBytesWritten
         */
        public int getChunkBytesWritten() {
            return this.chunkBytesWritten;
        }
    
        /**
         * Gets the number of chunks successfully written
         * @return the chunksWritten
         */
        public int getChunksWritten() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/Hasher.java

     * mind that when dealing with char sequences, the encoded form of two concatenated char sequences
     * is not equivalent to the concatenation of their encoded form. Therefore, {@link
     * #putString(CharSequence, Charset)} should only be used consistently with <i>complete</i>
     * sequences and not broken into chunks.
     *
     * @author Kevin Bourrillion
     * @since 11.0
     */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

                    new_size = len + used;
                }
                tmp = pipe_buf;
                pipe_buf = new byte[new_size];
                i = tmp.length - beg_idx;
                if (used > i) { /* 2 chunks */
                    System.arraycopy(tmp, beg_idx, pipe_buf, 0, i);
                    System.arraycopy(tmp, 0, pipe_buf, i, used - i);
                } else {
                    System.arraycopy(tmp, beg_idx, pipe_buf, 0, used);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

      public val body: ByteString?,
      /** The total size of the body of this request (before truncation).*/
      public val bodySize: Long,
      /**
       * The sizes of the chunks of this request's body, or null if the request's body was not encoded
       * with chunked encoding.
       */
      public val chunkSizes: List<Int>?,
      /**
       * The failure MockWebServer recorded when attempting to decode this request. If, for example,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jun 21 20:36:35 GMT 2025
    - 3.2K bytes
    - Click Count (1)
Back to Top