[−]Struct jni_android_sys::java::nio::MappedByteBuffer
public class MappedByteBuffer
Required feature: "java-nio-MappedByteBuffer"
Methods
impl MappedByteBuffer
pub fn isLoaded<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn load<'env>(
&'env self
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-MappedByteBuffer"
pub fn force<'env>(
&'env self
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
Required features: "java-nio-MappedByteBuffer"
Methods from Deref<Target = 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"
Trait Implementations
impl AsJValue for MappedByteBuffer
impl AsValidJObjectAndEnv for MappedByteBuffer
impl Deref for MappedByteBuffer
impl JniType for MappedByteBuffer
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MappedByteBuffer
impl !Send for MappedByteBuffer
impl !Sync for MappedByteBuffer
impl Unpin for MappedByteBuffer
impl UnwindSafe for MappedByteBuffer
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>,