Documentation ¶
Index ¶
- func BTo[T constraints.Integer](b []byte) T
- func BinaryTo[T constraints.Integer](b []byte) T
- func BytesToMyStruct(b []byte) unsafe.Pointer
- func Int64To(i int64) []byte
- func IntTo(i int) []byte
- func StructToBytes(s interface{}) []byte
- func ToB[T constraints.Integer](v T) []byte
- func ToBinary[T constraints.Integer](v T) []byte
- func ToInt(b []byte) int
- func ToInt64(b []byte) int64
- func ToUint(b []byte) uint64
- func UintTo(i uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BTo ¶
func BTo[T constraints.Integer](b []byte) T
func BinaryTo ¶
func BinaryTo[T constraints.Integer](b []byte) T
func BytesToMyStruct ¶
func StructToBytes ¶
func StructToBytes(s interface{}) []byte
func ToB ¶
func ToB[T constraints.Integer](v T) []byte
func ToBinary ¶
func ToBinary[T constraints.Integer](v T) []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.