func PutUint16(b []byte, v uint16) {
	if l := len(b); l != 2 {
		panic(fmt.Sprintf("PutUint16: unexpected byte slice length: %d", l))
	}
	*(*uint16)(unsafe.Pointer(&b[0])) = v
}
PutUint16 encodes a uint16 into b using the host machine's native endianness.
If b is not exactly 2 bytes in length, PutUint16 will panic.
package nlenc
import (
	"fmt"
	"unsafe"
)
func PutUint8(b []byte, v uint8) {
	if l := len(b); l != 1 {
		panic(fmt.Sprintf("PutUint8: unexpected byte slice length: %d", l))
	}
	b[0] = v
}