Package ghidra.app.util.bin
Interface MutableByteProvider
- All Superinterfaces:
AutoCloseable
,ByteProvider
,Closeable
- All Known Implementing Classes:
FileByteProvider
,MemoryMutableByteProvider
,ObfuscatedFileByteProvider
,RandomAccessMutableByteProvider
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 TypeMethodDescriptionvoid
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
Writes a byte at the specified index.- Parameters:
index
- the index to write the bytevalue
- the value to write at the specified index- Throws:
IOException
- if an I/O error occurs
-
writeBytes
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:
IOException
- if an I/O error occurs
-