Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for srcLen (0.12 sec)

  1. src/syscall/js/js_test.go

    	}()
    	fn()
    }
    
    var copyTests = []struct {
    	srcLen  int
    	dstLen  int
    	copyLen int
    }{
    	{5, 3, 3},
    	{3, 5, 3},
    	{0, 0, 0},
    }
    
    func TestCopyBytesToGo(t *testing.T) {
    	for _, tt := range copyTests {
    		t.Run(fmt.Sprintf("%d-to-%d", tt.srcLen, tt.dstLen), func(t *testing.T) {
    			src := js.Global().Get("Uint8Array").New(tt.srcLen)
    			if tt.srcLen >= 2 {
    				src.SetIndex(1, 42)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. src/runtime/mbarrier.go

    // See go.dev/issue/67401.
    //
    //go:linkname typedslicecopy
    //go:nosplit
    func typedslicecopy(typ *_type, dstPtr unsafe.Pointer, dstLen int, srcPtr unsafe.Pointer, srcLen int) int {
    	n := dstLen
    	if n > srcLen {
    		n = srcLen
    	}
    	if n == 0 {
    		return 0
    	}
    
    	// The compiler emits calls to typedslicecopy before
    	// instrumentation runs, so unlike the other copying and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/go/printer/printer_test.go

    // with its first comment set to comment at any possible source offset.
    func testComment(t *testing.T, f *ast.File, srclen int, comment *ast.Comment) {
    	f.Comments[0].List[0] = comment
    	var buf bytes.Buffer
    	for offs := 0; offs <= srclen; offs++ {
    		buf.Reset()
    		// Printing f should result in a correct program no
    		// matter what the (incorrect) comment position is.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    	alignme uint64
    }
    
    // *byte is really *runtime.Type
    func typedmemmove(typ *byte, dst *any, src *any)
    func typedmemclr(typ *byte, dst *any)
    func typedslicecopy(typ *byte, dstPtr *any, dstLen int, srcPtr *any, srcLen int) int
    
    func selectnbsend(hchan chan<- any, elem *any) bool
    func selectnbrecv(elem *any, hchan <-chan any) (bool, bool)
    
    func selectsetpc(pc *uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    		slice.SetType(s.Type())
    		slice.SetBounded(true)
    
    		ir.CurFunc.SetWBPos(n.Pos())
    
    		// instantiate typedslicecopy(typ *type, dstPtr *any, dstLen int, srcPtr *any, srcLen int) int
    		fn := typecheck.LookupRuntime("typedslicecopy", l1.Type().Elem(), l2.Type().Elem())
    		ptr1, len1 := backingArrayPtrLen(cheapExpr(slice, &nodes))
    		ptr2, len2 := backingArrayPtrLen(l2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final SrcBean src = new SrcBean();
            src.ccc = " ";
            final DestBean dest = new DestBean();
            BeanUtil.copyBeanToBean(src, dest);
            assertThat(dest.ccc, is(" "));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopyBeanToBean_excludesWhitespace() throws Exception {
            final SrcBean src = new SrcBean();
            src.ccc = " ";
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/Cursor.java

    import com.google.common.base.MoreObjects;
    import com.google.common.base.Objects;
    
    /**
     * A virtual console screen cursor. This class avoid complex screen position management.
     */
    public class Cursor {
        int col; // count from left of screen, 0 = left most
        int row; // count from bottom of screen, 0 = bottom most, 1 == 2nd from bottom
    
        @SuppressWarnings("ReferenceEquality")
        public void copyFrom(Cursor position) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/ld.go

     */
    func addlibpath(ctxt *Link, srcref, objref, file, pkg, shlib string, fingerprint goobj.FingerprintType) *sym.Library {
    	if l := ctxt.LibraryByPkg[pkg]; l != nil {
    		return l
    	}
    
    	if ctxt.Debugvlog > 1 {
    		ctxt.Logf("addlibpath: srcref: %s objref: %s file: %s pkg: %s shlib: %s fingerprint: %x\n", srcref, objref, file, pkg, shlib, fingerprint)
    	}
    
    	l := &sym.Library{}
    	ctxt.LibraryByPkg[pkg] = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. src/html/template/content_test.go

    		HTML(`Hello, <b>World</b> &amp;tc!`),
    		HTMLAttr(` dir="ltr"`),
    		JS(`c && alert("Hello, World!");`),
    		JSStr(`Hello, World & O'Reilly\u0021`),
    		URL(`greeting=H%69,&addressee=(World)`),
    		Srcset(`greeting=H%69,&addressee=(World) 2x, https://golang.org/favicon.ico 500.5w`),
    		URL(`,foo/,`),
    	}
    
    	// For each content sensitive escaper, see how it does on
    	// each of the typed strings above.
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 13.5K bytes
    - Viewed (0)
  10. src/html/template/content.go

    	URL string
    
    	// Srcset encapsulates a known safe srcset attribute
    	// (see https://w3c.github.io/html/semantics-embedded-content.html#element-attrdef-img-srcset).
    	//
    	// Use of this type presents a security risk:
    	// the encapsulated content should come from a trusted source,
    	// as it will be included verbatim in the template output.
    	Srcset string
    )
    
    type contentType uint8
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top