truncate abstract method

void truncate(
  1. int newLength, {
  2. bool sparse = true,
})

Changes logical length. sparse marks the file sparse on Windows before extending, so that later far-offset writes do not zero-fill the gap.

Implementation

void truncate(int newLength, {bool sparse = true});