UniPRT SDK  v1.0.0.0
com.UniPRT.Sdk.LabelMaker.RfidConvert 類別 參考文件

支援將非位元組數據轉換為RFID標籤中儲存的順序的方法。 更多...

靜態公開方法(Static Public Methods)

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. 更多...
 

靜態私有方法(Static Private Methods)

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.


此類別(class) 文件是由下列檔案中產生: