예제 #1
0
 public long ReadInt64()
 {
     ReadBytes(_smallBuffer, 8);
     return(TypeDecoder.DecodeInt64(_smallBuffer));
 }
예제 #2
0
        public async ValueTask <long> ReadInt64Async(CancellationToken cancellationToken = default)
        {
            await ReadBytesAsync(_smallBuffer, 8, cancellationToken).ConfigureAwait(false);

            return(TypeDecoder.DecodeInt64(_smallBuffer));
        }
        public async Task <long> ReadInt64(AsyncWrappingCommonArgs async)
        {
            await ReadBytes(_smallBuffer, 8, async).ConfigureAwait(false);

            return(TypeDecoder.DecodeInt64(_smallBuffer));
        }