Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 316 for offsetsof (0.12 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go

    import (
    	"syscall"
    	"unsafe"
    )
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    	_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
    	return newoffset, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 596 bytes
    - Viewed (0)
  2. test/fixedbugs/issue22351.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "unsafe"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 24 02:28:02 UTC 2017
    - 268 bytes
    - Viewed (0)
  3. src/go/types/builtins_test.go

    	{"Alignof", `var x P; _ = unsafe.Alignof(x)`, `func(P) uintptr`},
    
    	{"Offsetof", `var x struct{f bool}; _ = unsafe.Offsetof(x.f)`, `invalid type`},           // constant
    	{"Offsetof", `var x struct{_ int; f bool}; _ = unsafe.Offsetof((&x).f)`, `invalid type`}, // constant
    	{"Offsetof", `var x struct{_ int; f P}; _ = unsafe.Offsetof((&x).f)`, `func(P) uintptr`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. test/fixedbugs/issue7525d.go

    // license that can be found in the LICENSE file.
    
    // Issue 7525: self-referential array types.
    
    package main
    
    import "unsafe"
    
    var x struct { // GC_ERROR "initialization cycle: x refers to itself"
    	b [unsafe.Offsetof(x.b)]int // GCCGO_ERROR "array bound|typechecking loop|invalid array"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 14:21:33 UTC 2022
    - 414 bytes
    - Viewed (0)
  5. test/typeparam/issue48094.dir/a.go

    	return unsafe.Sizeof(t)
    }
    
    func G[T any]() uintptr {
    	var t T
    	return unsafe.Alignof(t)
    }
    
    //func H[T any]() uintptr {
    //	type S struct {
    //		a T
    //		b T
    //	}
    //	var s S
    //	return unsafe.Offsetof(s.b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 31 17:21:38 UTC 2021
    - 429 bytes
    - Viewed (0)
  6. pkg/ctrlz/assets/static/js/popper-1.12.9.min.js

    tion` is deprecated, use `modifier.fn`!');var i=t['function']||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=O(this.state,this.popper,this.reference),e.placement=v(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this....
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  7. test/fixedbugs/issue54220.go

    package main
    
    import (
    	"strconv"
    	"sync/atomic"
    	"unsafe"
    )
    
    type t struct {
    	i1 atomic.Int32
    	i2 atomic.Int64
    }
    
    var v t
    
    func main() {
    	if o := unsafe.Offsetof(v.i2); o != 8 {
    		panic("unexpected offset, want: 8, got: " + strconv.Itoa(int(o)))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 14:12:01 UTC 2022
    - 420 bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/popper.min.js

    deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundarie...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 07 10:28:50 UTC 2020
    - 20.8K bytes
    - Viewed (0)
  9. test/fixedbugs/issue62515.go

    func F[G int](g G) (uintptr, uintptr, uintptr) {
    	var c chan func() int
    	type s struct {
    		g G
    		x []int
    	}
    	return unsafe.Sizeof(s{g, make([]int, (<-c)())}),
    		unsafe.Alignof(s{g, make([]int, (<-c)())}),
    		unsafe.Offsetof(s{g, make([]int, (<-c)())}.x)
    }
    
    func main() {
    	F(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 11 20:48:07 UTC 2023
    - 592 bytes
    - Viewed (0)
  10. test/fixedbugs/issue53439.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    import "unsafe"
    
    func F[T int](v T) uintptr {
    	return unsafe.Offsetof(struct{ f T }{
    		func(T) T { return v }(v),
    	}.f)
    }
    
    func f() {
    	F(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 21:16:32 UTC 2023
    - 325 bytes
    - Viewed (0)
Back to top