readSync method

num? readSync(
  1. Uint8List p
)

Reads the next p.length bytes from the buffer or until the buffer is drained. Returns the number of bytes read. If the buffer has no data to return, the return is EOF (null).

Implementation

_i2.num? readSync(_i9.Uint8List p) => _i3.callMethod(
      this,
      'readSync',
      [p],
    );