slice method

Buffer slice([
  1. int start,
  2. int end
])

Returns a new Buffer that references the same memory as the original, but offset and cropped by the start and end indices.

Implementation

external Buffer slice([int start, int end]);