Commit 3c5b47e6 authored by Geoff Simmons's avatar Geoff Simmons

various refactorings:

- establish a common interface for encoders and decoders, and
  re-implement the existing functions accordingly
- encoders always convert STRING_LIST to BLOB, decoders vice versa
- VMOD encode() and decode() write the new data to workspace
- transcode() writes the temporary BLOB to stack, then encodes it
  into a STRING in workspace
- if the same encoding is specified in transcode() for encode and decode,
  just return the concatenated STRING
  - XXX: except this won't reject illegal decodings
- simplify hex_encode(), and fix hex_en-/decode_l() (was backwards)
- add a macro to skip over empty and undefined strings in a STRING_LIST
parent ebbc84ee
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment