@Namespace(value="dai") @Properties(inherit=depthai.class) public class AssetManager extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
AssetManager()
Default native constructor.
|
AssetManager(long size)
Native array allocator.
|
AssetManager(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Asset asset)
Adds an asset object to AssetManager.
|
void |
add(BytePointer key,
Asset asset)
Adds an asset object to AssetManager with a specificied key.
|
void |
add(String key,
Asset asset) |
void |
addExisting(AssetVector assets)
Adds all assets in an array to the AssetManager
|
Asset |
get(BytePointer key) |
Asset |
get(String key) |
AssetVector |
getAll() |
AssetManager |
getPointer(long i) |
AssetManager |
position(long position) |
void |
remove(BytePointer key)
Removes asset with key
|
void |
remove(String key) |
void |
serialize(Assets serAssets,
byte[] assetStorage) |
void |
serialize(Assets serAssets,
ByteBuffer assetStorage) |
void |
serialize(Assets serAssets,
BytePointer assetStorage)
Serializes
|
void |
set(BytePointer key,
Asset asset)
Adds or overwrites existing asset with a specificied key.
|
void |
set(String key,
Asset asset) |
long |
size() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic AssetManager()
public AssetManager(long size)
Pointer.position(long).public AssetManager(Pointer p)
Pointer(Pointer).public AssetManager position(long position)
public AssetManager getPointer(long i)
getPointer in class Pointerpublic void addExisting(@ByVal AssetVector assets)
assets - Vector of assets to addpublic void add(@ByVal Asset asset)
asset - Asset to addpublic void add(@StdString BytePointer key, @ByVal Asset asset)
key - Key under which the asset should be storedasset - Asset to storepublic void add(@StdString String key, @ByVal Asset asset)
public void set(@StdString BytePointer key, @ByVal Asset asset)
key - Key under which the asset should be storedasset - Asset to storepublic void set(@StdString String key, @ByVal Asset asset)
@SharedPtr @ByVal public Asset get(@StdString BytePointer key)
@SharedPtr @ByVal public Asset get(@StdString String key)
@ByVal public AssetVector getAll()
@Cast(value="std::size_t") public long size()
public void remove(@StdString BytePointer key)
key - Key of asset to removepublic void remove(@StdString String key)
public void serialize(@ByRef Assets serAssets, @Cast(value="std::uint8_t*") @StdVector BytePointer assetStorage)
public void serialize(@ByRef Assets serAssets, @Cast(value="std::uint8_t*") @StdVector ByteBuffer assetStorage)
public void serialize(@ByRef Assets serAssets, @Cast(value="std::uint8_t*") @StdVector byte[] assetStorage)
Copyright © 2021. All rights reserved.