Package ghidra.app.util.bin
Interface MutableByteProvider
- 
- All Superinterfaces:
- java.lang.AutoCloseable,- ByteProvider,- java.io.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.ByteProviderEMPTY_BYTEPROVIDER
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteByte(long index, byte value)Writes a byte at the specified index.voidwriteBytes(long index, byte[] values)Writes a byte array at the specified index.- 
Methods inherited from interface ghidra.app.util.bin.ByteProviderclose, getAbsolutePath, getFile, getFSRL, getInputStream, getName, isValidIndex, length, readByte, readBytes
 
- 
 
- 
- 
- 
Method Detail- 
writeBytevoid writeByte(long index, byte value) throws java.io.IOExceptionWrites a byte at the specified index.- 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
 
 - 
writeBytesvoid writeBytes(long index, byte[] values) throws java.io.IOExceptionWrites 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:
- java.io.IOException- if an I/O error occurs
 
 
- 
 
-