buf_size: prefer the declared array size