本文整理汇总了Java中org.bridj.ann.Ptr类的典型用法代码示例。如果您正苦于以下问题:Java Ptr类的具体用法?Java Ptr怎么用?Java Ptr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Ptr类属于org.bridj.ann包,在下文中一共展示了Ptr类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: apply
import org.bridj.ann.Ptr; //导入依赖的package包/类
public boolean apply(@Ptr long location, @Ptr long name, @Ptr long arguments, @Ptr long arguments_size, @Ptr long data, @Ptr long symbol_callback, @Ptr long symbol_callback_data) {
return apply((Pointer)Pointer.pointerToAddress(location, clingo_location.class), (Pointer)Pointer.pointerToAddress(name, Byte.class), (Pointer)Pointer.pointerToAddress(arguments, Long.class), arguments_size, Pointer.pointerToAddress(data), (Pointer)Pointer.pointerToAddress(symbol_callback, ClingoLibrary.clingo_symbol_callback_t.class), Pointer.pointerToAddress(symbol_callback_data));
}
示例2: clingo_control_use_enumeration_assumption
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_control_use_enumeration_assumption")
protected native boolean clingo_control_use_enumeration_assumption(@Ptr long control, boolean enable);
示例3: size
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Ptr
@Field(2)
public long size() {
return this.io.getSizeTField(this, 2);
}
示例4: clingo_backend_external
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_backend_external")
protected native boolean clingo_backend_external(@Ptr long backend, int atom, int type);
示例5: __iplCreateProbeBox
import org.bridj.ann.Ptr; //导入依赖的package包/类
protected native static int __iplCreateProbeBox(@Ptr long scene, @Ptr long box, @Ptr long placementParams,
@Ptr long progressCallback, @Ptr long probeBox);
示例6: clingo_configuration_map_subkey_name
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_configuration_map_subkey_name")
protected native boolean clingo_configuration_map_subkey_name(@Ptr long configuration, int key, @Ptr long offset, @Ptr long name);
示例7: apply
import org.bridj.ann.Ptr; //导入依赖的package包/类
public boolean apply(int atom_id_or_zero, int term_id, Pointer<Integer > elements, @Ptr long size, Pointer<? > data) {
return apply(atom_id_or_zero, term_id, Pointer.getPeer(elements), size, Pointer.getPeer(data));
}
示例8: __iplCreateEnvironmentalRenderer
import org.bridj.ann.Ptr; //导入依赖的package包/类
protected native static int __iplCreateEnvironmentalRenderer(@Ptr long context, @Ptr long environment,
@Ptr long renderingSettings,
@Ptr long outputFormat, @Ptr long renderer);
示例9: size
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Ptr
@Field(1)
public long size() {
return this.io.getSizeTField(this, 1);
}
示例10:
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_warning_string")
@Ptr
protected native long clingo_warning_string$2(int code);
示例11: apply
import org.bridj.ann.Ptr; //导入依赖的package包/类
public boolean apply(Pointer<clingo_propagate_control > control, Pointer<Integer > changes, @Ptr long size, Pointer<? > data) {
return apply(Pointer.getPeer(control), Pointer.getPeer(changes), size, Pointer.getPeer(data));
}
示例12: clingo_control_solve
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_control_solve")
protected native boolean clingo_control_solve(@Ptr long control, int mode, @Ptr long assumptions, @Ptr long assumptions_size, @Ptr long notify$, @Ptr long data, @Ptr long handle);
示例13: clingo_symbol_create_number
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_symbol_create_number")
protected native void clingo_symbol_create_number(int number, @Ptr long symbol);
示例14: clingo_control_has_const
import org.bridj.ann.Ptr; //导入依赖的package包/类
@Name("clingo_control_has_const")
protected native boolean clingo_control_has_const(@Ptr long control, @Ptr long name, @Ptr long exists);
示例15: __iplLoadFinalizedScene
import org.bridj.ann.Ptr; //导入依赖的package包/类
protected native static int __iplLoadFinalizedScene(IPLContext context,
IPLSimulationSettings simulationSettings,
@Ptr long fileName, @Ptr long computeDevice,
@Ptr long progressCallback, @Ptr long scene);