NAME

SPVM::Data::Array - SPVM Array

METHODS

to_elements

my $nums = $spvm_nums->to_elements;

Convert SPVM array to Perl array reference.

to_binary

my $binary = $spvm_nums->to_binary;

Convert SPVM array to binary data.

Binary data is unpacked by unpack function.

An exmaple when array is int array:

my @nums = unpack 'l*', $binary;

to_string

my $string = $spvm_nums->to_string;

Convert SPVM array to perl text string(decoded string).

This method have mean only when SPVM array is byte array.