Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for memcpy (0.33 sec)

  1. src/cmd/cgo/internal/test/test.go

    	var x C.size_t
    
    	C.calloc(x, x)
    	C.malloc(x)
    	C.realloc(nil, x)
    	C.memcpy(nil, nil, x)
    	C.memcmp(nil, nil, x)
    	C.memmove(nil, nil, x)
    	C.strncpy(nil, nil, x)
    	C.strncmp(nil, nil, x)
    	C.strncat(nil, nil, x)
    	x = C.strxfrm(nil, nil, x)
    	C.memchr(nil, 0, x)
    	x = C.strcspn(nil, nil)
    	x = C.strspn(nil, nil)
    	C.memset(nil, 0, x)
    	x = C.strlen(nil)
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    All Go pointers passed to C must point to pinned Go memory. Go pointers
    passed as function arguments to C functions have the memory they point to
    implicitly pinned for the duration of the call. Go memory reachable from
    these function arguments must be pinned as long as the C code has access
    to it. Whether Go memory is pinned is a dynamic property of that memory
    region; it has nothing to do with the type of the pointer.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. doc/next/6-stdlib/3-structs.md

    ### New structs package
    
    The new [structs] package provides
    types for struct fields that modify properties of
    the containing struct type such as memory layout.
    
    In this release, the only such type is
    [`HostLayout`](/pkg/structs#HostLayout)
    which indicates that a structure with a field of that
    type has a layout that conforms to host platform
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:06:02 UTC 2024
    - 356 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/alg.go

    const (
    	AUNK   AlgKind = iota
    	ANOEQ          // Types cannot be compared
    	ANOALG         // implies ANOEQ, and in addition has a part that is marked Noalg
    	AMEM           // Type can be compared/hashed as regular memory.
    	AMEM0          // Specific subvariants of AMEM (TODO: move to ../reflectdata?)
    	AMEM8
    	AMEM16
    	AMEM32
    	AMEM64
    	AMEM128
    	ASTRING
    	AINTER
    	ANILINTER
    	AFLOAT32
    	AFLOAT64
    	ACPLX64
    	ACPLX128
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/validtype.go

    // an enclosing function and can be ignored.
    // The nest list describes the stack (the "nest in memory") of types which
    // contain (or embed in the case of interfaces) other types. For instance, a
    // struct named S which contains a field of named type F contains (the memory
    // of) F in S, leading to the nest S->F. If a type appears in its own nest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/cache/cache.go

    	}
    	return file, entry, nil
    }
    
    // GetBytes looks up the action ID in the cache and returns
    // the corresponding output bytes.
    // GetBytes should only be used for data that can be expected to fit in memory.
    func GetBytes(c Cache, id ActionID) ([]byte, Entry, error) {
    	entry, err := c.Get(id)
    	if err != nil {
    		return nil, entry, err
    	}
    	data, _ := os.ReadFile(c.OutputFile(entry.OutputID))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    // making a copy of an array.
    //
    // This tells _cgoCheckPointer to check the complete contents of the
    // slice or array being indexed, but no other part of the memory allocation.
    func (p *Package) checkIndex(sb, sbCheck *bytes.Buffer, arg ast.Expr, i int) bool {
    	// Strip type conversions.
    	x := arg
    	for {
    		c, ok := x.(*ast.CallExpr)
    		if !ok || len(c.Args) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/instantiate.go

    	for i, ctxt := range ctxts {
    		hashes[i] = ctxt.instanceHash(orig, targs)
    	}
    
    	// Record the result in all contexts.
    	// Prefer to re-use existing types from expanding context, if it exists, to reduce
    	// the memory pinned by the Named type.
    	updateContexts := func(res Type) Type {
    		for i := len(ctxts) - 1; i >= 0; i-- {
    			res = ctxts[i].update(hashes[i], orig, targs, res)
    		}
    		return res
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "AtomicLoad32", argLength: 2, typ: "(UInt32,Mem)"},                                  // Load from arg0.  arg1=memory.  Returns loaded value and new memory.
    	{name: "AtomicLoad64", argLength: 2, typ: "(UInt64,Mem)"},                                  // Load from arg0.  arg1=memory.  Returns loaded value and new memory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    	    Writes test binary as -c would.
    
    	-memprofilerate n
    	    Enable more precise (and expensive) memory allocation profiles by
    	    setting runtime.MemProfileRate. See 'go doc runtime.MemProfileRate'.
    	    To profile all memory allocations, use -test.memprofilerate=1.
    
    	-mutexprofile mutex.out
    	    Write a mutex contention profile to the specified file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top