Functions for opening streams, as well as functions for reading and writing data. More...
Public Member Functions | |
| stream | FromResource (string filename) |
| Opens a stream from a resource. | |
| stream | FromFile (string filename, FileStream mode) |
| Opens a stream from a file. | |
| void | Close (stream stream) |
| Closes a stream. | |
| void | Seek (stream stream, integer offset) |
| Seeks a stream, relative to the start of the stream. | |
| void | SeekEnd (stream stream, integer offset) |
| Seeks a stream, relative to the end. | |
| void | Skip (stream stream, integer offset) |
| Seeks a stream, relative to the current position. | |
| integer | Position (stream stream) |
| Returns the current position of the stream. | |
| integer | Length (stream stream) |
| Returns the length of the stream. | |
| integer | ReadByte (stream stream) |
| Reads an unsigned 8-bit number from the stream. | |
| integer | ReadUInt16 (stream stream) |
| Reads an unsigned 16-bit number from the stream. | |
| integer | ReadUInt16BE (stream stream) |
| Reads an unsigned big-endian 16-bit number from the stream. | |
| integer | ReadUInt32 (stream stream) |
| Reads an unsigned 32-bit number from the stream. | |
| integer | ReadUInt32BE (stream stream) |
| Reads an unsigned big-endian 32-bit number from the stream. | |
| integer | ReadUInt64 (stream stream) |
| Reads an unsigned 64-bit number from the stream. | |
| integer | ReadInt16 (stream stream) |
| Reads a signed 16-bit number from the stream. | |
| integer | ReadInt16BE (stream stream) |
| Reads a signed big-endian 16-bit number from the stream. | |
| integer | ReadInt32 (stream stream) |
| Reads a signed 32-bit number from the stream. | |
| integer | ReadInt32BE (stream stream) |
| Reads a signed big-endian 32-bit number from the stream. | |
| integer | ReadInt64 (stream stream) |
| Reads a signed 64-bit number from the stream. | |
| decimal | ReadFloat (stream stream) |
| Reads a floating point number from the stream. | |
| string | ReadString (stream stream) |
| Reads a null-terminated string from the stream. | |
| string | ReadLine (stream stream) |
| Reads a line from the stream. | |
| void | WriteByte (stream stream, integer value) |
| Writes an unsigned 8-bit number to the stream. | |
| void | WriteUInt16 (stream stream, integer value) |
| Writes an unsigned 16-bit number to the stream. | |
| void | WriteUInt16BE (stream stream, integer value) |
| Writes an unsigned big-endian 16-bit number to the stream. | |
| void | WriteUInt32 (stream stream, integer value) |
| Writes an unsigned 32-bit number to the stream. | |
| void | WriteUInt32BE (stream stream, integer value) |
| Writes an unsigned big-endian 32-bit number to the stream. | |
| void | WriteUInt64 (stream stream, integer value) |
| Writes an unsigned 64-bit number to the stream. | |
| void | WriteInt16 (stream stream, integer value) |
| Writes a signed 16-bit number to the stream. | |
| void | WriteInt16BE (stream stream, integer value) |
| Writes a signed big-endian 16-bit number to the stream. | |
| void | WriteInt32 (stream stream, integer value) |
| Writes a signed 32-bit number to the stream. | |
| void | WriteInt32BE (stream stream, integer value) |
| Writes a signed big-endian 32-bit number to the stream. | |
| void | WriteInt64 (stream stream, integer value) |
| Writes a signed 64-bit number to the stream. | |
| void | WriteFloat (stream stream, decimal value) |
| Writes a floating point number to the stream. | |
| void | WriteString (stream stream, string string) |
| Writes a null-terminated string to the stream. | |
Functions for opening streams, as well as functions for reading and writing data.
| void Stream.Close | ( | stream | stream | ) |
Closes a stream.
| stream | The stream to close. |
| stream Stream.FromFile | ( | string | filename, |
| FileStream | mode ) |
Opens a stream from a file.
| filename | Path of the file. |
| mode | The file access mode. |
| stream Stream.FromResource | ( | string | filename | ) |
Opens a stream from a resource.
| filename | Filename of the resource. |
| integer Stream.Length | ( | stream | stream | ) |
Returns the length of the stream.
| stream | The stream. |
| integer Stream.Position | ( | stream | stream | ) |
Returns the current position of the stream.
| stream | The stream. |
| integer Stream.ReadByte | ( | stream | stream | ) |
Reads an unsigned 8-bit number from the stream.
| stream | The stream. |
| decimal Stream.ReadFloat | ( | stream | stream | ) |
Reads a floating point number from the stream.
| stream | The stream. |
| integer Stream.ReadInt16 | ( | stream | stream | ) |
Reads a signed 16-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadInt16BE | ( | stream | stream | ) |
Reads a signed big-endian 16-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadInt32 | ( | stream | stream | ) |
Reads a signed 32-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadInt32BE | ( | stream | stream | ) |
Reads a signed big-endian 32-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadInt64 | ( | stream | stream | ) |
Reads a signed 64-bit number from the stream.
| stream | The stream. |
| string Stream.ReadLine | ( | stream | stream | ) |
Reads a line from the stream.
| stream | The stream. |
| string Stream.ReadString | ( | stream | stream | ) |
Reads a null-terminated string from the stream.
| stream | The stream. |
| integer Stream.ReadUInt16 | ( | stream | stream | ) |
Reads an unsigned 16-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadUInt16BE | ( | stream | stream | ) |
Reads an unsigned big-endian 16-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadUInt32 | ( | stream | stream | ) |
Reads an unsigned 32-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadUInt32BE | ( | stream | stream | ) |
Reads an unsigned big-endian 32-bit number from the stream.
| stream | The stream. |
| integer Stream.ReadUInt64 | ( | stream | stream | ) |
Reads an unsigned 64-bit number from the stream.
| stream | The stream. |
| void Stream.Seek | ( | stream | stream, |
| integer | offset ) |
Seeks a stream, relative to the start of the stream.
| stream | The stream to seek. |
| offset | Offset to seek to. |
| void Stream.SeekEnd | ( | stream | stream, |
| integer | offset ) |
Seeks a stream, relative to the end.
| stream | The stream to seek. |
| offset | Offset to seek to. |
| void Stream.Skip | ( | stream | stream, |
| integer | offset ) |
Seeks a stream, relative to the current position.
| stream | The stream to skip. |
| offset | How many bytes to skip. |
| void Stream.WriteByte | ( | stream | stream, |
| integer | value ) |
Writes an unsigned 8-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteFloat | ( | stream | stream, |
| decimal | value ) |
Writes a floating point number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteInt16 | ( | stream | stream, |
| integer | value ) |
Writes a signed 16-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteInt16BE | ( | stream | stream, |
| integer | value ) |
Writes a signed big-endian 16-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteInt32 | ( | stream | stream, |
| integer | value ) |
Writes a signed 32-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteInt32BE | ( | stream | stream, |
| integer | value ) |
Writes a signed big-endian 32-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteInt64 | ( | stream | stream, |
| integer | value ) |
Writes a signed 64-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteString | ( | stream | stream, |
| string | string ) |
Writes a null-terminated string to the stream.
| stream | The stream. |
| string | The string to write. |
| void Stream.WriteUInt16 | ( | stream | stream, |
| integer | value ) |
Writes an unsigned 16-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteUInt16BE | ( | stream | stream, |
| integer | value ) |
Writes an unsigned big-endian 16-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteUInt32 | ( | stream | stream, |
| integer | value ) |
Writes an unsigned 32-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteUInt32BE | ( | stream | stream, |
| integer | value ) |
Writes an unsigned big-endian 32-bit number to the stream.
| stream | The stream. |
| value | The value to write. |
| void Stream.WriteUInt64 | ( | stream | stream, |
| integer | value ) |
Writes an unsigned 64-bit number to the stream.
| stream | The stream. |
| value | The value to write. |