system\io\unmanagedmemorystream.cs (19)
328return Interlocked.Read(ref _position);
344Interlocked.Exchange(ref _position, value);
357long pos = Interlocked.Read(ref _position);
377Interlocked.Exchange(ref _position, value - _mem);
408long pos = Interlocked.Read(ref _position);
441Interlocked.Exchange(ref _position, pos + n);
481long pos = Interlocked.Read(ref _position); // Use a local to avoid a race condition
485Interlocked.Exchange(ref _position, pos + 1);
518Interlocked.Exchange(ref _position, offset);
522long pos = Interlocked.Read(ref _position);
525Interlocked.Exchange(ref _position, offset + pos);
532Interlocked.Exchange(ref _position, len + offset);
539long finalPos = Interlocked.Read(ref _position);
557long pos = Interlocked.Read(ref _position);
566Interlocked.Exchange(ref _position, value);
585long pos = Interlocked.Read(ref _position); // Use a local to avoid a race condition
637Interlocked.Exchange(ref _position, n);
678long pos = Interlocked.Read(ref _position); // Use a local to avoid a race condition
724Interlocked.Exchange(ref _position, n);