Package ghidra.app.util.bin

# Interface MutableByteProvider

All Superinterfaces:
  `AutoCloseable`, `ByteProvider`, `Closeable`

All Known Implementing Classes:
  `FileByteProvider`, `MemoryMutableByteProvider`, `ObfuscatedFileByteProvider`, `RandomAccessMutableByteProvider`

public interface MutableByteProvider extends ByteProvider
An interface for a generic random-access byte provider, plus mutation methods.

- ## Field Summary

  ### Fields inherited from interface ghidra.app.util.bin.ByteProvider

  `EMPTY_BYTEPROVIDER`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `writeByte(long index, byte value)`
  Writes a byte at the specified index.
  `void`
  `writeBytes(long index, byte[] values)`
  Writes a byte array at the specified index.

  ### Methods inherited from interface ghidra.app.util.bin.ByteProvider

  `close, getAbsolutePath, getFile, getFSRL, getInputStream, getName, isEmpty, isValidIndex, length, readByte, readBytes`

- ## Method Details

  - ### writeByte

    void writeByte(long index, byte value) throws IOException
    Writes a byte at the specified index.
    Parameters:
      `index` - the index to write the byte
      `value` - the value to write at the specified index
    Throws:
      `IOException` - if an I/O error occurs

  - ### writeBytes

    void writeBytes(long index, byte[] values) throws IOException
    Writes a byte array at the specified index.
    Parameters:
      `index` - the index to write the byte array
      `values` - the values to write at the specified index
    Throws:
      `IOException` - if an I/O error occurs