func Uint16(b []byte) uint16 {
	if l := len(b); l != 2 {
		panic(fmt.Sprintf("Uint16: unexpected byte slice length: %d", l))
	}
	return *(*uint16)(unsafe.Pointer(&b[0]))
}
Uint16 decodes a uint16 from b using the host machine's native endianness.
If b is not exactly 2 bytes in length, Uint16 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
}
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
}
func Uint8(b []byte) uint8 {
	if l := len(b); l != 1 {
		panic(fmt.Sprintf("Uint8: unexpected byte slice length: %d", l))
	}
	return b[0]
}