@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, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Device(Pointer p)
Pointer.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") public byte peek(@Cast(value="uInt16") short _address)
Copyright © 2020. All rights reserved.