Skip to content

IBinaryReader Interface

Definition

Reads binary data from an underlying source as byte arrays. Values should be read in whole blocks and then picked apart using the MrKWatkins.BinaryPrimitives extension methods. Implementations may complete reads either synchronously or asynchronously.

public abstract interface IBinaryReader

Methods

Name Description
AtEndAsync() Determines whether the end of the source has been reached.
ReadAsync(Int32) Reads exactly count bytes from the source.
ReadToEndAsync() Reads all remaining bytes from the source.