Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
class | OverlappedValueTaskSource |
class | ThreadPoolValueTaskSource |
Public Member Functions | |
SafeFileHandle (IntPtr preexistingHandle, bool ownsHandle) | |
SafeFileHandle () | |
IntPtr | DangerousGetHandle () |
void | Close () |
void | Dispose () |
void | SetHandleAsInvalid () |
void | DangerousAddRef (ref bool success) |
void | DangerousRelease () |
Protected Member Functions | |
override bool | ReleaseHandle () |
virtual void | Dispose (bool disposing) |
Protected Attributes | |
IntPtr | handle |
Package Functions | |
ThreadPoolValueTaskSource | GetThreadPoolValueTaskSource () |
void | EnsureThreadPoolBindingInitialized () |
unsafe FileOptions | GetFileOptions () |
int | GetFileType () |
OverlappedValueTaskSource | GetOverlappedValueTaskSource () |
void | SetHandle (IntPtr handle) |
Static Package Functions | |
static SafeFileHandle | Open (string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize) |
Properties | |
string? | Path [get] |
bool | IsAsync [get] |
bool | CanSeek [get] |
ThreadPoolBoundHandle? | ThreadPoolBinding [get, set] |
override bool | IsInvalid [get] |
bool | OwnsHandle [get] |
bool | IsClosed [get] |
Private Member Functions | |
void | InitThreadPoolBinding () |
void | TryToReuse (OverlappedValueTaskSource source) |
void | InternalRelease (bool disposeOrFinalizeOperation) |
Static Private Member Functions | |
static unsafe SafeFileHandle | CreateFile (string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) |
static unsafe void | Preallocate (string fullPath, long preallocationSize, SafeFileHandle fileHandle) |
Private Attributes | |
string | _path |
ThreadPoolValueTaskSource | _reusableThreadPoolValueTaskSource |
volatile FileOptions | _fileOptions = (FileOptions)(-1) |
volatile int | _fileType = -1 |
OverlappedValueTaskSource | _reusableOverlappedValueTaskSource |
volatile int | _state |
readonly bool | _ownsHandle |
volatile bool | _fullyInitialized |
Definition at line 14 of file SafeFileHandle.cs.