Struct stdweb::web::ArrayBuffer
[−]
[src]
pub struct ArrayBuffer(_);
The ArrayBuffer
object is used to represent a generic, fixed-length raw binary data buffer.
You cannot directly manipulate the contents of an ArrayBuffer; instead, you create an TypedArray
to do it.
Methods
impl ArrayBuffer
[src]
fn new(length: usize) -> Self
[src]
Creates a new ArrayBuffer
with the given length in bytes.
fn len(&self) -> usize
[src]
Returns the length of the buffer, in bytes.
Trait Implementations
impl Debug for ArrayBuffer
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter.
impl Clone for ArrayBuffer
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for ArrayBuffer
[src]
impl<R: TryInto<Reference>> TryFrom<R> for ArrayBuffer where
<R as TryInto<Reference>>::Error: Into<Box<Error>>,
[src]
<R as TryInto<Reference>>::Error: Into<Box<Error>>,