UniPRT SDK  v1.0.0.0
UniPRT.Sdk.LabelMaker.Interfaces.RfidConvert类 参考

支持方法以帮助将非字节数据转换为存储在 RFID 标签中的顺序。 更多...

静态 Public 成员函数

static byte[] ToBytes (uint uintData)
 Convert a 32 bit unsigned integer into a byte array that can be written to RFID tag. Lower index has MSB.
 
static byte[] ToBytes (ushort ushortData)
 Convert a 16 bit unsigned short integer into a byte array that can be written to RFID tag. Lower index has MSB.
 
static string ToHex (byte[] bytes)
 Convenience routine that takes and array of bytes and converts to hex string that can be written to RFID tag.
 
static string ToHex (string asciiString)
 Convenience routine that takes an ASCII string and converts to hex.
 
static string ToHex (uint uintData)
 Convert a 4 byte unsigned integer into hex string that can be written on RFID tag.
 
static string ToHex (ushort ushortData)
 Convert a 2 byte unsigned integer into hex string that can be written on RFID tag.
 
static uint ToUInt (byte[] bytesFromRfidTag)
 Convert 4 bytes read from RFID tag into 32 bit unsigned integer
 
static ushort ToUShort (byte[] bytesFromRfidTag)
 Convert 2 bytes read from RFID tag into 16 bit unsigned integer
 

详细描述

支持方法以帮助将非字节数据转换为存储在 RFID 标签中的顺序。

数据以从 MSB 到 LSB 的顺序存储于 RFID 标签中。运行 SDK 的 PC 可能是小端或大端,这些支持方法有助于处理可能受运行 SDK 平台端序影响的转换。