Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MultiReader (0.1 sec)

  1. android/guava/src/com/google/common/io/MultiReader.java

     *
     * @author Bin Zhu
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    class MultiReader extends Reader {
      private final Iterator<? extends CharSource> it;
      @CheckForNull private Reader current;
    
      MultiReader(Iterator<? extends CharSource> readers) throws IOException {
        this.it = readers;
        advance();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. internal/config/crypto.go

    	}
    	header[0] = Version
    	binary.LittleEndian.PutUint32(header[1:], uint32(len(metadata)))
    	buffer.Write(header[:])
    	buffer.Write(metadata)
    
    	return io.MultiReader(
    		&buffer,
    		stream.EncryptReader(plaintext, nonce, nil),
    	), nil
    }
    
    // Decrypt decrypts the ciphertext using a key managed by the KMS.
    // The same context that have been used during encryption must be
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSource.java

        ConcatenatedCharSource(Iterable<? extends CharSource> sources) {
          this.sources = checkNotNull(sources);
        }
    
        @Override
        public Reader openStream() throws IOException {
          return new MultiReader(sources.iterator());
        }
    
        @Override
        public boolean isEmpty() throws IOException {
          for (CharSource source : sources) {
            if (!source.isEmpty()) {
              return false;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader_contrib_test.go

    				unmarshaled:                true,
    			}
    			if !c.header {
    				args.FileHeaderInfo = none
    			}
    			inr := io.Reader(bytes.NewReader(input))
    			if c.sendErr != nil {
    				inr = io.MultiReader(inr, errReader{c.sendErr})
    			}
    			r, _ := NewReader(io.NopCloser(inr), &args)
    			fields := 0
    			for {
    				record, err = r.Read(record)
    				if err != nil {
    					break
    				}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	}
    }
    
    func TestReadZero(t *testing.T) {
    	for _, size := range []int{100, 2} {
    		t.Run(fmt.Sprintf("bufsize=%d", size), func(t *testing.T) {
    			r := io.MultiReader(strings.NewReader("abc"), &emptyThenNonEmptyReader{r: strings.NewReader("def"), n: 1})
    			br := NewReaderSize(r, size)
    			want := func(s string, wantErr error) {
    				p := make([]byte, 50)
    				n, err := br.Read(p)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    		cumulativeSum := int64(0)
    		for _, p := range oi.partLengths {
    			readers = append(readers, NewDummyDataGen(p, cumulativeSum))
    			cumulativeSum += p
    		}
    
    		refReader := io.LimitReader(ioutilx.NewSkipReader(io.MultiReader(readers...), off), length)
    		if ok, msg := cmpReaders(refReader, rec.Body); !ok {
    			t.Fatalf("(%s) Object: %s Case %d ByteRange: %s --> data mismatch! (msg: %s)", instanceType, oi.objectName, i+1, byteRange, msg)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg index/suffixarray, type Index struct
    pkg io, func Copy(Writer, Reader) (int64, error)
    pkg io, func CopyN(Writer, Reader, int64) (int64, error)
    pkg io, func LimitReader(Reader, int64) Reader
    pkg io, func MultiReader(...Reader) Reader
    pkg io, func MultiWriter(...Writer) Writer
    pkg io, func NewSectionReader(ReaderAt, int64, int64) *SectionReader
    pkg io, func Pipe() (*PipeReader, *PipeWriter)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top