Skip to content

Std stream stream

std:std.stream.Stream

Class Stream Extends Resource#

Stream class.

Aliases
OpenFunc Stream open function type
Consts
OpenFuncs Stream open functions map
Properties
ByteOrder The byte order of the stream.
Eof True if no more data can be read from the stream. (read only)
Length Current stream length. (read only)
Position Current stream position. (read only)
SharedPath (read only)
Methods
Close Closes the stream.
Read Reads data from the stream into memory.
ReadAll Reads as many bytes as possible from a stream into memory.
ReadBool Reads an unsigned byte as a bool from the stream.
ReadByte Reads a byte from the stream.
ReadCString Reads a null terminated cstring from the stream.
ReadDouble Reads a 64 bit double from the stream.
ReadFloat Reads a 32 bit float from the stream.
ReadInt Reads a 32 bit int from the stream.
ReadLine Reads a line of text from the stream.
ReadLong Reads a 32 bit long from the stream.
ReadShort Reads a 16 bit short from the stream.
ReadSizedString Reads a size prefixed string from the stream.
ReadString Reads the entire stream into a string.
ReadUByte Reads an unsigned byte from the stream.
ReadUInt Reads a 32 bit unsigned int from the stream.
ReadULong Reads a 32 bit unsigned long from the stream.
ReadUShort Reads a 16 bit unsigned short from the stream.
Reopen Reopens the stream.
Seek Seeks to a position in the stream.
Skip Reads data from the stream and throws it away.
Write Writes data to the stream from memory.
WriteBool Write a bool as an unsigned byte to the stream.
WriteByte Writes a byte to the stream.
WriteCString Writes a null terminated cstring to the stream.
WriteDouble Writes a 64 bit double to the stream.
WriteFloat Writes a 32 bit float to the stream,
WriteInt Writes a 32 bit int to the stream.
WriteLine Writes a line of text to the stream.
WriteLong Writes a 64 bit long to the stream.
WriteShort Writes a 16 bit short to the stream.
WriteSizedString Writes a size prefixed string to the stream.
WriteString Writes a string to the stream (NOT null terminated).
WriteUByte Write an unsigned byte to the stream.
WriteUInt Writes a 32 bit unsigned int to the stream.
WriteULong Writes a 64 bit unsigned long to the stream.
WriteUShort Writes a 16 bit unsigned short to the stream.
Functions
Open Opens a stream