@Name(value="GenericVector<char>") @NoOffset @Properties(inherit=tesseract.class) public class CharGenericVector extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
CharGenericVector.Comparator_Pointer_Pointer |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CharGenericVector() |
CharGenericVector(CharGenericVector other) |
CharGenericVector(int size,
byte init_val) |
CharGenericVector(long size)
Native array allocator.
|
CharGenericVector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPut(byte t) |
CharGenericVector |
addPut(CharGenericVector other) |
BytePointer |
back() |
int |
binary_search(byte target) |
boolean |
bool_binary_search(byte target) |
int |
choose_nth_item(int target_index) |
void |
clear() |
void |
compact_sorted() |
void |
compact(DeleteCallback delete_cb) |
byte |
contains_index(int index) |
boolean |
contains(byte object) |
boolean |
DeSerialize(boolean swap,
Pointer fp) |
boolean |
DeSerialize(TFile fp) |
byte |
dot_product(CharGenericVector other) |
static byte[] |
double_the_size_memcpy(int current_size,
byte[] data) |
static ByteBuffer |
double_the_size_memcpy(int current_size,
ByteBuffer data) |
static BytePointer |
double_the_size_memcpy(int current_size,
BytePointer data) |
void |
double_the_size() |
boolean |
empty() |
int |
get_index(byte object) |
BytePointer |
get(int index) |
CharGenericVector |
getPointer(long i) |
void |
init_to_size(int size,
byte t) |
void |
insert(byte t,
int index) |
int |
length() |
void |
move(CharGenericVector from) |
byte |
pop_back() |
CharGenericVector |
position(long position) |
int |
push_back_new(byte object) |
int |
push_back(byte object) |
int |
push_front(byte object) |
CharGenericVector |
put(CharGenericVector other) |
boolean |
read(TFile f,
CharReadCallback cb) |
void |
remove(int index) |
void |
reserve(int size) |
void |
resize_no_init(int size) |
void |
reverse() |
boolean |
Serialize(Pointer fp) |
boolean |
Serialize(TFile fp) |
void |
set_clear_callback(CharClearCallback cb) |
void |
set_compare_callback(CharCompareCallback cb) |
void |
set(byte t,
int index) |
int |
size_reserved() |
int |
size() |
void |
sort() |
void |
sort(CharGenericVector.Comparator_Pointer_Pointer comparator) |
void |
swap(int index1,
int index2) |
void |
truncate(int size) |
long |
unsigned_size() |
boolean |
WithinBounds(byte rangemin,
byte rangemax) |
boolean |
write(Pointer f,
CharWriteCallback cb) |
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 CharGenericVector(Pointer p)
Pointer(Pointer)
.public CharGenericVector(long size)
Pointer.position(long)
.public CharGenericVector()
public CharGenericVector(@Const @ByRef CharGenericVector other)
public CharGenericVector position(long position)
public CharGenericVector getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator +=") public CharGenericVector addPut(@Const @ByRef CharGenericVector other)
@ByRef @Name(value="operator =") public CharGenericVector put(@Const @ByRef CharGenericVector other)
public void reserve(int size)
public void double_the_size()
public void resize_no_init(int size)
public int size()
public int size_reserved()
public int length()
@Cast(value="char*") @ByRef public BytePointer get(int index)
@Cast(value="char*") @ByRef public BytePointer back()
public void remove(int index)
public void truncate(int size)
public void set_clear_callback(CharClearCallback cb)
public void set_compare_callback(CharCompareCallback cb)
public void clear()
public void move(CharGenericVector from)
@Cast(value="bool") public boolean write(@Cast(value="FILE*") Pointer f, CharWriteCallback cb)
@Cast(value="bool") public boolean read(TFile f, CharReadCallback cb)
@Cast(value="bool") public boolean DeSerialize(@Cast(value="bool") boolean swap, @Cast(value="FILE*") Pointer fp)
@Cast(value="char*") public static BytePointer double_the_size_memcpy(int current_size, @Cast(value="char*") BytePointer data)
@Cast(value="char*") public static ByteBuffer double_the_size_memcpy(int current_size, @Cast(value="char*") ByteBuffer data)
@Cast(value="char*") public static byte[] double_the_size_memcpy(int current_size, @Cast(value="char*") byte[] data)
public void reverse()
public void sort()
public void sort(CharGenericVector.Comparator_Pointer_Pointer comparator)
@Cast(value="bool") public boolean bool_binary_search(@Cast(value="const char") byte target)
public void compact_sorted()
public void compact(DeleteCallback delete_cb)
@Cast(value="char") public byte dot_product(@Const @ByRef CharGenericVector other)
public int choose_nth_item(int target_index)
public void swap(int index1, int index2)
Copyright © 2021. All rights reserved.