++ed by:
HAMMER ILUX SKOLYCHEV POTATOGIM VEESH

14 PAUSE users
6 non-PAUSE users.

Yuki Kimoto

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.