Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Lock()

virtual void System.IO.FileStream.Lock ( long position,
long length )
inlinevirtualinherited

Reimplemented in System.IO.IsolatedStorage.IsolatedStorageFileStream.

Definition at line 226 of file FileStream.cs.

227 {
228 if (position < 0 || length < 0)
229 {
230 ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum((position < 0) ? "position" : "length");
231 }
232 else if (_strategy.IsClosed)
233 {
234 ThrowHelper.ThrowObjectDisposedException_FileClosed();
235 }
236 _strategy.Lock(position, length);
237 }
readonly FileStreamStrategy _strategy
Definition FileStream.cs:12
void Lock(long position, long length)

References System.IO.FileStream._strategy, System.IO.Strategies.FileStreamStrategy.IsClosed, System.length, System.IO.Strategies.FileStreamStrategy.Lock(), System.ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(), and System.ThrowHelper.ThrowObjectDisposedException_FileClosed().

Referenced by System.IO.IsolatedStorage.IsolatedStorageFileStream.Lock().