@Namespace(value="ale::stella") @NoOffset @Properties(inherit=ale.class) public class Device extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Device(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
install(System system)
Install device in the specified system.
|
boolean |
load(Deserializer in)
Loads the current state of this device from the given Deserializer.
|
BytePointer |
name()
Get a null terminated string which is the device's name (i.e.
|
byte |
peek(short _address)
Get the byte at the specified address
|
void |
poke(short _address,
byte value)
Change the byte at the specified address to the given value
|
void |
reset()
Reset device to its power-on state
|
boolean |
save(Serializer out)
Saves the current state of this device to the given Serializer.
|
void |
systemCyclesReset()
Notification method invoked by the system right before the
system resets its cycle counter to zero.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Device(Pointer p)
Pointer(Pointer)
.@Cast(value="const char*") public BytePointer name()
public void reset()
public void systemCyclesReset()
public void install(@ByRef System system)
system
- The system the device should install itself in@Cast(value="bool") public boolean save(@ByRef Serializer out)
out
- The serializer device to save to.@Cast(value="bool") public boolean load(@ByRef Deserializer in)
in
- The deserializer device to load from.@Cast(value="uint8_t") public byte peek(@Cast(value="uint16_t") short _address)
Copyright © 2022. All rights reserved.