Are you sure this is 0x16, not 16? (I thought I was 16, so I guess).
Edit: any decent compiler should turn (x / 16)into (x >> 4).
int length = 16 * ((content.Length + 15) / 16);
Array.Resize(ref content, length);
2: :
int length = alignment * ((content.Length + alignment - 1) / alignment);
Array.Resize(ref content, length);