Package ghidra.app.util.bin
package ghidra.app.util.bin
-
ClassDescriptionA class for reading data from a generic byte provider in either big-endian or little-endian.Reads and returns an object from the current position in the specified input stream.Reads and returns an object from the current position in the specified BinaryReader.An interface to convert from a object to a byte array.An implementation of
ByteProvider
where the underlying bytes are supplied by a byte array.An interface for a generic random-access byte provider.AnInputStream
that reads from aByteProvider
.AnInputStream
that reads from aByteProvider
, and DOESclose()
the underlying ByteProvider when closed itself.Wraps aByteProvider
and presents it as anInputStream
.AByteProvider
constrained to a sub-section of an existingByteProvider
.AByteProvider
that has no contents.An InputStream wrapper that suppresses anyIOException
s thrown by the wrapped stream and starts returning 0 value bytes for all subsequent reads.AByteProvider
that reads its bytes from a file.Instances of this class support both reading and writing to a random access file.AByteProvider
implementation that wraps anInputStream
, allowing data to be read, as long as there are no operations that request data from a previous offset.AnIOException
that indicates that the data being transmitted was invalid or bad format.Class to hold result of reading aLEB128
value, along with size and position metadata.AByteProvider
implementation based onMemory
.A Byte Provider implementation based on Memory.An interface for a generic random-access byte provider, plus mutation methods.AByteProvider
that reads from an on-disk file, but obfuscates / de-obfuscates the contents of the file when reading / writing.AnInputStream
wrapper that de-obfuscates the bytes being read from the underlying stream.AnOutputStream
wrapper that obfuscates the bytes being written to the underlying stream.Deprecated, for removal: This API element is subject to removal in a future version.An implementation of ByteProvider where the underlying bytes are supplied by a random access file.AByteProvider
that is a concatenation of sub-ranges of another ByteProvider, also allowing for non-initialized (sparse) regions.Allows a class to create a structure datatype equivalent to its class members.Creates a thread-safe pass-throughByteProvider
.AByteProvider
constrained to a sub-section of an existingByteProvider
although reads beyond the specified sub-section are permitted but will return zero byte values.
FileByteProvider
as replacement ByteProvider.