What is the meaning of the conversionvar b []bytevar p *byte = (*byte)(unsafe.Pointer(*b[0]))
It is used for example in https://github.com/golang/net/blob/master/internal/socket/iovec_64bit.go.How it is different fromvar b []bytevar p *byte = &b[0]
Thank you!
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/68ad8286-1bcf-4706-ad4c-f33147387c2e%40googlegroups.com.