Java class: java.nio.Buffer
java :: Java_nio_Buffer :: defaultinit
java :: Java_nio_Buffer :: direct_buffer_address
Address pointed by this bufferjava :: Java_nio_Buffer :: direct_buffer_capacity
Capacity of this this bufferjava $ Java_nio_Buffer :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
java :: Java_nio_Buffer :: defaultinit
jvm :: JavaObject :: defaultinit
core :: Pointer :: defaultinit
java :: Java_nio_Buffer :: direct_buffer_address
Address pointed by this bufferjava :: Java_nio_Buffer :: direct_buffer_capacity
Capacity of this this buffercore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
# Container for data of a specific primitive type
#
# Java class: java.nio.Buffer
extern class Java_nio_Buffer in "Java" `{ java.nio.Buffer `}
super JavaObject
# Address pointed by this buffer
#
# JNI function: GetDirectBufferAddress
fun direct_buffer_address(jni_env: JniEnv): Pointer `{
return (*jni_env)->GetDirectBufferAddress(jni_env, self);
`}
# Capacity of this this buffer
#
# JNI function: GetDirectBufferCapacity
fun direct_buffer_capacity(jni_env: JniEnv): Int `{
return (*jni_env)->GetDirectBufferCapacity(jni_env, self);
`}
end
lib/java/ffi_support.nit:261,1--280,3