nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Rework encode/decode functions to be more storage-friendly #109

Open jphickey opened 2 years ago

jphickey commented 2 years ago

The BPv7 encode/decode functions currently operate on memory buffers. In order to facilitate other forms of storage, such as files, this needs to be further abstracted. The encode and decode functions should be reworked a bit to achieve:

This will be required to support file storage in an efficient manner.

jphickey commented 2 years ago

Adding this should permit the bundles to be stored in final/encoded form (CBOR) rather than the intermediate form they are stored in right now, which is larger than it needs to be.