Beef Corlib
List of all members
System.IO.FileStream Class Reference
Inheritance diagram for System.IO.FileStream:
System.IO.BufferedFileStream System.IO.BufferedStream System.IO.Stream

Additional Inherited Members

- Public Types inherited from System.IO.Stream
enum  SeekKind { Absolute, Relative, FromEnd }
 
- Public Member Functions inherited from System.IO.BufferedFileStream
 BufferedFileStream (Platform.BfpFile *handle, FileAccess access, int32 bufferSize, bool isAsync)
 
Result< void, FileOpenError > Create (StringView path, FileAccess access=.ReadWrite, FileShare share=.None, int bufferSize=4096, FileOptions options=.None, SecurityAttributes *secAttrs=null)
 
Result< void, FileOpenError > Open (StringView path, FileAccess access=.ReadWrite, FileShare share=.None, int bufferSize=4096, FileOptions options=.None, SecurityAttributes *secAttrs=null)
 
Result< void, FileOpenError > OpenStd (Platform.BfpFileStdKind stdKind)
 
Result< void, FileOpenError > Open (StringView path, FileMode mode, FileAccess access, FileShare share=.None, int bufferSize=4096, FileOptions options=.None, SecurityAttributes *secAttrs=null)
 
void Attach (Platform.BfpFile *bfpFile, FileAccess access=.ReadWrite)
 
override Result< void > Seek (int64 pos, SeekKind seekKind=.Absolute)
 
override Result< void > Close ()
 
Result< int, FileErrorTryRead (Span< uint8 > data, int timeoutMS)
 
override Result< void > SetLength (int64 length)
 
- Public Member Functions inherited from System.IO.BufferedStream
void MakeBuffer (int size)
 
override Result< int > TryRead (Span< uint8 > data)
 
override Result< int > TryWrite (Span< uint8 > data)
 
override Result< void > Flush ()
 
- Public Member Functions inherited from System.IO.Stream
Result< T > Peek< T > ()
 
void Skip (int64 count)
 
void Write (uint8 byte, int64 count)
 
Result< void > ReadStrSized32 (int size, String output)
 Read sized string from stream.
 
Result< void > ReadStrSized32 (String output)
 
Result< void > ReadStrC (String output)
 Reads null terminated ASCII string from the stream. Null terminator is read from stream but isn't appended to output string.
 
Result< T > Read< T > ()
 
Result< void > Write< T > (T val)
 
Result< void > Write< T, T2 > (T val)
 
Result< void > WriteStrSized32 (StringView val)
 
Result< void > WriteStrUnsized (StringView val)
 
Result< void > Write (String val)
 
void Align (int alignSize)
 
virtual Result< int > CopyTo (Stream destStream)
 
virtual IAsyncResult BeginRead (uint8[] buffer, int offset, int count, AsyncCallback callback, Object state)
 
virtual Result< int > EndRead (IAsyncResult asyncResult)
 
- Protected Member Functions inherited from System.IO.BufferedFileStream
virtual void Delete ()
 
override void UpdateLength ()
 
Result< void, FileErrorSeekUnderlying (int64 offset, Platform.BfpFileSeekKind seekKind=.Absolute)
 
override Result< int > TryReadUnderlying (int64 pos, Span< uint8 > data)
 
override Result< int > TryWriteUnderlying (int64 pos, Span< uint8 > data)
 
- Protected Attributes inherited from System.IO.BufferedFileStream
Platform.BfpFilemBfpFile
 
int64 mBfpFilePos
 
- Protected Attributes inherited from System.IO.BufferedStream
int64 mPos
 
int64 mUnderlyingLength
 
uint8[] mBuffer ~ delete _
 
int64 mBufferPos = -Int32.MinValue
 
int64 mBufferEnd = -Int32.MinValue
 
int64 mWriteDirtyPos = -Int32.MinValue
 
int64 mWriteDirtyEnd = -Int32.MinValue
 
- Properties inherited from System.IO.BufferedFileStream
int Handle [get]
 
override bool CanRead [get]
 
override bool CanWrite [get]
 
override int64 Position [set]
 
- Properties inherited from System.IO.BufferedStream
override int64 Position [get, set]
 
override int64 Length [get]
 
- Properties inherited from System.IO.Stream
abstract int64 Position [get, set]
 
abstract int64 Length [get]
 
abstract bool CanRead [get]
 
abstract bool CanWrite [get]
 
bool IsEmpty [get]