本文整理汇总了Java中org.bridj.Pointer.pointerToAddress方法的典型用法代码示例。如果您正苦于以下问题:Java Pointer.pointerToAddress方法的具体用法?Java Pointer.pointerToAddress怎么用?Java Pointer.pointerToAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bridj.Pointer
的用法示例。
在下文中一共展示了Pointer.pointerToAddress方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clingo_error_string
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* ! Convert error code into string.<br>
* Original signature : <code>const char* clingo_error_string(clingo_error_t)</code><br>
* <i>native declaration : src/main/clingo/lib/c/clingo.h:106</i>
*/
@Name("clingo_error_string")
public Pointer<Byte > clingo_error_string(int code) {
return (Pointer)Pointer.pointerToAddress(clingo_error_string$2(code), Byte.class);
}
示例2: clingo_error_message
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* ! @return error message or NULL<br>
* Original signature : <code>const char* clingo_error_message()</code><br>
* <i>native declaration : src/main/clingo/lib/c/clingo.h:114</i>
*/
@Name("clingo_error_message")
public Pointer<Byte > clingo_error_message() {
return (Pointer)Pointer.pointerToAddress(clingo_error_message$2(), Byte.class);
}
示例3: clingo_warning_string
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* ! Convert warning code into string.<br>
* Original signature : <code>const char* clingo_warning_string(clingo_warning_t)</code><br>
* <i>native declaration : src/main/clingo/lib/c/clingo.h:133</i>
*/
@Name("clingo_warning_string")
public Pointer<Byte > clingo_warning_string(int code) {
return (Pointer)Pointer.pointerToAddress(clingo_warning_string$2(code), Byte.class);
}
示例4: clingo_signature_name
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* ! @return the name of the signature<br>
* Original signature : <code>const char* clingo_signature_name(clingo_signature_t)</code><br>
* <i>native declaration : src/main/clingo/lib/c/clingo.h:227</i>
*/
@Name("clingo_signature_name")
public Pointer<Byte > clingo_signature_name(long signature) {
return (Pointer)Pointer.pointerToAddress(clingo_signature_name$2(signature), Byte.class);
}
示例5: clingo_propagate_control_assignment
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* ! @return the assignment<br>
* Original signature : <code>clingo_assignment_t* clingo_propagate_control_assignment(clingo_propagate_control_t*)</code><br>
* <i>native declaration : src/main/clingo/lib/c/clingo.h:1382</i>
*/
@Name("clingo_propagate_control_assignment")
public Pointer<ClingoLibrary.clingo_assignment > clingo_propagate_control_assignment(Pointer<ClingoLibrary.clingo_propagate_control > control) {
return (Pointer)Pointer.pointerToAddress(clingo_propagate_control_assignment(Pointer.getPeer(control)), ClingoLibrary.clingo_assignment.class);
}
示例6: apply
import org.bridj.Pointer; //导入方法依赖的package包/类
/**
* Prototype of a callback that allocates memory. This is usually specified to let Phonon use a custom memory
* allocator. The default behavior is to use the OS-dependent aligned version of {@code malloc}.
*
* @param size The number of bytes to allocate.
* @param alignment The alignment (in bytes) of the start address of the allocated memory.
*
* @return Pointer to the allocated block of memory, or {@code NULL} if allocation failed.
*/
public Pointer<?> apply(@Ptr long size, @Ptr long alignment) {
return Pointer.pointerToAddress(apply$2(size, alignment));
}