github.com/Serizao/go-winio@v0.0.0-20230906082528-f02f7f4ad6e8/pkg/etw/ptr64_64.go (about)

     1  //go:build windows && (amd64 || arm64)
     2  // +build windows
     3  // +build amd64 arm64
     4  
     5  package etw
     6  
     7  import (
     8  	"unsafe"
     9  )
    10  
    11  // byteptr64 defines a struct containing a pointer. The struct is guaranteed to
    12  // be 64 bits, regardless of the actual size of a pointer on the platform. This
    13  // is intended for use with certain Windows APIs that expect a pointer as a
    14  // ULONGLONG.
    15  type ptr64 struct {
    16  	ptr unsafe.Pointer
    17  }