12 references to SR
System.Memory (12)
src\runtime\src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (4)
245
throw new InvalidOperationException(
SR
.Format(
SR
.BufferWriterAdvancedTooFar, capacity));
250
throw new OutOfMemoryException(
SR
.Format(
SR
.BufferMaximumSizeExceeded, capacity));
System\Buffers\ReadOnlySequenceStream.cs (7)
209
public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(
SR
.NotSupported_UnwritableStream);
212
public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(
SR
.NotSupported_UnwritableStream);
215
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(
SR
.NotSupported_UnwritableStream);
218
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(
SR
.NotSupported_UnwritableStream);
230
_ => throw new ArgumentException(
SR
.Argument_InvalidSeekOrigin, nameof(origin))
239
throw new IOException(
SR
.IO_SeekBeforeBegin);
267
public override void SetLength(long value) => throw new NotSupportedException(
SR
.NotSupported_UnwritableStream);
System\ThrowHelper.cs (1)
45
private static InvalidOperationException CreateInvalidOperationException_EndPositionNotReached() { return new InvalidOperationException(
SR
.EndPositionNotReached); }