@Namespace(value="tflite") @NoOffset @Properties(inherit=tensorflowlite.class) public class FileCopyAllocation extends Allocation
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
kFileCopy, kMemory, kMMap
Constructor and Description |
---|
FileCopyAllocation(BytePointer filename,
ErrorReporter error_reporter)
Loads the provided file into a heap memory region.
|
FileCopyAllocation(Pointer p)
Pointer cast constructor.
|
FileCopyAllocation(String filename,
ErrorReporter error_reporter) |
Modifier and Type | Method and Description |
---|---|
Pointer |
base()
Base pointer of this allocation
|
long |
bytes()
Size in bytes of the allocation
|
boolean |
valid()
Whether the allocation is valid
|
type
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 FileCopyAllocation(Pointer p)
Pointer(Pointer)
.public FileCopyAllocation(@Cast(value="const char*") BytePointer filename, ErrorReporter error_reporter)
public FileCopyAllocation(String filename, ErrorReporter error_reporter)
@Const public Pointer base()
Allocation
base
in class Allocation
@Cast(value="size_t") public long bytes()
Allocation
bytes
in class Allocation
@Cast(value="bool") public boolean valid()
Allocation
valid
in class Allocation
Copyright © 2025. All rights reserved.