Enum Class EmptyByteSource
- All Implemented Interfaces:
AddressableByteSource
,Serializable
,Comparable<EmptyByteSource>
,Constable
Implementation for an empty
AddressableByteSource
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the byte values for an address range.Returns a list of memory regions where each region has an associated address set of valid addresses that can be read.void
Invalidates any caching of byte values.static EmptyByteSource
Returns the enum constant of this class with the specified name.static EmptyByteSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBytes
Description copied from interface:AddressableByteSource
Retrieves the byte values for an address range.- Specified by:
getBytes
in interfaceAddressableByteSource
- Parameters:
address
- The address of the first byte in the rangebytes
- the byte array to store the retrieved byte valueslength
- the number of bytes to retrieve- Returns:
- the number of bytes actually retrieved
-
getSearchableRegions
Description copied from interface:AddressableByteSource
Returns a list of memory regions where each region has an associated address set of valid addresses that can be read.- Specified by:
getSearchableRegions
in interfaceAddressableByteSource
- Returns:
- a list of readable regions
-
invalidate
public void invalidate()Description copied from interface:AddressableByteSource
Invalidates any caching of byte values. This intended to provide a hint in debugging scenario that we are about to issue a sequence of byte value requests where we are re-acquiring previous requested byte values to look for changes.- Specified by:
invalidate
in interfaceAddressableByteSource
-