UGrokItApi.UgiEpc Class Reference
Overview
UgiEpc encapsulates an EPC code. Immutable.
Class Methods | |
static UgiEpc | FromBytes (byte[] rawEpc) |
Create a UgiEpc object from an array of bytes More... | |
static UgiEpc | FromString (string s) |
Create a UgiEpc object from a string of hex digits More... | |
Instance Methods | |
override bool | Equals (object obj) |
Determines whether the specified System.Object is equal to the current UGrokItApi.UgiEpc. More... | |
override int | GetHashCode () |
Serves as a hash function for a UGrokItApi.UgiEpc object. More... | |
override string | ToString () |
Convert to a string of hex digits More... | |
string | ToTagURI () |
Convert to a tag URI string (as defined by the EPC spec) More... | |
Properties | |
byte [] | Bytes [get] |
Get the raw bytes for the EPC More... | |
Public Attributes | |
const int | MAX_EPC_LENGTH = 27 |
Maximum length of an EPC code, in bytes More... | |
Instance Method Documentation
◆ FromBytes()
|
inlinestatic |
Create a UgiEpc object from an array of bytes
- Returns
- EPC
- Parameters
-
rawEpc Raw bytes to create object from
◆ FromString()
|
inlinestatic |
Create a UgiEpc object from a string of hex digits
- Returns
- EPC
- Parameters
-
s String to create object from
◆ Equals()
|
inline |
Determines whether the specified System.Object is equal to the current UGrokItApi.UgiEpc.
- Parameters
-
obj The System.Object to compare with the current UGrokItApi.UgiEpc.
- Returns
true
if the specified System.Object is equal to the current UGrokItApi.UgiEpc; otherwise,false
.
◆ GetHashCode()
|
inline |
Serves as a hash function for a UGrokItApi.UgiEpc object.
- Returns
- A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
◆ ToString()
|
inline |
Convert to a string of hex digits
- Returns
- EPC as a String
◆ ToTagURI()
|
inline |
Convert to a tag URI string (as defined by the EPC spec)
- Returns
- The tag URI.
Property Documentation
◆ Bytes
|
get |
Get the raw bytes for the EPC
Member Data Documentation
◆ MAX_EPC_LENGTH
const int UGrokItApi.UgiEpc.MAX_EPC_LENGTH = 27 |
Maximum length of an EPC code, in bytes
Copyright © 2012-2017 U Grok It, Inc. connect@UGrokIt.com U Grok It and the U Grok It logo are registered trademarks of U Grok It, Inc. All other trademarks and copyrights are the property of their respective owners |