Method: HardsploitAPI.BytesToInt

Defined in:
lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb

.BytesToInt(lByte:, hByte:) ⇒ Object

Obtain high byte of a word

  • lByte

    low byte

  • hByte

    high byte

Return 16 bits integer concatenate with low and high bytes



93
94
95
# File 'lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb', line 93

def self.BytesToInt(lByte:,hByte:)
	return (lByte + (hByte<<8))
end