AvroParser
public static Task<bool> ReadBoolAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a bool from the stream.
public static Task<byte[]> ReadBytesAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a fixed number of bytes from the stream.
public static Task<double> ReadDoubleAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a double from the stream.
public static Task<byte[]> ReadFixedBytesAsync(Stream stream, int length, bool async, CancellationToken cancellationToken)
Reads a fixed number of bytes from the stream.
The number of bytes to return is the first int read from the stream.
public static Task<float> ReadFloatAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a float from the stream.
public static Task<int> ReadIntAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads an int from the stream.
public static Task<long> ReadLongAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a long from the stream.
public static Task<Dictionary<string, T>> ReadMapAsync<T>(Stream stream, Func<Stream, bool, CancellationToken, Task<T>> parseItemAsync, bool async, CancellationToken cancellationToken)
Reads a map from the stream.
Returns null.
public static Task<string> ReadStringAsync(Stream stream, bool async, CancellationToken cancellationToken)
Reads a string from the stream.