/// <summary> /// Reads a 16 bit unsigned integer from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the value from.</param> /// <returns>The 16-bit unsigned integer stored at the provided address.</returns> public ushort ReadUnsignedShort(int address) { return(DataSegmentCommon.ReadUnsignedShort(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads a 16 bit unsigned integer from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the value from.</param> /// <returns>The 16-bit unsigned integer stored at the provided address.</returns> public ushort ReadUnsignedShort(int address) { DataSubsection correspondingSubsection = GetDataSegmentForAddress(address); return(DataSegmentCommon.ReadUnsignedShort(correspondingSubsection.RawData, address, correspondingSubsection.StartingAddress)); }