mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
More concise naming
This commit is contained in:
@@ -40,11 +40,6 @@ namespace SabreTools.Serialization.Wrappers
|
||||
|
||||
#region Instance Variables
|
||||
|
||||
/// <summary>
|
||||
/// Lock object for reading from the source
|
||||
/// </summary>
|
||||
private readonly object _streamDataLock = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initial position within the underlying data
|
||||
/// </summary>
|
||||
@@ -60,6 +55,11 @@ namespace SabreTools.Serialization.Wrappers
|
||||
/// </summary>
|
||||
protected Stream _source;
|
||||
|
||||
/// <summary>
|
||||
/// Lock object for reading from the source
|
||||
/// </summary>
|
||||
private readonly object _sourceLock = new();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
@@ -130,7 +130,7 @@ namespace SabreTools.Serialization.Wrappers
|
||||
{
|
||||
// Correct the read offset
|
||||
offset += (int)_initialPosition;
|
||||
lock (_streamDataLock)
|
||||
lock (_sourceLock)
|
||||
{
|
||||
return _source.Read(buffer, offset, count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user