Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PROVIDED (0.14 sec)

  1. internal/hash/reader.go

    // if sha256Hex is not the empty string.
    //
    // If size resp. actualSize is unknown at the time of calling
    // NewReader then it should be set to -1.
    // When size is >=0 it *must* match the amount of data provided by r.
    //
    // NewReader may try merge the given size, MD5 and SHA256 values
    // into src - if src is a Reader - to avoid computing the same
    // checksums multiple times.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  2. internal/etag/reader.go

    	src io.Reader
    
    	md5      hash.Hash
    	checksum ETag
    
    	readN int64
    }
    
    // NewReader returns a new Reader that computes the
    // MD5 checksum of the content read from r as ETag.
    //
    // If the provided etag is not nil the returned
    // Reader compares the etag with the computed
    // MD5 sum once the r returns io.EOF.
    func NewReader(ctx context.Context, r io.Reader, etag ETag, forceMD5 []byte) *Reader {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top