Struct gdnative_visual_script::common::ByteArray[]

pub struct ByteArray(_);

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

Methods

impl ByteArray

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 ToVariant for ByteArray

impl<'l> From<&'l ByteArray> for Variant

Performs the conversion.

impl Default for ByteArray

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

impl Drop for ByteArray

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for ByteArray

impl Sync for ByteArray