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

C example #16

Open
Mitchbux opened this issue May 8, 2022 · 1 comment
Open

C example #16

Mitchbux opened this issue May 8, 2022 · 1 comment

Comments

@Mitchbux
Copy link

Mitchbux commented May 8, 2022

Hello

What would be the decode program for

huf_read_writer_t *file_in;
huf_fdopen(&file_in, 0) // Read from standard input.

void *buf = NULL;
huf_read_writer_t *mem_out;
huf_memopen(&mem_out, &buf, HUF_1MIB_BUFFER);

huf_config_t config = {
.reader = file_in,
.writer = mem_out,
.length = length,
.blocksize = HUF_64KIB_BUFFER,
.reader_buffer_size = HUF_128KIB_BUFFER,
.writer_buffer_size = HUF_128KIB_BUFFER,
};

??

I'm having problem finding the encoded data.

@ybubnov
Copy link
Owner

ybubnov commented Jun 4, 2022

@Mitchbux, I apologize for not replying fast. I recommend seeing the example in the C-test encode_test.c

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

2 participants