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.
  • 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