ptr64_64.go 407 B

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