Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for setstruct (0.16 sec)

  1. test/typeparam/issue47716.go

    	return unsafe.Sizeof(x)
    }
    
    // size returns the alignment of type T
    func align[T any](x T) uintptr {
    	return unsafe.Alignof(x)
    }
    
    type Tstruct[T any] struct {
    	f1 T
    	f2 int
    }
    
    // offset returns the offset of field f2 in the generic type Tstruct
    func (r *Tstruct[T]) offset() uintptr {
    	return unsafe.Offsetof(r.f2)
    }
    
    func main() {
    	v1 := int(5)
    	if got, want := size(v1), unsafe.Sizeof(v1); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/testing/quick/quick_test.go

    func fString(a string) string { return a }
    
    type TestStringAlias string
    
    func fStringAlias(a TestStringAlias) TestStringAlias { return a }
    
    type TestStruct struct {
    	A int
    	B string
    }
    
    func fStruct(a TestStruct) TestStruct { return a }
    
    type TestStructAlias TestStruct
    
    func fStructAlias(a TestStructAlias) TestStructAlias { return a }
    
    func fUint16(a uint16) uint16 { return a }
    
    type TestUint16Alias uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirDestructuringDeclarationSymbol.kt

        override val analysisSession: KaFirSession,
    ) : KaDestructuringDeclarationSymbol(), KaFirSymbol<FirVariableSymbol<*>> {
    
        init {
            require(firSymbol.name == SpecialNames.DESTRUCT)
        }
    
        override val psi: KtDestructuringDeclaration
            get() = withValidityAssertion {
                when (val psi = firSymbol.fir.psi) {
                    is KtDestructuringDeclaration -> psi
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/tfe_op_internal.h

    #include "tensorflow/c/eager/immediate_execution_operation.h"
    
    // Wraps a pointer to an operation implementation.
    //
    // WARNING: Since the underlying object could be ref-counted a user of this
    // interface cannot destruct the underlying operation object. Instead, call
    // TFE_DeleteOp who calls Release() on the operation pointer and deletes
    // the TFE_Op structure.
    typedef struct TFE_Op TFE_Op;
    
    namespace tensorflow {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 17 19:39:13 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  5. src/unique/clone_test.go

    	testCloneSeq[testStringArray](t, cSeq(0, 2*goarch.PtrSize, 4*goarch.PtrSize))
    	testCloneSeq[testStringStruct](t, cSeq(0))
    	testCloneSeq[testStringStructArrayStruct](t, cSeq(0, 2*goarch.PtrSize))
    	testCloneSeq[testStruct](t, cSeq(8))
    }
    
    func cSeq(stringOffsets ...uintptr) cloneSeq {
    	return cloneSeq{stringOffsets: stringOffsets}
    }
    
    func testCloneSeq[T any](t *testing.T, want cloneSeq) {
    	typName := reflect.TypeFor[T]().Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tfe_tensorhandle_internal.h

    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    
    // Wraps a pointer to a tensor handle implementation.
    //
    // WARNING: Since the underlying object could be ref-counted a user of this
    // interface cannot destruct the underlying handle object. Instead, call
    // TFE_DeleteTensorHandle who calls Release() on the handle pointer and deletes
    // the TFE_TensorHandle structure.
    typedef struct TFE_TensorHandle TFE_TensorHandle;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 17 19:39:13 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/kind_string.go

    	_ = x[TUINTPTR-11]
    	_ = x[TCOMPLEX64-12]
    	_ = x[TCOMPLEX128-13]
    	_ = x[TFLOAT32-14]
    	_ = x[TFLOAT64-15]
    	_ = x[TBOOL-16]
    	_ = x[TPTR-17]
    	_ = x[TFUNC-18]
    	_ = x[TSLICE-19]
    	_ = x[TARRAY-20]
    	_ = x[TSTRUCT-21]
    	_ = x[TCHAN-22]
    	_ = x[TMAP-23]
    	_ = x[TINTER-24]
    	_ = x[TFORW-25]
    	_ = x[TANY-26]
    	_ = x[TSTRING-27]
    	_ = x[TUNSAFEPTR-28]
    	_ = x[TIDEAL-29]
    	_ = x[TNIL-30]
    	_ = x[TBLANK-31]
    	_ = x[TFUNCARGS-32]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:38 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tfe_context_internal.h

    #include "tensorflow/c/eager/immediate_execution_context.h"
    
    // Wraps a pointer to a context implementation.
    //
    // WARNING: Since the underlying object could be ref-counted a user of this
    // interface cannot destruct the underlying context object. Instead, call
    // TFE_DeleteContext who calls Release() on the context pointer and deletes
    // the TFE_Context structure.
    typedef struct TFE_Context TFE_Context;
    
    namespace tensorflow {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 17 19:39:13 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		t.Errorf("got %v, wanted {'Test': 12u, 'Check': 34u}", mpStrUint)
    	}
    	tstStr, err := mv.ConvertToNative(reflect.TypeOf(&tstStruct{}))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(tstStr, &tstStruct{
    		Test:  uint64(12),
    		Check: uint64(34),
    	}) {
    		t.Errorf("got %v, wanted tstStruct{Test: 12u, Check: 34u}", tstStr)
    	}
    }
    
    func TestMapValueEqual(t *testing.T) {
    	mv := NewMapValue()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. src/go/types/struct.go

    	tags   []string // field tags; nil if there are no tags
    }
    
    // NewStruct returns a new struct with the given fields and corresponding field tags.
    // If a field with index i has a tag, tags[i] must be that tag, but len(tags) may be
    // only as long as required to hold the tag with the largest index i. Consequently,
    // if no field has a tag, tags may be nil.
    func NewStruct(fields []*Var, tags []string) *Struct {
    	var fset objset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top