Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Jake (0.14 sec)

  1. src/cmd/cgo/ast.go

    	ast1 := parse(abspath, src, parser.SkipObjectResolution|parser.ParseComments)
    	ast2 := parse(abspath, src, parser.SkipObjectResolution)
    
    	f.Package = ast1.Name.Name
    	f.Name = make(map[string]*Name)
    	f.NamePos = make(map[*Name]token.Pos)
    
    	// In ast1, find the import "C" line and get any extra C preamble.
    	sawC := false
    	for _, decl := range ast1.Decls {
    		switch decl := decl.(type) {
    		case *ast.GenDecl:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    		}
    
    		rlen := rand.Intn(len(testString))
    		fub := make([]byte, rlen)
    		n, _ := buf.Read(fub)
    		s = s[n:]
    	}
    	empty(t, "TestMixedReadsAndWrites (2)", &buf, s, make([]byte, buf.Len()))
    }
    
    func TestCapWithPreallocatedSlice(t *testing.T) {
    	buf := NewBuffer(make([]byte, 10))
    	n := buf.Cap()
    	if n != 10 {
    		t.Errorf("expected 10, got %d", n)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    forth). A Go function called by C code may take C pointers as arguments,
    and it may store non-pointer data, C pointers, or Go pointers to pinned
    memory through those pointers. It may not store a Go pointer to unpinned
    memory in memory pointed to by a C pointer (which again, implies that it
    may not store a string, slice, channel, and so forth). A Go function
    called by C code may take a Go pointer but it must preserve the property
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    		{math.MaxInt64, "\x80\x7f\xff\xff\xff\xff\xff\xff\xff", true},
    		{math.MinInt64, "\xff\x80\x00\x00\x00\x00\x00\x00\x00", true},
    	}
    
    	for _, v := range vectors {
    		var f formatter
    		got := make([]byte, len(v.want))
    		f.formatNumeric(got, v.in)
    		ok := (f.err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("formatNumeric(%d): got formatting failure, want success", v.in)
    			} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/operand_test.go

    	{"(1*4)(DI)", "4(DI)"},
    	{"(4*4)(BP)", "16(BP)"},
    	{"(AX)", "(AX)"},
    	{"(BP)(CX*4)", "(BP)(CX*4)"},
    	{"(BP*8)", "0(BP*8)"},
    	{"(BX)", "(BX)"},
    	{"(SP)", "(SP)"},
    	{"*AX", "AX"}, // TODO: Should make * illegal here; a simple alias for JMP AX.
    	{"*runtimeĀ·_GetStdHandle(SB)", "*runtime._GetStdHandle(SB)"},
    	{"-(4+12)(DI)", "-16(DI)"},
    	{"-1(DI)(BX*1)", "-1(DI)(BX*1)"},
    	{"-96(DI)(BX*1)", "-96(DI)(BX*1)"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  6. src/archive/tar/common.go

    		h.ChangeTime = sys.ChangeTime
    		if sys.Xattrs != nil {
    			h.Xattrs = make(map[string]string)
    			for k, v := range sys.Xattrs {
    				h.Xattrs[k] = v
    			}
    		}
    		if sys.Typeflag == TypeLink {
    			// hard link
    			h.Typeflag = TypeLink
    			h.Size = 0
    			h.Linkname = sys.Linkname
    		}
    		if sys.PAXRecords != nil {
    			h.PAXRecords = make(map[string]string)
    			for k, v := range sys.PAXRecords {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  7. src/archive/zip/writer_test.go

    	},
    	{
    		Name:   "chardevice",
    		Data:   []byte("char device file"),
    		Method: Deflate,
    		Mode:   0755 | fs.ModeDevice | fs.ModeCharDevice,
    	},
    }
    
    func TestWriter(t *testing.T) {
    	largeData := make([]byte, 1<<17)
    	if _, err := rand.Read(largeData); err != nil {
    		t.Fatal("rand.Read failed:", err)
    	}
    	writeTests[1].Data = largeData
    	defer func() {
    		writeTests[1].Data = nil
    	}()
    
    	// write a zip file
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  8. src/bytes/buffer.go

    	}()
    	// TODO(http://golang.org/issue/51462): We should rely on the append-make
    	// pattern so that the compiler can call runtime.growslice. For example:
    	//	return append(b, make([]byte, n)...)
    	// This avoids unnecessary zero-ing of the first len(b) bytes of the
    	// allocated slice, but this pattern causes b to escape onto the heap.
    	//
    	// Instead use the append-make pattern with a nil slice to ensure that
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    			fr = &regFileReader{r, maker.makeReg.size}
    			fr = &sparseFileReader{fr, sph, 0}
    		default:
    			t.Fatalf("test %d, unknown make operation: %T", i, maker)
    		}
    
    		for j, tf := range v.tests {
    			switch tf := tf.(type) {
    			case testRead:
    				b := make([]byte, tf.cnt)
    				n, err := fr.Read(b)
    				if got := string(b[:n]); got != tf.wantStr || err != tf.wantErr {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/arch.go

    	return false
    }
    
    func jumpWasm(word string) bool {
    	return word == "JMP" || word == "CALL" || word == "Call" || word == "Br" || word == "BrIf"
    }
    
    func archX86(linkArch *obj.LinkArch) *Arch {
    	register := make(map[string]int16)
    	// Create maps for easy lookup of instruction names etc.
    	for i, s := range x86.Register {
    		register[s] = int16(i + x86.REG_AL)
    	}
    	// Pseudo-registers.
    	register["SB"] = RSB
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
Back to top