@Namespace(value="tflite") @Properties(inherit=tensorflowlite.class) public class ErrorReporter extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ErrorReporter(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
Report(BytePointer format)
Converts arguments to character equivalents according to
format string,
constructs the error string and report it. |
int |
Report(BytePointer format,
Pointer args)
Converts
args to character equivalents according to format string,
constructs the error string and report it. |
int |
Report(String format) |
int |
Report(String format,
Pointer args) |
int |
ReportError(Pointer arg0,
BytePointer format)
Equivalent to
Report above. |
int |
ReportError(Pointer arg0,
String format) |
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 ErrorReporter(Pointer p)
Pointer(Pointer)
.public int Report(@Cast(value="const char*") BytePointer format, @ByVal @Cast(value="va_list*") Pointer args)
args
to character equivalents according to format
string,
constructs the error string and report it.
Returns number of characters written or zero on success, and negative
number on error.public int Report(@Cast(value="const char*") BytePointer format)
format
string,
constructs the error string and report it.
Returns number of characters written or zero on success, and negative
number on error.public int Report(String format)
public int ReportError(Pointer arg0, @Cast(value="const char*") BytePointer format)
Report
above. The additional void*
parameter is unused.
This method is for compatibility with macros that takes TfLiteContext
,
like TF_LITE_ENSURE and related macros.Copyright © 2025. All rights reserved.