Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Structures (0.73 sec)

  1. src/cmd/compile/internal/types/sizeof_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types
    
    import (
    	"reflect"
    	"testing"
    	"unsafe"
    )
    
    // Assert that the size of important structures do not change unexpectedly.
    
    func TestSizeof(t *testing.T) {
    	const _64bit = unsafe.Sizeof(uintptr(0)) == 8
    
    	var tests = []struct {
    		val    interface{} // type as a value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 17:08:44 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/cgo/godefs.go

    	fmt.Fprintf(&buf, "\n")
    
    	override := make(map[string]string)
    
    	// Allow source file to specify override mappings.
    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/schedule.go

    // than a full scheduling as done above.
    // Note that simple dependency order won't work: there is no
    // dependency between NilChecks and values like IsNonNil.
    // Auxiliary data structures are passed in as arguments, so
    // that they can be allocated in the caller and be reused.
    // This function takes care of reset them.
    func storeOrder(values []*Value, sset *sparseSet, storeNumber []int32) []*Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/cover/cover.go

    	}
    	return nil
    }
    
    // Block represents the information about a basic block to be recorded in the analysis.
    // Note: Our definition of basic block is based on control structures; we don't break
    // apart && and ||. We could but it doesn't seem important enough to bother.
    type Block struct {
    	startByte token.Pos
    	endByte   token.Pos
    	numStmt   int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizes.go

    		// field f of x, but at least 1."
    		max := int64(1)
    		for _, f := range t.fields {
    			if a := s.Alignof(f.typ); a > max {
    				max = a
    			}
    		}
    		return max
    	case *Slice, *Interface:
    		// Multiword data structures are effectively structs
    		// in which each element has size WordSize.
    		// Type parameters lead to variable sizes/alignments;
    		// StdSizes.Alignof won't be called for them.
    		assert(!isTypeParam(T))
    		return s.WordSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/doc.go

    	jweak
    
    3. The EGLDisplay and EGLConfig types from the EGL API.
    
    These types are uintptr on the Go side because they would otherwise
    confuse the Go garbage collector; they are sometimes not really
    pointers but data structures encoded in a pointer type. All operations
    on these types must happen in C. The proper constant to initialize an
    empty such reference is 0, not nil.
    
    These special cases were introduced in Go 1.10. For auto-updating code
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/size.go

    	case TFUNC:
    		t1 := NewFuncArgs(t)
    		CheckSize(t1)
    		w = int64(PtrSize) // width of func type is pointer
    		t.intRegs = 1
    		t.setAlg(ANOEQ)
    		t.ptrBytes = int64(PtrSize)
    
    	// function is 3 cated structures;
    	// compute their widths as side-effect.
    	case TFUNCARGS:
    		t1 := t.FuncArgs()
    		// TODO(mdempsky): Should package abi be responsible for computing argwid?
    		w = calcStructOffset(t1, t1.Recvs(), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    // field names when generating the C or Go code. For generated
    // C, we leave the names as is (tv_sec, tv_usec), since that's what
    // people are used to seeing in C.  For generated Go code, such as
    // package syscall's data structures, we drop a common prefix
    // (so sec, usec, which will get turned into Sec, Usec for exporting).
    func fieldPrefix(fld []*ast.Field) string {
    	prefix := ""
    	for _, f := range fld {
    		for _, n := range f.Names {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/3-structs.md

    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)
  10. doc/go_spec.html

    <p>
    For an equation of the form <code>X ≡<sub>A</sub> Y</code>,
    where <code>X</code> and <code>Y</code> are types involved
    in an assignment (including parameter passing and return statements),
    the top-level type structures may unify loosely but element types
    must unify exactly, matching the rules for assignments.
    </p>
    
    <p>
    For an equation of the form <code>P ≡<sub>C</sub> C</code>,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top