@Documented @Retention(value=RUNTIME) @Target(value={METHOD,PARAMETER,ANNOTATION_TYPE}) public @interface Adapter
Generator
are StringAdapter
,
VectorAdapter
, and SharedPtrAdapter
to bridge a few differences between
std::string
and String
; between std::vector
, Java arrays of
primitive types, Buffer
, and Pointer
; and between xyz::shared_ptr
and Pointer
. Adapter classes must define the following public members:
argc()
> 1): a pointer, a size, and the owner pointer
static void deallocate(owner)
function
void assign(pointer, size, owner)
function
size
member variable for arrays accessed via pointer
StdString
, StdVector
, and SharedPtr
.Generator
Copyright © 2020. All rights reserved.