Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for srcLen (0.28 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. pkg/test/framework/components/echo/echotest/filters_test.go

    							srcKey := from.Config().ClusterLocalFQDN()
    							if testTopology[srcKey] == nil {
    								testTopology[srcKey] = map[string]int{}
    							}
    							var dstnames []string
    							for _, dst := range dsts {
    								dstnames = append(dstnames, dst.Config().ClusterLocalFQDN())
    							}
    							dstKey := strings.Join(dstnames, "_")
    							testTopology[srcKey][dstKey]++
    						})
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. testing/smoke-test/src/smokeTest/resources/org/gradle/play/integtest/fixtures/external/basicplayapp/app/views/main.scala.html

    @(title: String)(content: Html)
    <!DOCTYPE html>
    <html>
        <head>
            <title>@title</title>
            <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
            <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
            <script src="@routes.Assets.at("javascripts/hello.js")" type="text/javascript"></script>
        </head>
        <body>
    @content
        </body>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 440 bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/play-example/app/views/main.scala.html

    @(title: String)(content: Html)
    
    <!DOCTYPE html>
    
    <html>
        <head>
            <title>@title</title>
            <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
            <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
            <script src="@routes.Assets.at("javascripts/hello.js")" type="text/javascript"></script>
        </head>
        <body>
            @content
        </body>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 450 bytes
    - Viewed (0)
Back to top