span method

FileSpan span (int start, [ int end ])

Returns a span in this from start to end (exclusive).

If end isn't passed, it defaults to the end of the file.

Implementation

FileSpan span(int start, [int end]) {
  if (end == null) end = length - 1;
  return new _FileSpan(this, start, end);
}