Documentation ¶
Index ¶
- func Bytes_2_Struct(byt []byte, v interface{})
- func GetCstrLen(byt []byte) int
- func GetCtype_Size(tag string) int
- func GetStr(bytBuf []byte, start, nlen int) string
- func GetUInt32(bytBuf []byte, start, nlen int) uint32
- func GetUInt8(bytBuf []byte, start, nlen int) uint8
- func PrtStruct(v interface{})
- type UK_CosDEVINFO
- type UK_Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes_2_Struct ¶
func Bytes_2_Struct(byt []byte, v interface{})
func GetCstrLen ¶
func GetCtype_Size ¶
Types ¶
type UK_CosDEVINFO ¶
type UK_CosDEVINFO struct { Version UK_Version `ctype:"size=2"` Manufacturer string `ctype:"size=64"` Issuer string `ctype:"size=64"` Label string `ctype:"size=32"` SerialNumber string `ctype:"size=32"` HWVersion UK_Version `ctype:"size=2"` FirmwareVersion UK_Version `ctype:"size=2"` AlgSymCap uint32 `ctype:"size=4"` AlgAsymCap uint32 `ctype:"size=4"` AlgHashCap uint32 `ctype:"size=4"` DevAuthAlgId uint32 `ctype:"size=4"` TotalSpace uint32 `ctype:"size=4"` FreeSpace uint32 `ctype:"size=4"` MaxECCBufferSize uint32 `ctype:"size=4"` MaxBufferSize uint32 `ctype:"size=4"` }
type UK_CosDEVINFO struct { Version UK_Version `ctype:"order=1,size=2"` Manufacturer string `ctype:"order=2,size=64"` Issuer string `ctype:"order=3,size=64"` Label string `ctype:"order=4,size=32"` SerialNumber string `ctype:"order=5,size=32"` HWVersion UK_Version `ctype:"order=6,size=2"` FirmwareVersion UK_Version `ctype:"order=7,size=2"` AlgSymCap uint32 `ctype:"order=8,size=4"` AlgAsymCap uint32 `ctype:"order=9,size=4"` AlgHashCap uint32 `ctype:"order=10,size=4"` DevAuthAlgId uint32 `ctype:"order=11,size=4"` TotalSpace uint32 `ctype:"order=12,size=4"` FreeSpace uint32 `ctype:"order=13,size=4"` MaxECCBufferSize uint32 `ctype:"order=14,size=4"` MaxBufferSize uint32 `ctype:"order=15,size=4"` }