Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting encoded bits into bytes #163

Open
wlevans opened this issue Jan 4, 2023 · 1 comment
Open

Converting encoded bits into bytes #163

wlevans opened this issue Jan 4, 2023 · 1 comment

Comments

@wlevans
Copy link

wlevans commented Jan 4, 2023

Hello,

I am working on project where I need to encode a given file into a forward error correction byte array (uint8_t or unsigned char).

I am writing a class (wrapper) for an LDPC encoder. I have been using the examples given in issues #53 and #87 as guides. I am using Source_user and have written a member function to save the source data into the appropriate file format as per section 3.2.2.4 of the User Manual. I can successfully encode/decode data using my class.

The encoded bits is a std::vector of ints, but I need to convert this to an std::vector or array of bytes (uint8_t or unsigned char). Does AFF3CT have a function that can do this?

@wlevans
Copy link
Author

wlevans commented Jan 4, 2023

Hello,

I wrote a member function to convert the bit vector to a byte vector, so I have that covered.

However, I've had to past my encoder class together with example code I've hunted for online. Is there a more in depth guide than the user manual? It explains how to use the simulator, but how to code your own.

Thanks,

Willy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant