Skip to content

Commit 3c362af

Browse files
committed
Fix erroneous MemoryStreamSlim access modifiers on some properties
- Updated CanWriteInternal, LengthInternal, PositionInternal, and CapacityInternal properties in MemoryStreamSlim from protected to internal, allowing access within the same assembly instead of only derived classes.
1 parent 44a3f2a commit 3c362af

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Source/Src/KZDev.PerfUtils/MemoryStream/MemoryStreamSlim.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,24 @@ long MaximumCapacity
228228
/// <summary>
229229
/// <c>true</c> when the stream can be written to.
230230
/// </summary>
231-
protected bool CanWriteInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
231+
internal bool CanWriteInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
232232

233233
/// <summary>
234234
/// The current length of this stream.
235235
/// </summary>
236-
protected long LengthInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; } = 0;
236+
internal long LengthInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; } = 0;
237237

238238
/// <summary>
239239
/// The current file position in this stream.
240240
/// </summary>
241-
protected long PositionInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; } = 0;
241+
internal long PositionInternal { [DebuggerStepThrough] get; [DebuggerStepThrough] set; } = 0;
242242

243243
/// <summary>
244244
/// The current capacity of this stream. This is the reported capacity, not the actual
245245
/// allocated capacity, which can be larger. This is also the capacity that can be
246246
/// explicitly set by the user. So, we will always have at least this much space.
247247
/// </summary>
248-
protected long CapacityInternal
248+
internal long CapacityInternal
249249
{
250250
[DebuggerStepThrough]
251251
get => _internalCapacity;

0 commit comments

Comments
 (0)