IStream.ReadAllAsync()

DESCRIPTION

Read an exact amount of bytes from a stream.

DECLARATION

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

PARAMETERS

  • bytes: The 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.