@Namespace(value="sentencepiece::util") @NoOffset @Properties(inherit=sentencepiece.class) public class Status extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Status() |
Status(int code,
String error_message) |
Status(long size)
Native array allocator.
|
Status(Pointer p)
Pointer cast constructor.
|
Status(Status s) |
Modifier and Type | Method and Description |
---|---|
int |
code() |
boolean |
equals(Status s) |
BytePointer |
error_message() |
Status |
getPointer(long i) |
void |
IgnoreError() |
BytePointer |
message() |
boolean |
notEquals(Status s) |
boolean |
ok() |
Status |
position(long position) |
void |
put(Status s) |
void |
set_error_message(BytePointer str) |
void |
set_error_message(String str) |
String |
ToString() |
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, zero
public Status(Pointer p)
Pointer(Pointer)
.public Status(long size)
Pointer.position(long)
.public Status()
public Status(@Cast(value="sentencepiece::util::StatusCode") int code, @StdString String error_message)
public Status getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef Status s)
public void set_error_message(@Cast(value="const char*") BytePointer str)
public void set_error_message(String str)
@Cast(value="const char*") public BytePointer error_message()
@Cast(value="const char*") public BytePointer message()
@StdString public String ToString()
public void IgnoreError()
Copyright © 2024. All rights reserved.