Class SystemTypesExtensions
Inheritance
System.Object
Inherited Members
Show
Syntax
public static class SystemTypesExtensions
Methods
WriteByteExtension(NetworkWriter, Byte)
Declaration
public static void WriteByteExtension(this NetworkWriter writer, byte value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Byte | value |
WriteSByteExtension(NetworkWriter, SByte)
Declaration
public static void WriteSByteExtension(this NetworkWriter writer, sbyte value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.SByte | value |
WriteChar(NetworkWriter, Char)
Declaration
public static void WriteChar(this NetworkWriter writer, char value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Char | value |
WriteBooleanExtension(NetworkWriter, Boolean)
Declaration
public static void WriteBooleanExtension(this NetworkWriter writer, bool value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Boolean | value |
WriteUInt16Extension(NetworkWriter, UInt16)
Declaration
public static void WriteUInt16Extension(this NetworkWriter writer, ushort value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.UInt16 | value |
WriteInt16Extension(NetworkWriter, Int16)
Declaration
public static void WriteInt16Extension(this NetworkWriter writer, short value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Int16 | value |
WriteSingleConverter(NetworkWriter, Single)
Declaration
public static void WriteSingleConverter(this NetworkWriter writer, float value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Single | value |
WriteDoubleConverter(NetworkWriter, Double)
Declaration
public static void WriteDoubleConverter(this NetworkWriter writer, double value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Double | value |
WriteDecimalConverter(NetworkWriter, Decimal)
Declaration
public static void WriteDecimalConverter(this NetworkWriter writer, decimal value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Decimal | value |
WriteGuid(NetworkWriter, Guid)
Declaration
public static void WriteGuid(this NetworkWriter writer, Guid value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Guid | value |
WriteNullable<T>(NetworkWriter, Nullable<T>)
Declaration
[WeaverSerializeCollection]
public static void WriteNullable<T>(this NetworkWriter writer, T? nullable)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Nullable<T> | nullable |
ReadByteExtension(NetworkReader)
Declaration
public static byte ReadByteExtension(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Byte |
ReadSByteExtension(NetworkReader)
Declaration
public static sbyte ReadSByteExtension(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.SByte |
ReadChar(NetworkReader)
Declaration
public static char ReadChar(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Char |
ReadBooleanExtension(NetworkReader)
Declaration
public static bool ReadBooleanExtension(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Boolean |
ReadInt16Extension(NetworkReader)
Declaration
public static short ReadInt16Extension(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Int16 |
ReadUInt16Extension(NetworkReader)
Declaration
public static ushort ReadUInt16Extension(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.UInt16 |
ReadSingleConverter(NetworkReader)
Declaration
public static float ReadSingleConverter(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Single |
ReadDoubleConverter(NetworkReader)
Declaration
public static double ReadDoubleConverter(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Double |
ReadDecimalConverter(NetworkReader)
Declaration
public static decimal ReadDecimalConverter(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Decimal |
ReadGuid(NetworkReader)
Declaration
public static Guid ReadGuid(this NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Guid |
ReadNullable<T>(NetworkReader)
Declaration
[WeaverSerializeCollection]
public static T? ReadNullable<T>(this NetworkReader reader)
where T : struct
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Nullable<T> |