++ed by:
KES BEROV MHOWARD DMOL KRAUTCAT

13 PAUSE users
5 non-PAUSE users.

Yuki Kimoto

NAME

SPVM::BlessedObject::Array - Array based blessed object

DESCRIPTION

SPVM::BlessedObject::Array is array based blessed object.

This object contains SPVM array object.

SYNOPSYS

  # Convert SPVM array to Perl array reference
  my $nums = $spvm_nums->to_elems;

  # Convert SPVM array to Perl binary data
  my $binary = $spvm_nums->to_bin;
  
  # Convert SPVM array to perl text str(decoded str).
  my $str = $spvm_str->to_string;

  # Convert SPVM array to perl array reference which contains decoded strings.
  my $strs = $spvm_strs->to_strings;

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_string

  my $str = $spvm_str->to_string;

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

to_strings

  my $strs = $spvm_strs->to_strings;

Convert SPVM array to perl array reference which contains decoded strings.