|
enum | SeekKind { Absolute,
Relative,
FromEnd
} |
|
| 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, FileError > | TryRead (Span< uint8 > data, int timeoutMS) |
|
override Result< void > | SetLength (int64 length) |
|
void | MakeBuffer (int size) |
|
override Result< int > | TryRead (Span< uint8 > data) |
|
override Result< int > | TryWrite (Span< uint8 > data) |
|
override Result< void > | Flush () |
|
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) |
|
virtual void | Delete () |
|
override void | UpdateLength () |
|
Result< void, FileError > | SeekUnderlying (int64 offset, Platform.BfpFileSeekKind seekKind=.Absolute) |
|
override Result< int > | TryReadUnderlying (int64 pos, Span< uint8 > data) |
|
override Result< int > | TryWriteUnderlying (int64 pos, Span< uint8 > data) |
|
Platform.BfpFile * | mBfpFile |
|
int64 | mBfpFilePos |
|
int64 | mPos |
|
int64 | mUnderlyingLength |
|
uint8[] mBuffer ~ delete | _ |
|
int64 | mBufferPos = -Int32.MinValue |
|
int64 | mBufferEnd = -Int32.MinValue |
|
int64 | mWriteDirtyPos = -Int32.MinValue |
|
int64 | mWriteDirtyEnd = -Int32.MinValue |
|
int | Handle [get] |
|
override bool | CanRead [get] |
|
override bool | CanWrite [get] |
|
override int64 | Position [set] |
|
override int64 | Position [get, set] |
|
override int64 | Length [get] |
|
abstract int64 | Position [get, set] |
|
abstract int64 | Length [get] |
|
abstract bool | CanRead [get] |
|
abstract bool | CanWrite [get] |
|
bool | IsEmpty [get] |
|