1. Craig McQueen
  2. cobs-c
  3. Issues
Issue #2 open

Test in-place encoding and/or decoding (one buffer for input and output)

Craig McQueen
repo owner created an issue

Examine whether the code supports in-place encoding and/or decoding. That is, output is written to the input buffer, overwriting the original input. It could be useful to save RAM in small embedded systems.

  • My guess is that in-place decoding should work as-is
  • In-place encoding should work I think, however the input would have to be offset from the start of the output buffer by a certain number of bytes.

Once this has been checked:

  • Add some unit tests to check this.
  • Add documentation to say whether/how it works.

Comments (2)

  1. Log in to comment