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.ByteProvider
EMPTY_BYTEPROVIDER
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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, isValidIndex, length, readByte, readBytes
-
-
-
-
Method Detail
-
writeByte
void writeByte(long index, byte value) throws java.io.IOException
Writes a byte at the specified index.- Parameters:
index
- the index to write the bytevalue
- the value to write at the specified index- Throws:
java.io.IOException
- if an I/O error occurs
-
writeBytes
void writeBytes(long index, byte[] values) throws java.io.IOException
Writes a byte array at the specified index.- Parameters:
index
- the index to write the byte arrayvalues
- the values to write at the specified index- Throws:
java.io.IOException
- if an I/O error occurs
-
-