Table of Contents

Class NativeLockFile

Namespace
Stride.Core.IO
Assembly
Stride.Core.IO.dll
public static class NativeLockFile
Inheritance
NativeLockFile

Methods

TryLockFile(FileStream, long, long, bool, bool)

public static bool TryLockFile(FileStream fileStream, long offset, long count, bool exclusive, bool failImmediately = false)

Parameters

fileStream FileStream
offset long
count long
exclusive bool
failImmediately bool

Returns

bool

TryUnlockFile(FileStream, long, long)

public static void TryUnlockFile(FileStream fileStream, long offset, long count)

Parameters

fileStream FileStream
offset long
count long