sponsored by
episec:
internet security for the paranoid.
lx_lib structural memory library
ari edelkind - custom works
blurb
lx_lib handles memory allocations as structures, keeping important
information such as the remaining allocated space and the length of the used
string internal to each variable (or descriptor). Much of it was initially
inspired by Dan Bernstein's stralloc library,
but the two are not compatible, nor has there ever been any intention to
make them compatible.
Some benefits of lx_lib include:
- strings need not be scanned to determine their length
- the amount of allocated string remaining is easily determined
- promotes more secure programming practices
- if used correctly, lx_lib can offer a significant speed increase over
traditional methods
- easy-to-use methods for manipulating strings
- generic descriptor support for buffered i/o
- generic descriptors enable fast scanning of input for specific
characters (e.g. a newline)
documentation
Incomplete documentation (and another blurb) may be found
here.
However, you may find the definitions atop each function (in the source
code) more helpful.
additional notes
Files in the bin directory will offer some examples of how to
use the library. Other programs that use lx_lib will of course do the same.
download
lx_lib is on github.
ari edelkind - [contact]