Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 442 for DST (0.05 sec)

  1. src/crypto/subtle/xor.go

    package subtle
    
    // XORBytes sets dst[i] = x[i] ^ y[i] for all i < n = min(len(x), len(y)),
    // returning n, the number of bytes written to dst.
    // If dst does not have length at least n,
    // XORBytes panics without writing anything to dst.
    func XORBytes(dst, x, y []byte) int {
    	n := min(len(x), len(y))
    	if n == 0 {
    		return 0
    	}
    	if n > len(dst) {
    		panic("subtle.XORBytes: dst too short")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:50:40 UTC 2024
    - 618 bytes
    - Viewed (0)
  2. src/encoding/json/indent.go

    		return dst[:origLen], scan.err
    	}
    	if start < len(src) {
    		dst = append(dst, src[start:]...)
    	}
    	return dst, nil
    }
    
    func appendNewline(dst []byte, prefix, indent string, depth int) []byte {
    	dst = append(dst, '\n')
    	dst = append(dst, prefix...)
    	for i := 0; i < depth; i++ {
    		dst = append(dst, indent...)
    	}
    	return dst
    }
    
    // indentGrowthFactor specifies the growth factor of indenting JSON input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:19:31 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. src/encoding/asn1/marshal.go

    	}
    	if t.tag >= 31 {
    		b |= 0x1f
    		dst = append(dst, b)
    		dst = appendBase128Int(dst, int64(t.tag))
    	} else {
    		b |= uint8(t.tag)
    		dst = append(dst, b)
    	}
    
    	if t.length >= 128 {
    		l := lengthLength(t.length)
    		dst = append(dst, 0x80|byte(l))
    		dst = appendLength(dst, t.length)
    	} else {
    		dst = append(dst, byte(t.length))
    	}
    
    	return dst
    }
    
    type bitStringEncoder BitString
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader.go

    func (r *Reader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    	if skip > 0 {
    		n, err := io.ReadFull(r.buf, dst)
    		if err != nil && err != io.ErrUnexpectedEOF {
    			// If an EOF happens after reading some but not all the bytes,
    			// ReadFull returns ErrUnexpectedEOF.
    			return dst[:n], err
    		}
    		dst = dst[:n]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/crypto/internal/boring/aes.go

    	}
    
    	// Make room in dst to append plaintext+overhead.
    	n := len(dst)
    	for cap(dst) < n+len(plaintext)+gcmTagSize {
    		dst = append(dst[:cap(dst)], 0)
    	}
    	dst = dst[:n+len(plaintext)+gcmTagSize]
    
    	// Check delayed until now to make sure len(dst) is accurate.
    	if inexactOverlap(dst[n:], plaintext) {
    		panic("cipher: invalid buffer overlap")
    	}
    
    	outLen := C.size_t(len(plaintext) + gcmTagSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/subr.go

    	// 9. src is unsafe.Pointer and dst is a pointer or uintptr.
    	if src.IsUnsafePtr() && (dst.IsPtr() || dst.IsUintptr()) {
    		return ir.OCONVNOP, ""
    	}
    
    	// 10. src is a slice and dst is an array or pointer-to-array.
    	// They must have same element type.
    	if src.IsSlice() {
    		if dst.IsArray() && types.Identical(src.Elem(), dst.Elem()) {
    			return ir.OSLICE2ARR, ""
    		}
    		if dst.IsPtr() && dst.Elem().IsArray() &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  7. src/image/draw/draw_test.go

    			for i := 0; i < 3; i++ {
    				dst := hgradRed(255).(*image.RGBA).SubImage(r).(Image)
    				// For i != 0, substitute a different-typed dst that will take
    				// us off the fastest code paths. We should still get the same
    				// result, in terms of final pixel RGBA values.
    				switch i {
    				case 1:
    					dst = convertToSlowerRGBA(dst)
    				case 2:
    					dst = convertToSlowestRGBA(dst)
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  8. src/strconv/ftoa.go

    	// sign
    	if neg {
    		dst = append(dst, '-')
    	}
    
    	// mantissa
    	dst, _ = formatBits(dst, mant, 10, false, true)
    
    	// p
    	dst = append(dst, 'p')
    
    	// ±exponent
    	exp -= int(flt.mantbits)
    	if exp >= 0 {
    		dst = append(dst, '+')
    	}
    	dst, _ = formatBits(dst, uint64(exp), 10, exp < 0, true)
    
    	return dst
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. migrator.go

    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    	DropColumn(dst interface{}, field string) error
    	AlterColumn(dst interface{}, field string) error
    	MigrateColumn(dst interface{}, field *schema.Field, columnType ColumnType) error
    	// MigrateColumnUnique migrate column's UNIQUE constraint, it's part of MigrateColumn.
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/transform.go

    // Users should either catch ErrShortDst and allow dst to grow or have dst be at
    // least of size MaxTransformChunkSize to be guaranteed of progress.
    func (f Form) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    	// Cap the maximum number of src bytes to check.
    	b := src
    	eof := atEOF
    	if ns := len(dst); ns < len(b) {
    		err = transform.ErrShortDst
    		eof = false
    		b = b[:ns]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top