Struct gdnative_core::ByteArray[][src]

pub struct ByteArray(_);

A reference-counted vector of bytes that uses Godot's pool allocator.

Methods

impl ByteArray
[src]

Creates an empty array.

Creates an array by trying to convert each variant.

When no viable conversion exists, the default value 0 is pushed.

Appends a byte to the end of the array.

Appends each byte to the end of the array.

Inserts a byte at the given offset.

Inverts the order of the elements in the array.

Removes an element at the given offset.

Changes the size of the array, possibly removing elements or pushing default values.

Returns a copy of the byte at the given offset.

Sets the value of the byte at the given offset.

Returns the number of elements in the array.

Trait Implementations

impl<'l> From<&'l ByteArray> for Variant
[src]

Performs the conversion.

impl Drop for ByteArray
[src]

Executes the destructor for this type. Read more

impl Default for ByteArray
[src]

Returns the "default value" for a type. Read more

impl ToVariant for ByteArray
[src]

Auto Trait Implementations

impl Send for ByteArray

impl Sync for ByteArray