func AppendInt32(dst []byte, i int32) []byte {
	return AppendUint32(dst, uint32(i))
}
AppendInt32 appends a big endian int32 to dst.
package kbin
import (
	"encoding/binary"
	"errors"
	"math"
	"math/bits"
)
var ErrNotEnoughData = errors.New("response did not contain enough data to be valid")
func AppendBool(dst []byte, v bool) []byte {
	if v {
		return append(dst, 1)
	}
	return append(dst, 0)
}
func AppendInt8(dst []byte, i int8) []byte {
	return append(dst, byte(i))
}
func AppendInt16(dst []byte, i int16) []byte {
	return AppendUint16(dst, uint16(i))
}
func AppendUint16(dst []byte, u uint16) []byte {
	return append(dst, byte(u>>8), byte(u))
}