cberner / raptorq

Rust implementation of RaptorQ (RFC6330)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support subblocks?

ekmett opened this issue · comments

What would be needed to support subblocks?

I went to use this for a data transmission application, and ran afoul of the buried assert in the encoder, but as I have no idea what caused that assertion to be buried there, I'm somewhat leery of playing around with it without context.

I'm guessing the issue has something to do with the fact that after sub-blocks are introduced symbols aren't necessarily contiguous storage?

I think it's relatively straight forward. The section on sub-block partitioning and recovery just needs to be implemented (https://tools.ietf.org/html/rfc6330#section-4.4.1.2). I'm happy to merge a PR, if you want to implement it. Otherwise, I'll probably get to it in the next week or so

This PR will allow you to configure the memory usage, and hence the number of sub-blocks created. Depending on the amount of data you're encoding, setting it higher may be a workaround for the moment: #48

Just merged support for this. Can you give it a try?

Will do!