Using array.byteLength instead of capacity