Beef Corlib
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
System.IO.StringStream Class Reference
Inheritance diagram for System.IO.StringStream:
System.IO.Stream

Public Types

enum  StringViewInitKind { Copy, Reference }
 
enum  StringInitKind { Copy, Reference, TakeOwnership }
 
- Public Types inherited from System.IO.Stream
enum  SeekKind { Absolute, Relative, FromEnd }
 

Public Member Functions

 StringStream (StringView str, StringViewInitKind initKind)
 
 StringStream (String str, StringInitKind initKind)
 
override Result< int > TryRead (Span< uint8 > data)
 
override Result< int > TryWrite (Span< uint8 > data)
 
override Result< void > Close ()
 
- Public Member Functions inherited from System.IO.Stream
virtual Result< void > Seek (int64 pos, SeekKind seekKind=.Absolute)
 
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)
 

Protected Member Functions

virtual void DeleteOwned ()
 

Properties

StringView Content [get]
 
override int64 Position [get, set]
 
override int64 Length [get]
 
override bool CanRead [get]
 
override bool CanWrite [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]