@Namespace(value="tvm::runtime") @Properties(inherit=tvm_runtime.class) public class Registry extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Registry()
Default native constructor.
|
Registry(long size)
Native array allocator.
|
Registry(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PackedFunc |
Get(TVMString name)
\brief Get the global function by name.
|
Registry |
getPointer(long i) |
static TVMString |
ListNames()
\brief Get the names of currently registered global function.
|
Registry |
position(long position) |
static Registry |
Register(TVMString name) |
static Registry |
Register(TVMString name,
boolean override)
\brief Register a function with given name
|
static boolean |
Remove(TVMString name)
\brief Erase global function from registry, if exist.
|
Registry |
set_body(PackedFunc f)
\brief set the body of the function to be f
|
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 Registry()
public Registry(long size)
Pointer.position(long).public Registry(Pointer p)
Pointer(Pointer).public Registry getPointer(long i)
getPointer in class Pointer@ByRef public Registry set_body(@ByVal PackedFunc f)
f - The body of the function.@ByRef public static Registry Register(@Const @ByRef TVMString name, @Cast(value="bool") boolean override)
name - The name of the function.override - Whether allow override existing function.@Cast(value="bool") public static boolean Remove(@Const @ByRef TVMString name)
name - The name of the function.@Const public static PackedFunc Get(@Const @ByRef TVMString name)
name - The name of the function.@StdVector public static TVMString ListNames()
Copyright © 2024. All rights reserved.