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()

static UgiEpc UGrokItApi.UgiEpc.FromBytes ( byte []  rawEpc)
inlinestatic

Create a UgiEpc object from an array of bytes

Returns
EPC
Parameters
rawEpcRaw bytes to create object from

◆ FromString()

static UgiEpc UGrokItApi.UgiEpc.FromString ( string  s)
inlinestatic

Create a UgiEpc object from a string of hex digits

Returns
EPC
Parameters
sString to create object from

◆ Equals()

override bool UGrokItApi.UgiEpc.Equals ( object  obj)
inline

Determines whether the specified System.Object is equal to the current UGrokItApi.UgiEpc.

Parameters
objThe 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()

override int UGrokItApi.UgiEpc.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()

override string UGrokItApi.UgiEpc.ToString ( )
inline

Convert to a string of hex digits

Returns
EPC as a String

◆ ToTagURI()

string UGrokItApi.UgiEpc.ToTagURI ( )
inline

Convert to a tag URI string (as defined by the EPC spec)

Returns
The tag URI.

Property Documentation

◆ Bytes

byte [] UGrokItApi.UgiEpc.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