Beef Corlib
Classes | Public Types | Public Member Functions | Properties | List of all members
System.IO.Stream Class Referenceabstract
Inheritance diagram for System.IO.Stream:
System.IO.BufferedStream System.IO.DynMemStream System.IO.DynMemStreamSequential System.IO.FileStreamBase System.IO.MemoryStream System.IO.NullStream System.IO.StringStream System.IO.Substream System.Test.TestStream

Public Types

enum  SeekKind { Absolute, Relative, FromEnd }
 

Public Member Functions

virtual Result< void > Seek (int64 pos, SeekKind seekKind=.Absolute)
 
abstract Result< int > TryRead (Span< uint8 > data)
 
abstract Result< int > TryWrite (Span< uint8 > data)
 
abstract Result< void > Close ()
 
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)
 
virtual Result< void > Flush ()
 
virtual Result< void > SetLength (int64 length)
 
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)
 

Properties

abstract int64 Position [get, set]
 
abstract int64 Length [get]
 
abstract bool CanRead [get]
 
abstract bool CanWrite [get]
 
bool IsEmpty [get]