The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SPVM::Data::Array - SPVM Array

METHODS

to_elems

  my $nums = $spvm_nums->to_elems;

Convert SPVM array to Perl array reference.

to_bin

  my $binary = $spvm_nums->to_bin;

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_str

  my $string = $spvm_nums->to_str;

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

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