@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class AllocatorWrapper extends Allocator
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
kAllocatorAlignment
Constructor and Description |
---|
AllocatorWrapper(Allocator wrapped) |
AllocatorWrapper(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
AllocatedSize(Pointer ptr) |
long |
AllocatedSizeSlow(Pointer ptr) |
Pointer |
AllocateRaw(long alignment,
long num_bytes) |
Pointer |
AllocateRaw(long alignment,
long num_bytes,
AllocationAttributes allocation_attr) |
boolean |
AllocatesOpaqueHandle() |
long |
AllocationId(Pointer ptr) |
void |
DeallocateRaw(Pointer ptr) |
BytePointer |
Name() |
long |
RequestedSize(Pointer ptr) |
boolean |
TracksAllocationSizes() |
Allocator |
wrapped() |
ClearStats, kAllocatorAlignment, SetSafeFrontier
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public AllocatorWrapper(Pointer p)
Pointer(Pointer)
.public AllocatorWrapper(Allocator wrapped)
public Allocator wrapped()
@StdString public BytePointer Name()
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes)
AllocateRaw
in class Allocator
public Pointer AllocateRaw(@Cast(value="size_t") long alignment, @Cast(value="size_t") long num_bytes, @Const @ByRef AllocationAttributes allocation_attr)
AllocateRaw
in class Allocator
public void DeallocateRaw(Pointer ptr)
DeallocateRaw
in class Allocator
@Cast(value="bool") public boolean TracksAllocationSizes()
TracksAllocationSizes
in class Allocator
@Cast(value="bool") public boolean AllocatesOpaqueHandle()
AllocatesOpaqueHandle
in class Allocator
@Cast(value="size_t") public long RequestedSize(@Const Pointer ptr)
RequestedSize
in class Allocator
@Cast(value="size_t") public long AllocatedSize(@Const Pointer ptr)
AllocatedSize
in class Allocator
@Cast(value="tensorflow::int64") public long AllocationId(@Const Pointer ptr)
AllocationId
in class Allocator
Copyright © 2022. All rights reserved.