@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 |
addExisting(AssetVector assets)
Adds all assets in an array to the AssetManager
|
Asset |
get(ByteBuffer key) |
Asset |
get(BytePointer key) |
Asset |
get(String key) |
AssetVector |
getAll() |
AssetManager |
getPointer(long i) |
AssetManager |
position(long position) |
void |
remove(ByteBuffer key) |
void |
remove(BytePointer key)
Removes asset with key
|
void |
remove(String key) |
void |
serialize(AssetsMutable assets,
byte[] assetStorage) |
void |
serialize(AssetsMutable assets,
byte[] assetStorage,
String prefix) |
void |
serialize(AssetsMutable assets,
ByteBuffer assetStorage) |
void |
serialize(AssetsMutable assets,
ByteBuffer assetStorage,
ByteBuffer prefix) |
void |
serialize(AssetsMutable assets,
BytePointer assetStorage) |
void |
serialize(AssetsMutable assets,
BytePointer assetStorage,
BytePointer prefix)
Serializes
|
Asset |
set(Asset asset)
Adds or overwrites an asset object to AssetManager.
|
Asset |
set(ByteBuffer key,
Asset asset) |
Asset |
set(ByteBuffer key,
ByteBuffer data) |
Asset |
set(ByteBuffer key,
ByteBuffer data,
int alignment) |
Asset |
set(ByteBuffer key,
Path path) |
Asset |
set(ByteBuffer key,
Path path,
int alignment) |
Asset |
set(BytePointer key,
Asset asset)
Adds or overwrites an asset object to AssetManager with a specified key.
|
Asset |
set(BytePointer key,
BytePointer data) |
Asset |
set(BytePointer key,
BytePointer data,
int alignment)
Loads file into asset manager under specified key.
|
Asset |
set(BytePointer key,
Path path) |
Asset |
set(BytePointer key,
Path path,
int alignment)
Loads file into asset manager under specified key.
|
Asset |
set(String key,
Asset asset) |
Asset |
set(String key,
byte[] data) |
Asset |
set(String key,
byte[] data,
int alignment) |
Asset |
set(String key,
Path path) |
Asset |
set(String key,
Path path,
int alignment) |
long |
size() |
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, 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 add@SharedPtr @ByVal public Asset set(@ByVal Asset asset)
asset - Asset to add@SharedPtr @ByVal public Asset set(@StdString BytePointer key, @ByVal Asset asset)
key - Key under which the asset should be storedasset - Asset to store@SharedPtr @ByVal public Asset set(@StdString ByteBuffer key, @ByVal Asset asset)
@SharedPtr @ByVal public Asset set(@StdString String key, @ByVal Asset asset)
@SharedPtr @ByVal public Asset set(@StdString BytePointer key, @Const @ByRef Path path, int alignment)
key - Key under which the asset should be storedpath - Path to file which to load as assetalignment - [Optional] alignment of asset data in asset storage. Default is 64B@SharedPtr @ByVal public Asset set(@StdString BytePointer key, @Const @ByRef Path path)
@SharedPtr @ByVal public Asset set(@StdString ByteBuffer key, @Const @ByRef Path path, int alignment)
@SharedPtr @ByVal public Asset set(@StdString ByteBuffer key, @Const @ByRef Path path)
@SharedPtr @ByVal public Asset set(@StdString String key, @Const @ByRef Path path, int alignment)
@SharedPtr @ByVal public Asset set(@StdString String key, @Const @ByRef Path path)
@SharedPtr @ByVal public Asset set(@StdString BytePointer key, @Cast(value="std::uint8_t*") @StdVector BytePointer data, int alignment)
key - Key under which the asset should be storeddata - Asset dataalignment - [Optional] alignment of asset data in asset storage. Default is 64B@SharedPtr @ByVal public Asset set(@StdString BytePointer key, @Cast(value="std::uint8_t*") @StdVector BytePointer data)
@SharedPtr @ByVal public Asset set(@StdString ByteBuffer key, @Cast(value="std::uint8_t*") @StdVector ByteBuffer data, int alignment)
@SharedPtr @ByVal public Asset set(@StdString ByteBuffer key, @Cast(value="std::uint8_t*") @StdVector ByteBuffer data)
@SharedPtr @ByVal public Asset set(@StdString String key, @Cast(value="std::uint8_t*") @StdVector byte[] data, int alignment)
@SharedPtr @ByVal public Asset set(@StdString String key, @Cast(value="std::uint8_t*") @StdVector byte[] data)
@SharedPtr @ByVal public Asset get(@StdString BytePointer key)
@SharedPtr @ByVal public Asset get(@StdString ByteBuffer 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 ByteBuffer key)
public void remove(@StdString String key)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector BytePointer assetStorage, @StdString BytePointer prefix)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector BytePointer assetStorage)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector ByteBuffer assetStorage, @StdString ByteBuffer prefix)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector ByteBuffer assetStorage)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector byte[] assetStorage, @StdString String prefix)
public void serialize(@ByRef AssetsMutable assets, @Cast(value="std::uint8_t*") @StdVector byte[] assetStorage)
Copyright © 2023. All rights reserved.