Struct gdnative::ByteArray [] [src]

pub struct ByteArray(_);

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

Methods

impl ByteArray
[src]

[src]

Creates an empty array.

[src]

Creates an array by trying to convert each variant.

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

[src]

Appends a byte to the end of the array.

[src]

Appends each byte to the end of the array.

[src]

Inserts a byte at the given offset.

[src]

Inverts the order of the elements in the array.

[src]

Removes an element at the given offset.

[src]

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

[src]

Returns a copy of the byte at the given offset.

[src]

Sets the value of the byte at the given offset.

[src]

Returns the number of elements in the array.

[src]

Trait Implementations

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

[src]

Performs the conversion.

impl Drop for ByteArray
[src]

[src]

Executes the destructor for this type. Read more

impl Default for ByteArray
[src]

[src]

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

impl GodotType for ByteArray
[src]

[src]

[src]

[src]

Auto Trait Implementations

impl Send for ByteArray

impl Sync for ByteArray