RageLib.Data.DataWriter - indilo53/gta-toolkit GitHub Wiki
Represents a data writer.
namespace: RageLib.Data
Inheritance Hierarchy
Syntax
public class DataWriter
Constructors
:white_large_square: |
prototype |
description |
method |
DataWriter (Stream stream, Endianess endianess=Endianess.LittleEndian) |
Initializes a new data writer for the specified stream. |
Properties
:white_large_square: |
name |
description |
property |
Endianess |
Gets or sets the endianess of the underlying stream. |
property |
Length |
Gets the length of the underlying stream. |
property |
Position |
Gets or sets the position within the underlying stream. |
Methods
:white_large_square: |
prototype |
description |
method |
void Write(byte value) |
Writes a byte. |
method |
void Write(byte[] value) |
Writes a sequence of bytes. |
method |
void Write(short value) |
Writes a signed 16-bit value. |
method |
void Write(int value) |
Writes a signed 32-bit value. |
method |
void Write(long value) |
Writes a signed 64-bit value. |
method |
void Write(ushort value) |
Writes an unsigned 16-bit value. |
method |
void Write(uint value) |
Writes an unsigned 32-bit value. |
method |
void Write(ulong value) |
Writes an unsigned 64-bit value. |
method |
void Write(float value) |
Writes a single precision floating point value. |
method |
void Write(double value) |
Writes a double precision floating point value. |
method |
void Write(string value) |
Writes a string. |
Events
:white_large_square: |
name |
description |