Google is committed to advancing racial equity for Black communities. See how.

read method

*<Null safety>*

ReadResult read (int numBytes)

Implementation

ReadResult read(int numBytes) {
  if (handle == null) {
    return const ReadResult(ZX.ERR_INVALID_ARGS);
  }

  return System.socketRead(handle!, numBytes);
}