[−]Struct jni_android_sys::java::nio::ByteBuffer
public class ByteBuffer
Required feature: "java-nio-ByteBuffer"
Methods
impl ByteBuffer
pub fn allocateDirect<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn allocate<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn wrap_byte_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn wrap_byte_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn slice<'env>(
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn duplicate<'env>(
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asReadOnlyBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn get<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>
[src]
pub fn put_byte<'env>(
&'env self,
arg0: i8
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i8
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getAt<'env>(&'env self, arg0: i32) -> Result<i8, Local<'env, Throwable>>
[src]
pub fn put_int_byte<'env>(
&'env self,
arg0: i32,
arg1: i8
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i8
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn get_byte_array_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn get_byte_array<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn put_ByteBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn put_byte_array_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn put_byte_array<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn hasArray<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn array<'env>(
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
pub fn arrayOffset<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn compact<'env>(
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn isDirect<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn compareTo_ByteBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn order<'env>(
&'env self
) -> Result<Option<Local<'env, ByteOrder>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteOrder>>, Local<'env, Throwable>>
Required features: "java-nio-ByteOrder"
pub fn order_ByteOrder<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteOrder>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteOrder>>
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer", "java-nio-ByteOrder"
pub fn getChar<'env>(&'env self) -> Result<jchar, Local<'env, Throwable>>
[src]
pub fn putChar_char<'env>(
&'env self,
arg0: jchar
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: jchar
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getChar_int<'env>(
&'env self,
arg0: i32
) -> Result<jchar, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<jchar, Local<'env, Throwable>>
pub fn putChar_int_char<'env>(
&'env self,
arg0: i32,
arg1: jchar
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: jchar
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asCharBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, CharBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CharBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-CharBuffer"
pub fn getShort<'env>(&'env self) -> Result<i16, Local<'env, Throwable>>
[src]
pub fn putShort_short<'env>(
&'env self,
arg0: i16
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i16
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getShort_int<'env>(
&'env self,
arg0: i32
) -> Result<i16, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i16, Local<'env, Throwable>>
pub fn putShort_int_short<'env>(
&'env self,
arg0: i32,
arg1: i16
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i16
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asShortBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, ShortBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ShortBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ShortBuffer"
pub fn getInt<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn putInt_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getInt_int<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn putInt_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asIntBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, IntBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, IntBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-IntBuffer"
pub fn getLong<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn putLong_long<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getLong_int<'env>(
&'env self,
arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i64, Local<'env, Throwable>>
pub fn putLong_int_long<'env>(
&'env self,
arg0: i32,
arg1: i64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asLongBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, LongBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, LongBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-LongBuffer"
pub fn getFloat<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>
[src]
pub fn putFloat_float<'env>(
&'env self,
arg0: f32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getFloat_int<'env>(
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f32, Local<'env, Throwable>>
pub fn putFloat_int_float<'env>(
&'env self,
arg0: i32,
arg1: f32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: f32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asFloatBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, FloatBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, FloatBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-FloatBuffer"
pub fn getDouble<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>
[src]
pub fn putDouble_double<'env>(
&'env self,
arg0: f64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: f64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getDouble_int<'env>(
&'env self,
arg0: i32
) -> Result<f64, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<f64, Local<'env, Throwable>>
pub fn putDouble_int_double<'env>(
&'env self,
arg0: i32,
arg1: f64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: f64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn asDoubleBuffer<'env>(
&'env self
) -> Result<Option<Local<'env, DoubleBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, DoubleBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-DoubleBuffer"
Methods from Deref<Target = Buffer>
pub fn capacity<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn position<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn position_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn limit<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn limit_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn mark<'env>(
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn reset<'env>(
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn clear<'env>(
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn flip<'env>(
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn rewind<'env>(
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Buffer>>, Local<'env, Throwable>>
Required features: "java-nio-Buffer"
pub fn remaining<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn hasRemaining<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isReadOnly<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn hasArray<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn array<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn arrayOffset<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn isDirect<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for ByteBuffer
impl AsRef<Comparable> for ByteBuffer
fn as_ref(&self) -> &Comparable
impl AsValidJObjectAndEnv for ByteBuffer
impl Deref for ByteBuffer
impl JniType for ByteBuffer
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ByteBuffer
impl !Send for ByteBuffer
impl !Sync for ByteBuffer
impl Unpin for ByteBuffer
impl UnwindSafe for ByteBuffer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,