pkg

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 GetCstrLen(byt []byte) int

func GetCtype_Size

func GetCtype_Size(tag string) int

func GetStr

func GetStr(bytBuf []byte, start, nlen int) string

func GetUInt32

func GetUInt32(bytBuf []byte, start, nlen int) uint32

func GetUInt8

func GetUInt8(bytBuf []byte, start, nlen int) uint8

func PrtStruct

func PrtStruct(v interface{})

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"` }

type UK_Version

type UK_Version struct {
	Major uint8 `ctype:"order=1,size=1"`
	Minor uint8 `ctype:"order=2,size=1"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL