IStream.ReadSomeAsync()

DESCRIPTION

Read some bytes from a stream without blocking. The returned Task can fail with:

  • STOPPED if the stream was stopped.
  • OPERATION_IN_PROGRESS if another read is in progress.
  • EOF if eof is reached

DECLARATION

System.Threading.Tasks.Task`1[System.Byte[]] ReadSomeAsync(Int32)

PARAMETERS

  • max: The max number of bytes to read

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the stream was stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code OPERATION_IN_PROGRESS if another read is in progress.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code EOF if eof is reached.

RETURNS

The Task that will complete when the bytes are ready.