Uses a temporary conversion from unsafe.Pointer to *[valMaxSize]byte to create a slice of the actual data length (and capacity).
edit: It does not appear to slow anything down. If anything it makes things slightly faster. And it avoids a direct dependency on the "reflect" package.
Fixes #67
Uses a temporary conversion from unsafe.Pointer to
*[valMaxSize]byte
to create a slice of the actual data length (and capacity).edit: It does not appear to slow anything down. If anything it makes things slightly faster. And it avoids a direct dependency on the "reflect" package.