diff --git a/Projects/Server/Serialization/BinaryFileReader.cs b/Projects/Server/Serialization/BinaryFileReader.cs index 830e3c649..f540f8e2e 100644 --- a/Projects/Server/Serialization/BinaryFileReader.cs +++ b/Projects/Server/Serialization/BinaryFileReader.cs @@ -185,6 +185,14 @@ public void Dispose() [MethodImpl(MethodImplOptions.AggressiveInlining)] public int Read(Span buffer) => _reader.Read(buffer); + /// + /// Sets the current position of the stream to a specified value. + /// + /// The new position, relative to the parameter. + /// The reference point for the parameter. It can be one of the values of . + /// The new position in the stream, in bytes. + /// Thrown when the or the resulting position is out of the valid range. + /// Thrown if the stream does not support seeking. [MethodImpl(MethodImplOptions.AggressiveInlining)] public long Seek(long offset, SeekOrigin origin) => _reader.Seek(offset, origin); } diff --git a/Projects/Server/Serialization/UnmanagedDataReader.cs b/Projects/Server/Serialization/UnmanagedDataReader.cs index db453492f..e9f861721 100644 --- a/Projects/Server/Serialization/UnmanagedDataReader.cs +++ b/Projects/Server/Serialization/UnmanagedDataReader.cs @@ -304,6 +304,14 @@ public int Read(Span buffer) return length; } + /// + /// Sets the current position of the stream to a specified value. + /// + /// The new position, relative to the parameter. + /// The reference point for the parameter. It can be one of the values of . + /// The new position in the stream, in bytes. + /// Thrown when the or the resulting position is out of the valid range. + /// Thrown if the stream does not support seeking. public virtual long Seek(long offset, SeekOrigin origin) { Debug.Assert(