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 ¶ added in v1.5.11
func BTo[T constraints.Integer](b []byte) T
func BinaryTo ¶ added in v1.5.11
func BinaryTo[T constraints.Integer](b []byte) T
func BytesToMyStruct ¶
func StructToBytes ¶
func StructToBytes(s interface{}) []byte
func ToB ¶ added in v1.5.11
func ToB[T constraints.Integer](v T) []byte
func ToBinary ¶ added in v1.5.11
func ToBinary[T constraints.Integer](v T) []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.