The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SPVM::Data::String - SPVM String

METHODS

to_elems

  my $byte_array = $spvm_string->to_elems;

Convert SPVM string to Perl array reference.

Each element is corresponding byte of SPVM string.

to_bin

  my $binary = $spvm_string->to_bin;

Convert SPVM string to Perl byte string(encoded string).

to_str

  my $string = $spvm_string->to_str;

Convert SPVM string to Perl text string(decoded string).