InputBuffer.from constructor

InputBuffer.from(
  1. InputBuffer other, {
  2. int offset = 0,
  3. int? length,
})

Create a copy of other.

Implementation

InputBuffer.from(InputBuffer other, {int offset = 0, int? length})
    : buffer = other.buffer,
      offset = other.offset + offset,
      start = other.start,
      end = (length == null) ? other.end : other.offset + offset + length,
      bigEndian = other.bigEndian;