/// <summary> /// Reads a 32 bit signed integer from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the value from.</param> /// <returns>The 32-bit signed integer stored at the provided address.</returns> public int ReadWord(int address) { return(DataSegmentCommon.ReadWord(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads an unsigned byte from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the byte from.</param> /// <returns>The byte stored at the provided address.</returns> public byte ReadUnsignedByte(int address) { return(DataSegmentCommon.ReadUnsignedByte(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) { return(DataSegmentCommon.ReadUnsignedShort(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads a 64 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 64-bit unsigned integer stored at the provided address.</returns> public ulong ReadUnsignedLong(int address) { return(DataSegmentCommon.ReadUnsignedLong(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads a null-terminated ASCII string from the .data segment. /// </summary> /// <param name="address">The address to retrieve the string from.</param> /// <returns>A string encoded in the ASCII encoding.</returns> public string ReadString(int address) { return(DataSegmentCommon.ReadString(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads a 32 bit single precision floating point value from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the value from.</param> /// <returns>The 32-bit float value stored at the provided address.</returns> public float ReadSinglePrecisionFloat(int address) { return(DataSegmentCommon.ReadSinglePrecisionFloat(m_ByteArray, address, m_RuntimeDataSegmentOffset)); }
/// <summary> /// Reads a null-terminated ASCII string from the .data segment. /// </summary> /// <param name="address">The address to retrieve the string from.</param> /// <returns>A string encoded in the ASCII encoding.</returns> public string ReadString(int address) { DataSubsection correspondingSubsection = GetDataSegmentForAddress(address); return(DataSegmentCommon.ReadString(correspondingSubsection.RawData, address, correspondingSubsection.StartingAddress)); }
/// <summary> /// Reads a 32-bit single precision floating point value from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the value from.</param> /// <returns>The 32-bit floating point value stored at the provided address.</returns> public float ReadSinglePrecisionFloat(int address) { DataSubsection correspondingSubsection = GetDataSegmentForAddress(address); return(DataSegmentCommon.ReadSinglePrecisionFloat(correspondingSubsection.RawData, address, correspondingSubsection.StartingAddress)); }
/// <summary> /// Reads a 32 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 32-bit unsigned integer stored at the provided address.</returns> public uint ReadUnsignedWord(int address) { DataSubsection correspondingSubsection = GetDataSegmentForAddress(address); return(DataSegmentCommon.ReadUnsignedWord(correspondingSubsection.RawData, address, correspondingSubsection.StartingAddress)); }
/// <summary> /// Reads a byte from the data segment. /// </summary> /// <param name="address">The address in the .data segment to retrieve the byte from.</param> /// <returns>The byte stored at the provided address.</returns> public sbyte ReadSignedByte(int address) { DataSubsection correspondingSubsection = GetDataSegmentForAddress(address); return(DataSegmentCommon.ReadSignedByte(correspondingSubsection.RawData, address, correspondingSubsection.StartingAddress)); }