pub struct ByteArray<'a>(/* private fields */);Expand description
TODO: Implement properties and methods of flash.utils.ByteArray.
Implementations§
Source§impl<'a> ByteArray<'a>
impl<'a> ByteArray<'a>
pub fn new(ctx: &CurrentContext<'a>, length: u32) -> Self
pub fn from_bytes(ctx: &CurrentContext<'a>, bytes: impl AsRef<[u8]>) -> Self
Trait Implementations§
Source§impl<'a> AsObject<'a> for ByteArray<'a>
impl<'a> AsObject<'a> for ByteArray<'a>
fn as_object(self) -> Object<'a>
fn as_ptr(self) -> FREObject
fn is_null(self) -> bool
fn get_property(self, name: UCStr) -> Result<Object<'a>, ExternalError<'a>>
fn set_property<O: AsObject<'a>>( self, name: UCStr, value: O, ) -> Result<(), ExternalError<'a>>
fn call_method( self, name: UCStr, args: Option<&[Object<'_>]>, ) -> Result<Object<'a>, ExternalError<'a>>
impl<'a> Copy for ByteArray<'a>
impl<'a> Eq for ByteArray<'a>
impl<'a> StructuralPartialEq for ByteArray<'a>
Auto Trait Implementations§
impl<'a> Freeze for ByteArray<'a>
impl<'a> RefUnwindSafe for ByteArray<'a>
impl<'a> !Send for ByteArray<'a>
impl<'a> !Sync for ByteArray<'a>
impl<'a> Unpin for ByteArray<'a>
impl<'a> UnsafeUnpin for ByteArray<'a>
impl<'a> UnwindSafe for ByteArray<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more