This question is similar to this one, only I want to convert a pointer and a length to a fixed-size Golang array.
For a slice, the solution was to create a struct with the relevant information, and cast it directly, as follows:
// Slice memory layout
var sl = struct {
addr uintptr
len int
cap int
}{addr, length, length}
// Use unsafe to turn sl into a []byte.
b := *(*[]byte)(unsafe.Pointer(&sl))
How would you create an array for that specified memory instead?