Skip to content

RageLib.Data.DataWriter

Jérémie N'gadi edited this page Aug 5, 2018 · 3 revisions

Represents a data writer.

namespace: RageLib.Data

Inheritance Hierarchy

Syntax

public class DataWriter

Constructors

prototype description
method DataWriter (Stream stream, Endianess endianess=Endianess.LittleEndian) Initializes a new data writer for the specified stream.

Properties

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

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

name description
Clone this wiki locally