Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"03-25-15 - My Chameleon"

2 Comments -

1 – 2 of 2
Blogger AJ said...

a note in your header suggests the output size may exceed the input size, and to ensure the buffer is big enough. By how much? Have you any idea about what size is required?

March 26, 2015 at 3:58 AM

Blogger cbloom said...

Maximum output size is

(33/32)*in_size + 2

I believe.

You could also add a check for output overrun in each unrolled loop step. It's only done once per 64 input bytes so it should not effect speed much.

March 26, 2015 at 9:44 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.