operator [] method

int operator [](
  1. int index
)

Get a byte in the buffer relative to the current read position.

Implementation

int operator [](int index) => buffer[offset + index];