Source File
unsafe.go
Belonging Package
github.com/parquet-go/parquet-go/encoding/thrift
package thriftimport ()// typeID is used as key in encoder and decoder caches to enable using// the optimize runtime.mapaccess2_fast64 function instead of the more// expensive lookup if we were to use reflect.Type as map key.//// typeID holds the pointer to the reflect.Type value, which is unique// in the program.type typeID struct{ ptr unsafe.Pointer }func makeTypeID( reflect.Type) typeID {return typeID{ptr: (*[2]unsafe.Pointer)(unsafe.Pointer(&))[1],}}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |