int IPositionedMessagesReader.GetContentsEtag()
        {
            VolatileStream.Position = 0;
            byte[] buf  = new byte[1024];
            int    read = VolatileStream.Read(buf, 0, buf.Length);

            return(Hashing.GetStableHashCode(buf, 0, read));
        }
Beispiel #2
0
        async ValueTask <int> IPositionedMessagesReader.GetContentsEtag()
        {
            VolatileStream.Position = 0;
            byte[] buf  = new byte[1024];
            int    read = await VolatileStream.ReadAsync(buf, 0, buf.Length);

            return(Hashing.GetStableHashCode(buf, 0, read));
        }