@Properties(inherit=tvm_runtime.class) public class DLDataType extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DLDataType()
Default native constructor.
|
DLDataType(long size)
Native array allocator.
|
DLDataType(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
bits()
\brief Number of bits, common choices are 8, 16, 32.
|
DLDataType |
bits(byte setter) |
byte |
code()
\brief Type code of base types.
|
DLDataType |
code(byte setter) |
DLDataType |
getPointer(long i) |
short |
lanes()
\brief Number of lanes in the type, used for vector types.
|
DLDataType |
lanes(short setter) |
DLDataType |
position(long position) |
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 DLDataType()
public DLDataType(long size)
Pointer.position(long).public DLDataType(Pointer p)
Pointer(Pointer).public DLDataType position(long position)
public DLDataType getPointer(long i)
getPointer in class Pointer@Cast(value="uint8_t") public byte code()
public DLDataType code(byte setter)
public DLDataType bits(byte setter)
@Cast(value="uint16_t") public short lanes()
public DLDataType lanes(short setter)
Copyright © 2022. All rights reserved.