Perfect! That feels much better. Thanks.
-Jordan
On Wednesday, February 28, 2018 at 4:38:57 PM UTC-7, Ian Lance Taylor wrote:
>
> On Wed, Feb 28, 2018 at 1:58 PM, >
> wrote:
> >
> > What is the best way to get an unsafe.Pointer to a []byte's underlying
> > array?
>
> unsafe.Pointer(&b[0])
>
What is the best way to get an unsafe.Pointer to a []byte's underlying
array?
I have added this function to syscall/syscall_linux.go to support some of
our experiments. One of the new getsockopt calls returns a variable length
amount of data into the buffer, which has no real set size. As such,