Calculate the finished buffer size (aligned).
@pragma('vm:prefer-inline') int size() => _tail + ((-_tail) & (_maxAlign - 1));