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

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

静态 Public 成员函数

static int ToUInt (byte[] bytesFromRfidTag)
 Convert 4 bytes read from RFID tag into 32 bit unsigned integer 更多...
 
static int ToUShort (byte[] bytesFromRfidTag)
 Convert 2 bytes read from RFID tag into 16 bit unsigned integer 更多...
 
static String ToHex (long uintData)
 Convert a 4-byte unsigned integer into hex string that can be written on RFID tag. 更多...
 
static String ToHex (int ushortData)
 Convert a 2-byte unsigned integer into hex string that can be written on RFID tag. 更多...
 
static byte[] ToBytes (long 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 (int 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 an 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. 更多...
 

静态 Private 成员函数

static String ToHexString (byte[] bytes)
 

详细描述

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

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

成员函数说明

◆ ToBytes() [1/2]

static byte [] com.UniPRT.Sdk.LabelMaker.RfidConvert.ToBytes ( int  ushortData)
static

Convert a 16-bit unsigned short integer into a byte array that can be written to RFID tag. Lower index has MSB.

◆ ToBytes() [2/2]

static byte [] com.UniPRT.Sdk.LabelMaker.RfidConvert.ToBytes ( long  uintData)
static

Convert a 32-bit unsigned integer into a byte array that can be written to RFID tag. Lower index has MSB.

被这些函数引用 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHex().

◆ ToHex() [1/4]

static String com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHex ( byte[]  bytes)
static

Convenience routine that takes an array of bytes and converts to hex string that can be written to RFID tag.

引用了 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHexString().

◆ ToHex() [2/4]

static String com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHex ( int  ushortData)
static

Convert a 2-byte unsigned integer into hex string that can be written on RFID tag.

引用了 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToBytes() , 以及 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHexString().

◆ ToHex() [3/4]

static String com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHex ( long  uintData)
static

Convert a 4-byte unsigned integer into hex string that can be written on RFID tag.

引用了 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToBytes() , 以及 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHexString().

◆ ToHex() [4/4]

static String com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHex ( String  asciiString)
static

Convenience routine that takes an ASCII string and converts to hex.

引用了 com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHexString().

◆ ToHexString()

static String com.UniPRT.Sdk.LabelMaker.RfidConvert.ToHexString ( byte[]  bytes)
staticprivate

◆ ToUInt()

static int com.UniPRT.Sdk.LabelMaker.RfidConvert.ToUInt ( byte[]  bytesFromRfidTag)
static

Convert 4 bytes read from RFID tag into 32 bit unsigned integer

◆ ToUShort()

static int com.UniPRT.Sdk.LabelMaker.RfidConvert.ToUShort ( byte[]  bytesFromRfidTag)
static

Convert 2 bytes read from RFID tag into 16 bit unsigned integer


该类的文档由以下文件生成: