Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 407 for xoffset (0.3 sec)

  1. src/compress/flate/token.go

    // Convert a < xlength, xoffset > pair into a match token.
    func matchToken(xlength uint32, xoffset uint32) token {
    	return token(matchType + xlength<<lengthShift + xoffset)
    }
    
    // Returns the literal of a literal token.
    func (t token) literal() uint32 { return uint32(t - literalType) }
    
    // Returns the extra offset of a match token.
    func (t token) offset() uint32 { return uint32(t) & offsetMask }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/image/ycbcr.go

    		return color.YCbCr{}
    	}
    	yi := p.YOffset(x, y)
    	ci := p.COffset(x, y)
    	return color.YCbCr{
    		p.Y[yi],
    		p.Cb[ci],
    		p.Cr[ci],
    	}
    }
    
    // YOffset returns the index of the first element of Y that corresponds to
    // the pixel at (x, y).
    func (p *YCbCr) YOffset(x, y int) int {
    	return (y-p.Rect.Min.Y)*p.YStride + (x - p.Rect.Min.X)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. src/net/dnsconfig.go

    }
    
    // serverOffset returns an offset that can be used to determine
    // indices of servers in c.servers when making queries.
    // When the rotate option is enabled, this offset increases.
    // Otherwise it is always 0.
    func (c *dnsConfig) serverOffset() uint32 {
    	if c.rotate {
    		return atomic.AddUint32(&c.soffset, 1) - 1 // return 0 to start
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. src/image/jpeg/writer_test.go

    			col := color.RGBA{
    				uint8(rnd.Intn(256)),
    				uint8(rnd.Intn(256)),
    				uint8(rnd.Intn(256)),
    				255,
    			}
    			imgRGBA.SetRGBA(x, y, col)
    			yo := imgYCbCr.YOffset(x, y)
    			co := imgYCbCr.COffset(x, y)
    			cy, ccr, ccb := color.RGBToYCbCr(col.R, col.G, col.B)
    			imgYCbCr.Y[yo] = cy
    			imgYCbCr.Cb[co] = ccr
    			imgYCbCr.Cr[co] = ccb
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  5. clause/limit_test.go

    			"SELECT * FROM `users` LIMIT ?",
    			[]interface{}{limit10},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit10, Offset: 20}, clause.Limit{Offset: 30}, clause.Limit{Limit: &limitNeg10}},
    			"SELECT * FROM `users` OFFSET ?",
    			[]interface{}{30},
    		},
    		{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/index_format.txt

    The following is the format for a full module:
    
    “go index v2\n”
    str uint32 - offset of string table
    n uint32 - number of packages
    for each rawPackage:
    	dirname - string offset
    	package - offset where package begins
    for each rawPackage:
    	error uint32 - string offset // error is produced by fsys.ReadDir or fmt.Errorf
    	dir uint32 - string offset (directory path relative to module root)
    	len(sourceFiles) uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 13 00:22:50 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. src/runtime/cgo/abi_loong64.h

    	MOVV	R26, ((offset)+(4*8))(R3)	\
    	MOVV	R27, ((offset)+(5*8))(R3)	\
    	MOVV	R28, ((offset)+(6*8))(R3)	\
    	MOVV	R29, ((offset)+(7*8))(R3)	\
    	MOVV	R30, ((offset)+(8*8))(R3)	\
    	MOVV	R31, ((offset)+(9*8))(R3)
    
    #define SAVE_F24_TO_F31(offset)	\
    	MOVD	F24, ((offset)+(0*8))(R3)	\
    	MOVD	F25, ((offset)+(1*8))(R3)	\
    	MOVD	F26, ((offset)+(2*8))(R3)	\
    	MOVD	F27, ((offset)+(3*8))(R3)	\
    	MOVD	F28, ((offset)+(4*8))(R3)	\
    	MOVD	F29, ((offset)+(5*8))(R3)	\
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 02:34:18 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. src/internal/coverage/slicewriter/slicewriter.go

    func (sws *WriteSeeker) Seek(offset int64, whence int) (int64, error) {
    	switch whence {
    	case io.SeekStart:
    		if sws.off != offset && (offset < 0 || offset > int64(len(sws.payload))) {
    			return 0, fmt.Errorf("invalid seek: new offset %d (out of range [0 %d]", offset, len(sws.payload))
    		}
    		sws.off = offset
    		return offset, nil
    	case io.SeekCurrent:
    		newoff := sws.off + offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:26 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. src/unique/clone.go

    	atyp := typ.ArrayType()
    	etyp := atyp.Elem
    	offset := baseOffset
    	for range atyp.Len {
    		switch etyp.Kind() {
    		case abi.String:
    			seq.stringOffsets = append(seq.stringOffsets, offset)
    		case abi.Struct:
    			buildStructCloneSeq(etyp, seq, offset)
    		case abi.Array:
    			buildArrayCloneSeq(etyp, seq, offset)
    		}
    		offset += etyp.Size()
    		align := uintptr(etyp.FieldAlign())
    		offset = (offset + align - 1) &^ (align - 1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/time/zoneinfo_js.go

    	// the abbreviation.
    	// Hence, we construct the name from the offset.
    	z.name = "UTC"
    	if offset < 0 {
    		z.name += "-"
    		offset *= -1
    	} else {
    		z.name += "+"
    	}
    	z.name += itoa.Itoa(offset / 60)
    	min := offset % 60
    	if min != 0 {
    		z.name += ":" + itoa.Itoa(min)
    	}
    	localLoc.zone = []zone{z}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 29 20:05:34 UTC 2022
    - 1K bytes
    - Viewed (0)
Back to top