Class MemoryMutableByteProvider

    • Constructor Detail

      • MemoryMutableByteProvider

        public MemoryMutableByteProvider​(Memory memory,
                                         AddressSpace space)
        Constructs a new provider for a specific address space.
        Parameters:
        memory - the memory
      • MemoryMutableByteProvider

        public MemoryMutableByteProvider​(Memory memory,
                                         Address baseAddress)
        Constructs a new provider relative to the base address.
        Parameters:
        memory - the memory
        baseAddress - the relative base address
    • Method Detail

      • writeByte

        public void writeByte​(long index,
                              byte value)
                       throws java.io.IOException
        Description copied from interface: MutableByteProvider
        Writes a byte at the specified index.
        Specified by:
        writeByte in interface MutableByteProvider
        Parameters:
        index - the index to write the byte
        value - the value to write at the specified index
        Throws:
        java.io.IOException - if an I/O error occurs
      • writeBytes

        public void writeBytes​(long index,
                               byte[] values)
                        throws java.io.IOException
        Description copied from interface: MutableByteProvider
        Writes a byte array at the specified index.
        Specified by:
        writeBytes in interface MutableByteProvider
        Parameters:
        index - the index to write the byte array
        values - the values to write at the specified index
        Throws:
        java.io.IOException - if an I/O error occurs