@NoOffset @Properties(inherit=tesseract.class) public class STRING extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
STRING() |
STRING(BytePointer string) |
STRING(BytePointer data,
int length) |
STRING(long size)
Native array allocator.
|
STRING(Pointer p)
Pointer cast constructor.
|
STRING(String string) |
STRING(STRING string) |
STRING(String data,
int length) |
Modifier and Type | Method and Description |
---|---|
void |
add_str_double(BytePointer str,
double number) |
void |
add_str_double(String str,
double number) |
void |
add_str_int(BytePointer str,
int number) |
void |
add_str_int(String str,
int number) |
STRING |
add(byte ch) |
STRING |
add(STRING string) |
STRING |
addPut(byte ch) |
STRING |
addPut(BytePointer string) |
STRING |
addPut(String string) |
STRING |
addPut(STRING string) |
void |
assign(BytePointer cstr,
int len) |
void |
assign(String cstr,
int len) |
BytePointer |
c_str() |
boolean |
contains(byte c) |
boolean |
DeSerialize(boolean swap,
Pointer fp) |
boolean |
DeSerialize(TFile fp) |
void |
ensure(int min_capacity) |
boolean |
equals(STRING string) |
BytePointer |
get(int index) |
STRING |
getPointer(long i) |
int |
length() |
boolean |
notEquals(BytePointer string) |
boolean |
notEquals(String string) |
boolean |
notEquals(STRING string) |
STRING |
position(long position) |
STRING |
put(BytePointer string) |
STRING |
put(String string) |
STRING |
put(STRING string) |
boolean |
Serialize(Pointer fp) |
boolean |
Serialize(TFile fp) |
int |
size() |
static boolean |
SkipDeSerialize(TFile fp) |
void |
split(byte c,
StringGenericVector splited) |
BytePointer |
strdup() |
BytePointer |
string() |
void |
truncate_at(int index) |
int |
unsigned_size() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public STRING(Pointer p)
Pointer(Pointer)
.public STRING(long size)
Pointer.position(long)
.public STRING()
public STRING(@Cast(value="const char*") BytePointer string)
public STRING(String string)
public STRING(@Cast(value="const char*") BytePointer data, int length)
public STRING(String data, int length)
public STRING getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public boolean DeSerialize(@Cast(value="bool") boolean swap, @Cast(value="FILE*") Pointer fp)
public int length()
public int size()
@Cast(value="const char*") public BytePointer string()
@Cast(value="const char*") public BytePointer c_str()
@Cast(value="char*") public BytePointer strdup()
public void split(@Cast(value="char") byte c, StringGenericVector splited)
public void truncate_at(int index)
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef STRING string)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef STRING string)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Cast(value="const char*") BytePointer string)
@ByRef @Name(value="operator =") public STRING put(@Cast(value="const char*") BytePointer string)
@ByRef @Name(value="operator +=") public STRING addPut(@Cast(value="const char*") BytePointer string)
public void assign(@Cast(value="const char*") BytePointer cstr, int len)
public void assign(String cstr, int len)
public void add_str_int(@Cast(value="const char*") BytePointer str, int number)
public void add_str_int(String str, int number)
public void add_str_double(@Cast(value="const char*") BytePointer str, double number)
public void add_str_double(String str, double number)
public void ensure(int min_capacity)
Copyright © 2021. All rights reserved.