Source File
corefoundation.go
Belonging Package
crypto/x509/internal/macos
package macOS
import (
)
func ( CFRef) []byte {
:= CFDataGetLength()
:= CFDataGetBytePtr()
:= (*[1 << 20]byte)(unsafe.Pointer())[::]
:= make([]byte, )
copy(, )
return
}
type CFString CFRef
const kCFAllocatorDefault = 0
const kCFStringEncodingUTF8 = 0x08000100
func ( string) CFString {
:= unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&)).Data)
:= syscall(funcPC(x509_CFStringCreateWithBytes_trampoline), kCFAllocatorDefault, uintptr(),
uintptr(len()), uintptr(kCFStringEncodingUTF8), 0 /* isExternalRepresentation */, 0)
runtime.KeepAlive()
return CFString()
}
func ()
func ( CFRef) {
syscall(funcPC(x509_CFRelease_trampoline), uintptr(), 0, 0, 0, 0, 0)
}
func ()
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |