11-05-2015 06:46 AM
GerdW wrote:
@Jeff: Is there a reason to add 4096 bytes to the string when it happens to have a length dividable by 4096?
It won't. If the length is divisible by 4096, then the remainder will be 0. Therefore an empty array will be created.
11-05-2015 06:48 AM - edited 11-05-2015 06:49 AM
11-05-2015 06:59 AM
Oops. I missed the subtraction. It's way too early in the morning...
11-05-2015 11:34 AM
@crossrulz wrote:
Oops. I missed the subtraction. It's way too early in the morning...
Way too late at night for me... There shoulg probably be an inc or dec in there somewhere in the math.... The math is left for the OP as an exercise