Class BinaryWriterExtensions
Extension functions for writing Evergine data types with a BinaryWriter.
Inherited Members
Namespace: Evergine.Common
Assembly: Evergine.Common.dll
Syntax
public static class BinaryWriterExtensions
Methods
Write(BinaryWriter, BoundingBox)
Writes a Bounding Box into a BinaryWriter.
Declaration
public static void Write(this BinaryWriter writer, BoundingBox boundingBox)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The BinaryWriter object. |
BoundingBox | boundingBox | The Bounding Box. |
Write(BinaryWriter, Byte4)
Writes the byte4.
Declaration
public static void Write(this BinaryWriter writer, Byte4 b)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Byte4 | b | The byte. |
Write(BinaryWriter, Matrix4x4)
Writes the matrix.
Declaration
public static void Write(this BinaryWriter writer, Matrix4x4 m)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Matrix4x4 | m | The matrix. |
Write(BinaryWriter, Point)
Writes the Point.
Declaration
public static void Write(this BinaryWriter writer, Point v)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Point | v | The vector2. |
Write(BinaryWriter, Quaternion)
Writes the vector4.
Declaration
public static void Write(this BinaryWriter writer, Quaternion q)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Quaternion | q | The quaternion. |
Write(BinaryWriter, Rectangle)
Writes the rectangle.
Declaration
public static void Write(this BinaryWriter writer, Rectangle r)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Rectangle | r | The rectangle. |
Write(BinaryWriter, RectangleF)
Writes the rectangle.
Declaration
public static void Write(this BinaryWriter writer, RectangleF r)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
RectangleF | r | The rectangle. |
Write(BinaryWriter, Vector2)
Writes the vector2.
Declaration
public static void Write(this BinaryWriter writer, Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Vector2 | v | The vector2. |
Write(BinaryWriter, Vector3)
Writes the vector3.
Declaration
public static void Write(this BinaryWriter writer, Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Vector3 | v | The vector3. |
Write(BinaryWriter, Vector4)
Writes the vector4.
Declaration
public static void Write(this BinaryWriter writer, Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The writer. |
Vector4 | v | The vector4. |
Write(BinaryWriter, Dictionary<string, int>)
Writes a vertex attributes dictionary to the binary stream.
Declaration
public static void Write(this BinaryWriter writer, Dictionary<string, int> vertexAttributes)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The Binary Writer. |
Dictionary<string, int> | vertexAttributes | The vertex attribute dictionary. |
Write(BinaryWriter, BoundingBox?)
Writes a nullable Bounding Box into a Binary Writer.
Declaration
public static void Write(this BinaryWriter writer, BoundingBox? boundingBox)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The Binary Writer. |
BoundingBox? | boundingBox | The nullable Bounding Box to be written. |