Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for original (0.12 sec)

  1. src/strings/reader.go

    // Len returns the number of bytes of the unread portion of the
    // string.
    func (r *Reader) Len() int {
    	if r.i >= int64(len(r.s)) {
    		return 0
    	}
    	return int(int64(len(r.s)) - r.i)
    }
    
    // Size returns the original length of the underlying string.
    // Size is the number of bytes available for reading via [Reader.ReadAt].
    // The returned value is always the same and is not affected by calls
    // to any other method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/go/doc/reader.go

    		switch {
    		case m.Decl == nil:
    			// exclude conflict entry
    		case allMethods, m.Level == 0, !token.IsExported(removeStar(m.Orig)):
    			// forced inclusion, method not embedded, or method
    			// embedded but original receiver type not exported
    			list[i] = m
    			i++
    		}
    	}
    	list = list[0:i]
    	slices.SortFunc(list, func(a, b *Func) int {
    		return strings.Compare(a.Name, b.Name)
    	})
    	return list
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. src/compress/zlib/reader.go

    	if checksum != z.digest.Sum32() {
    		z.err = ErrChecksum
    		return n, z.err
    	}
    	return n, io.EOF
    }
    
    // Calling Close does not close the wrapped [io.Reader] originally passed to [NewReader].
    // In order for the ZLIB checksum to be verified, the reader must be
    // fully consumed until the [io.EOF].
    func (z *reader) Close() error {
    	if z.err != nil && z.err != io.EOF {
    		return z.err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    }
    
    // mergePAX merges paxHdrs into hdr for all relevant fields of Header.
    func mergePAX(hdr *Header, paxHdrs map[string]string) (err error) {
    	for k, v := range paxHdrs {
    		if v == "" {
    			continue // Keep the original USTAR value
    		}
    		var id64 int64
    		switch k {
    		case paxPath:
    			hdr.Name = v
    		case paxLinkpath:
    			hdr.Linkname = v
    		case paxUname:
    			hdr.Uname = v
    		case paxGname:
    			hdr.Gname = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/image/jpeg/reader.go

    	// we assume that it is YCbCrK. This matches libjpeg's jdapimin.c.
    	if d.adobeTransform != adobeTransformUnknown {
    		// Convert the YCbCr part of the YCbCrK to RGB, invert the RGB to get
    		// CMY, and patch in the original K. The RGB to CMY inversion cancels
    		// out the 'Adobe inversion' described in the applyBlack doc comment
    		// above, so in practice, only the fourth channel (black) is inverted.
    		bounds := d.img3.Bounds()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top