xxxxxxxxxx
void dynamicLength(ubyte[] chunk)
{
chunk[0 .. $/2] = 0;
}
void staticLength(int N)(ref ubyte[N] chunk)
{
chunk[0 .. N/2] = 0;
}
void main()
{
enum N = 100;
ubyte[N] chunk = void;
dynamicLength(chunk);
staticLength(chunk);
}