ReadUIntAsync() public static method

public static ReadUIntAsync ( Stream s, CancellationToken cancel_token ) : Task
s Stream
cancel_token System.Threading.CancellationToken
return Task
        public static async Task <Element> ReadHeaderAsync(Stream s, CancellationToken cancel_token)
        {
            var id = await VInt.ReadUIntAsync(s, cancel_token).ConfigureAwait(false);

            var sz = await VInt.ReadUIntAsync(s, cancel_token).ConfigureAwait(false);

            return(new Element(id, sz));
        }