[]Struct jni_android_sys::java::nio::MappedByteBuffer

#[repr(transparent)]
pub struct 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]

load

Required features: "java-nio-MappedByteBuffer"

pub fn force<'env>(
    &'env self
) -> Result<Option<Local<'env, MappedByteBuffer>>, Local<'env, Throwable>>
[src]

force

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]

slice

Required features: "java-nio-ByteBuffer"

pub fn duplicate<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

duplicate

Required features: "java-nio-ByteBuffer"

pub fn asReadOnlyBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

asReadOnlyBuffer

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]

put

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]

put

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]

get

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]

get

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]

put

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]

put

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]

put

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]

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]

compact

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]

toString

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]

equals

Required features: "java-lang-Object"

pub fn compareTo_ByteBuffer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32, Local<'env, Throwable>>
[src]

compareTo

Required features: "java-nio-ByteBuffer"

pub fn order<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteOrder>>, Local<'env, Throwable>>
[src]

order

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]

order

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]

putChar

Required features: "java-nio-ByteBuffer"

pub fn getChar_int<'env>(
    &'env self,
    arg0: i32
) -> Result<jchar, Local<'env, Throwable>>
[src]

pub fn putChar_int_char<'env>(
    &'env self,
    arg0: i32,
    arg1: jchar
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putChar

Required features: "java-nio-ByteBuffer"

pub fn asCharBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, CharBuffer>>, Local<'env, Throwable>>
[src]

asCharBuffer

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]

putShort

Required features: "java-nio-ByteBuffer"

pub fn getShort_int<'env>(
    &'env self,
    arg0: i32
) -> Result<i16, Local<'env, Throwable>>
[src]

pub fn putShort_int_short<'env>(
    &'env self,
    arg0: i32,
    arg1: i16
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putShort

Required features: "java-nio-ByteBuffer"

pub fn asShortBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, ShortBuffer>>, Local<'env, Throwable>>
[src]

asShortBuffer

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]

putInt

Required features: "java-nio-ByteBuffer"

pub fn getInt_int<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn putInt_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putInt

Required features: "java-nio-ByteBuffer"

pub fn asIntBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, IntBuffer>>, Local<'env, Throwable>>
[src]

asIntBuffer

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]

putLong

Required features: "java-nio-ByteBuffer"

pub fn getLong_int<'env>(
    &'env self,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn putLong_int_long<'env>(
    &'env self,
    arg0: i32,
    arg1: i64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putLong

Required features: "java-nio-ByteBuffer"

pub fn asLongBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, LongBuffer>>, Local<'env, Throwable>>
[src]

asLongBuffer

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]

putFloat

Required features: "java-nio-ByteBuffer"

pub fn getFloat_int<'env>(
    &'env self,
    arg0: i32
) -> Result<f32, Local<'env, Throwable>>
[src]

pub fn putFloat_int_float<'env>(
    &'env self,
    arg0: i32,
    arg1: f32
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putFloat

Required features: "java-nio-ByteBuffer"

pub fn asFloatBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, FloatBuffer>>, Local<'env, Throwable>>
[src]

asFloatBuffer

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]

putDouble

Required features: "java-nio-ByteBuffer"

pub fn getDouble_int<'env>(
    &'env self,
    arg0: i32
) -> Result<f64, Local<'env, Throwable>>
[src]

pub fn putDouble_int_double<'env>(
    &'env self,
    arg0: i32,
    arg1: f64
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

putDouble

Required features: "java-nio-ByteBuffer"

pub fn asDoubleBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, DoubleBuffer>>, Local<'env, Throwable>>
[src]

asDoubleBuffer

Required features: "java-nio-DoubleBuffer"

Trait Implementations

impl AsJValue for MappedByteBuffer

impl AsValidJObjectAndEnv for MappedByteBuffer

impl Deref for MappedByteBuffer

type Target = ByteBuffer

The resulting type after dereferencing.

impl JniType for MappedByteBuffer

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.