Package hw
Class Conversion

Public Method wordToUnsignedInt

static int wordToUnsignedInt(byte[] word)

Throws:

static int wordToUnsignedInt(byte[] word, boolean swapElements)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Description
word 2-element byte array representing a word
boolean swap the array elements

Convert a word, represented by a 2-element byte array, into an unsigned integer value (0 to 65535).