C# Class DotNetIO.FileSystems.InMemory.InMemoryFile

Inheritance: System.IO.File
Show file Open project: DotNetIO/DotNetIO Class Usage Examples

Protected Properties

Property Type Description
_exists bool

Public Methods

Method Description
CopyTo ( FileSystemItem where ) : void
Create ( ) : File
Delete ( ) : void
Exists ( ) : bool
GetLastModifiedTimeUtc ( ) : DateTimeOffset?
GetSize ( ) : long
InMemoryFile ( string filePath ) : System
MoveTo ( FileSystemItem newFileName ) : FileSystemItem
Open ( FileMode fileMode, FileAccess fileAccess, FileShare fileShare, int bufSize, FileOptions fileOptions ) : Stream
ToString ( ) : string

Private Methods

Method Description
CopyFromFile ( InMemoryFile fileToCopy ) : void
EnsureExists ( ) : void
FileStreamClosed ( ) : void
Resize ( long offset ) : void
ValidateFileLock ( FileAccess fileAccess, FileShare fileShare ) : void
ValidateFileMode ( FileMode fileMode ) : long
VerifyExists ( ) : void

Method Details

CopyTo() public method

public CopyTo ( FileSystemItem where ) : void
where FileSystemItem
return void

Create() public method

public Create ( ) : File
return System.IO.File

Delete() public method

public Delete ( ) : void
return void

Exists() public method

public Exists ( ) : bool
return bool

GetLastModifiedTimeUtc() public method

public GetLastModifiedTimeUtc ( ) : DateTimeOffset?
return DateTimeOffset?

GetSize() public method

public GetSize ( ) : long
return long

InMemoryFile() public method

public InMemoryFile ( string filePath ) : System
filePath string
return System

MoveTo() public method

public MoveTo ( FileSystemItem newFileName ) : FileSystemItem
newFileName FileSystemItem
return FileSystemItem

Open() public method

public Open ( FileMode fileMode, FileAccess fileAccess, FileShare fileShare, int bufSize, FileOptions fileOptions ) : Stream
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
bufSize int
fileOptions FileOptions
return Stream

ToString() public method

public ToString ( ) : string
return string

Property Details

_exists protected property

protected bool _exists
return bool