Beispiel #1
0
        /// <summary>
        /// Read unsigned integer from the specified address.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="bits">The number of bits to interpret.</param>
        /// <param name="bitsOffset">The offset in bits.</param>
        /// <returns>Unsigned integer read from the specified address.</returns>
        public uint ReadUint(ulong address, int bits = 32, int bitsOffset = 0)
        {
            MemoryBuffer buffer = Debugger.ReadMemory(this, address, 4);

            return(UserType.ReadUint(buffer, 0, bits, bitsOffset));
        }
Beispiel #2
0
        /// <summary>
        /// Reads signed byte from the specified address.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <returns>Signed byte read from the specified address.</returns>
        public sbyte ReadSbyte(ulong address)
        {
            MemoryBuffer buffer = Debugger.ReadMemory(this, address, 1);

            return(UserType.ReadSbyte(buffer, 0));
        }
Beispiel #3
0
        /// <summary>
        /// Read unsigned short from the specified address.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="bits">The number of bits to interpret.</param>
        /// <param name="bitsOffset">The offset in bits.</param>
        /// <returns>Unsigned short read from the specified address.</returns>
        public ushort ReadUshort(ulong address, int bits = 16, int bitsOffset = 0)
        {
            MemoryBuffer buffer = Debugger.ReadMemory(this, address, 2);

            return(UserType.ReadUshort(buffer, 0, bits, bitsOffset));
        }
Beispiel #4
0
        /// <summary>
        /// Reads byte from the specified address.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="bits">The number of bits to interpret.</param>
        /// <param name="bitsOffset">The offset in bits.</param>
        /// <returns>Byte read from the specified address.</returns>
        public byte ReadByte(ulong address, int bits = 8, int bitsOffset = 0)
        {
            MemoryBuffer buffer = Debugger.ReadMemory(this, address, 1);

            return(UserType.ReadByte(buffer, 0, bits, bitsOffset));
        }