Language::Befunge::Storage::Generic::Vec::XS - Language::Befunge::Storage::Generic::Vec rewritten for speed


Language-Befunge-Storage-Generic-Vec-XS documentation  | view source Contained in the Language-Befunge-Storage-Generic-Vec-XS distribution.

Index


NAME

Top

Language::Befunge::Storage::Generic::Vec::XS - Language::Befunge::Storage::Generic::Vec rewritten for speed

DESCRIPTION

Top

Language::Befunge::Storage::Generic::Vec implements a linear storage model, where a perl string is used to store a (potentially very large) integer array. The integers are accessed from perl with vec().

Unfortunately, vec() operates on unsigned integers, which means some extra calculations are necessary to convert between unsigned and signed integers.

If the access was done from C, using a signed integer pointer, the access would be much faster, and the conversion would be unnecessary.

METHODS

Top

This module implements a subset of the LBSGV API. Please refer to that module for more information on the methods we implement, listed as follows:

get_value()
set_value()
_offset()
expand()
_is_xs()

SEE ALSO

Top

Language::Befunge::Storage::Generic::Vec

AUTHOR

Top

Mark Glines, <mark@glines.org>

Development is discussed on <language-befunge@mongueurs.net>

COPYRIGHT & LICENSE

Top


Language-Befunge-Storage-Generic-Vec-XS documentation  | view source Contained in the Language-Befunge-Storage-Generic-Vec-XS distribution.