@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(BytePointer name)
\brief Get the global function by name.
|
static PackedFunc |
Get(String name) |
Registry |
getPointer(long i) |
static StringVector |
ListNames()
\brief Get the names of currently registered global function.
|
Registry |
position(long position) |
static Registry |
Register(BytePointer name) |
static Registry |
Register(BytePointer name,
boolean override)
\brief Register a function with given name
|
static Registry |
Register(String name) |
static Registry |
Register(String name,
boolean override) |
static boolean |
Remove(BytePointer name)
\brief Erase global function from registry, if exist.
|
static boolean |
Remove(String name) |
Registry |
set_body(PackedFunc f)
\brief set the body of the function to be f
|
Registry |
set_body(tvm_runtime.PackedFuncFType 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, 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 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 Registry set_body(@ByVal tvm_runtime.PackedFuncFType f)
f - The body of the function.@ByRef public static Registry Register(@StdString BytePointer name, @Cast(value="bool") boolean override)
name - The name of the function.override - Whether allow oveeride existing function.@ByRef public static Registry Register(@StdString BytePointer name)
@ByRef public static Registry Register(@StdString String name, @Cast(value="bool") boolean override)
@ByRef public static Registry Register(@StdString String name)
@Cast(value="bool") public static boolean Remove(@StdString BytePointer name)
name - The name of the function.@Cast(value="bool") public static boolean Remove(@StdString String name)
@Const public static PackedFunc Get(@StdString BytePointer name)
name - The name of the function.@Const public static PackedFunc Get(@StdString String name)
@ByVal public static StringVector ListNames()
Copyright © 2021. All rights reserved.