func PutInt32(b []byte, v int32) {
	if l := len(b); l != 4 {
		panic(fmt.Sprintf("PutInt32: unexpected byte slice length: %d", l))
	}
	*(*int32)(unsafe.Pointer(&b[0])) = v
}
PutInt32 encodes a int32 into b using the host machine's native endianness.
If b is not exactly 4 bytes in length, PutInt32 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
}
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
}
func PutUint32(b []byte, v uint32) {
	if l := len(b); l != 4 {
		panic(fmt.Sprintf("PutUint32: unexpected byte slice length: %d", l))
	}
	*(*uint32)(unsafe.Pointer(&b[0])) = v
}
func PutUint64(b []byte, v uint64) {
	if l := len(b); l != 8 {
		panic(fmt.Sprintf("PutUint64: unexpected byte slice length: %d", l))
	}
	*(*uint64)(unsafe.Pointer(&b[0])) = v
}