No, you can do that; it's easy enough. If you get stuck post what you've got and we'll give you a hint how to continue. Start by RTFM to understand how the functions work.

I don't know if endianness will make any difference, but you'll need to check if the LDPC coder takes that into account.