@Name(value="ale::stella::Properties") @NoOffset @Properties(inherit=ale.class) public class StellaProperties extends Pointer
A properties object can contain a reference to another properties object as its "defaults"; this second properties object is searched if the property key is not found in the original property list.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StellaProperties()
Creates an empty properties object with the specified defaults.
|
StellaProperties(long size)
Native array allocator.
|
StellaProperties(Pointer p)
Pointer cast constructor.
|
StellaProperties(StellaProperties properties)
Creates a properties list by copying another one
|
Modifier and Type | Method and Description |
---|---|
BytePointer |
get(int key)
Get the value assigned to the specified key.
|
StellaProperties |
getPointer(long i) |
void |
load(Pointer in)
Load properties from the specified input stream
|
StellaProperties |
position(long position) |
void |
print()
Print the attributes of this properties object
|
StellaProperties |
put(StellaProperties properties)
Overloaded assignment operator
|
void |
save(Pointer out)
Save properties to the specified output stream
|
void |
set(int key,
BytePointer value)
Set the value associated with key to the given value.
|
void |
set(int key,
String value) |
void |
setDefaults()
Resets all properties to their defaults
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public StellaProperties(Pointer p)
Pointer(Pointer)
.public StellaProperties(long size)
Pointer.position(long)
.public StellaProperties()
public StellaProperties(@Const @ByRef StellaProperties properties)
properties
- The properties to copypublic StellaProperties position(long position)
public StellaProperties getPointer(long i)
getPointer
in class Pointer
@StdString public BytePointer get(@Cast(value="ale::stella::PropertyType") int key)
key
- The key of the property to lookuppublic void set(@Cast(value="ale::stella::PropertyType") int key, @StdString BytePointer value)
key
- The key of the property to setvalue
- The value to assign to the propertypublic void set(@Cast(value="ale::stella::PropertyType") int key, @StdString String value)
public void load(@Cast(value="std::istream*") @ByRef Pointer in)
in
- The input stream to usepublic void save(@Cast(value="std::ostream*") @ByRef Pointer out)
out
- The output stream to usepublic void print()
public void setDefaults()
@ByRef @Name(value="operator =") public StellaProperties put(@Const @ByRef StellaProperties properties)
properties
- The properties object to set myself equal toCopyright © 2022. All rights reserved.