Class Writer
Inheritance
System.Object
Writer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: FishNet.Runtime.dll
Syntax
Fields
Length
Number of bytes writen to the buffer.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
NetworkManager
NetworkManager associated with this writer. May be null.
Declaration
public NetworkManager NetworkManager
Field Value
Position
Declaration
Field Value
Type |
Description |
System.Int32 |
|
UNSET_COLLECTION_SIZE_VALUE
Value used when a collection is unset, as in null.
Declaration
public const int UNSET_COLLECTION_SIZE_VALUE = -1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Capacity
Declaration
public int Capacity { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
EnsureBufferCapacity(Int32)
Ensures the buffer Capacity is of minimum count.
Declaration
public void EnsureBufferCapacity(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
EnsureBufferLength(Int32)
Ensure a number of bytes to be available in the buffer from current position.
Declaration
public void EnsureBufferLength(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
FastInsertUInt8Unpacked(Byte, Int32)
Inserts value at index within the buffer.
This method does not perform error checks nor increases Length, Position.
Declaration
[Obsolete("Use InsertUInt8Unpacked.")]
public void FastInsertUInt8Unpacked(byte value, int index)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
System.Int32 |
index |
|
GetArraySegment()
Returns the used portion of the buffer as an ArraySegment.
Declaration
public ArraySegment<byte> GetArraySegment()
Returns
Type |
Description |
System.ArraySegment<System.Byte> |
|
GetBuffer()
Returns the buffer. The returned value will be the full buffer, even if not all of it is used.
Declaration
public byte[] GetBuffer()
Returns
Type |
Description |
System.Byte[] |
|
InsertInt32Unpacked(Int32, Int32)
Inserts value at index within the buffer.
This method does not perform error checks nor increases Length, Position.
Declaration
public void InsertInt32Unpacked(int value, int index)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
System.Int32 |
index |
|
InsertUInt16Unpacked(UInt16, Int32)
Inserts value at index within the buffer.
This method does not perform error checks nor increases Length, Position.
Declaration
public void InsertUInt16Unpacked(ushort value, int index)
Parameters
Type |
Name |
Description |
System.UInt16 |
value |
|
System.Int32 |
index |
|
InsertUInt32Unpacked(UInt32, Int32)
Inserts value at index within the buffer.
This method does not perform error checks nor increases Length, Position.
Declaration
public void InsertUInt32Unpacked(uint value, int index)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
System.Int32 |
index |
|
InsertUInt8Unpacked(Byte, Int32)
Inserts value at index within the buffer.
This method does not perform error checks nor increases Length, Position.
Declaration
public void InsertUInt8Unpacked(byte value, int index)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
System.Int32 |
index |
|
Reserve(Int32)
Reserves a number of bytes from current position.
Declaration
[Obsolete("Use Skip.")]
public void Reserve(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Reset(NetworkManager)
Resets the writer as though it was unused. Does not reset buffers.
Declaration
public void Reset(NetworkManager manager = null)
Parameters
Skip(Int32)
Skips a number of bytes from current position.
Declaration
public void Skip(int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
ToString()
Outputs writer to string.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
ToString(Int32, Int32)
Outputs writer to string starting at an index.
Declaration
public string ToString(int offset, int length)
Parameters
Type |
Name |
Description |
System.Int32 |
offset |
|
System.Int32 |
length |
|
Returns
Type |
Description |
System.String |
|
Write<T>(T)
Writes any supported type using packing.
Declaration
public void Write<T>(T value)
Parameters
Type |
Name |
Description |
T |
value |
|
Type Parameters
WriteArray<T>(T[])
Declaration
public void WriteArray<T>(T[] value)
Parameters
Type |
Name |
Description |
T[] |
value |
Collection to write.
|
Type Parameters
WriteArray<T>(T[], Int32)
Declaration
public void WriteArray<T>(T[] value, int offset)
Parameters
Type |
Name |
Description |
T[] |
value |
Collection to write.
|
System.Int32 |
offset |
Offset to begin at.
|
Type Parameters
WriteArray<T>(T[], Int32, Int32)
Declaration
public void WriteArray<T>(T[] value, int offset, int count)
Parameters
Type |
Name |
Description |
T[] |
value |
Collection to write.
|
System.Int32 |
offset |
Offset to begin at.
|
System.Int32 |
count |
Entries to write.
|
Type Parameters
WriteArraySegment(ArraySegment<Byte>)
Writes an ArraySegment without size.
Declaration
public void WriteArraySegment(ArraySegment<byte> value)
Parameters
Type |
Name |
Description |
System.ArraySegment<System.Byte> |
value |
|
WriteArraySegmentAndSize(ArraySegment<Byte>)
Writes a byte ArraySegment and it's size.
Declaration
public void WriteArraySegmentAndSize(ArraySegment<byte> value)
Parameters
Type |
Name |
Description |
System.ArraySegment<System.Byte> |
value |
|
WriteBoolean(Boolean)
Declaration
public void WriteBoolean(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
WriteByte(Byte)
Declaration
[Obsolete("Use WriteUInt8Unpacked.")]
public void WriteByte(byte value)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
WriteBytes(Byte[], Int32, Int32)
Declaration
[Obsolete("Use WriteUInt8Array.")]
public void WriteBytes(byte[] value, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
WriteBytesAndSize(Byte[])
Declaration
[Obsolete("Use WriteUInt8ArrayAndSize.")]
public void WriteBytesAndSize(byte[] value)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
WriteBytesAndSize(Byte[], Int32, Int32)
Declaration
[Obsolete("Use WriteUInt8ArrayAndSize.")]
public void WriteBytesAndSize(byte[] value, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
WriteChannel(Channel)
Writes a transport channel.
Declaration
public void WriteChannel(Channel channel)
Parameters
Type |
Name |
Description |
Channel |
channel |
|
WriteChar(Char)
Declaration
public void WriteChar(char value)
Parameters
Type |
Name |
Description |
System.Char |
value |
|
WriteColor(Color)
Declaration
public void WriteColor(Color value)
Parameters
Type |
Name |
Description |
UnityEngine.Color |
value |
|
WriteColor32(Color32)
Declaration
public void WriteColor32(Color32 value)
Parameters
Type |
Name |
Description |
UnityEngine.Color32 |
value |
|
WriteColorUnpacked(Color)
Declaration
public void WriteColorUnpacked(Color value)
Parameters
Type |
Name |
Description |
UnityEngine.Color |
value |
|
WriteDateTime(DateTime)
Declaration
public void WriteDateTime(DateTime dt)
Parameters
Type |
Name |
Description |
System.DateTime |
dt |
|
WriteDecimal(Decimal)
Declaration
public void WriteDecimal(decimal value)
Parameters
Type |
Name |
Description |
System.Decimal |
value |
|
WriteDecimalUnpacked(Decimal)
Declaration
public void WriteDecimalUnpacked(decimal value)
Parameters
Type |
Name |
Description |
System.Decimal |
value |
|
WriteDelta<T>(T, T, DeltaSerializerOption)
Declaration
public bool WriteDelta<T>(T prev, T next, DeltaSerializerOption option)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
WriteDeltaBoolean(Boolean, Boolean)
Declaration
public bool WriteDeltaBoolean(bool valueA, bool valueB)
Parameters
Type |
Name |
Description |
System.Boolean |
valueA |
|
System.Boolean |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaInt16(Int16, Int16)
Declaration
public bool WriteDeltaInt16(short valueA, short valueB)
Parameters
Type |
Name |
Description |
System.Int16 |
valueA |
|
System.Int16 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaInt32(Int32, Int32)
Declaration
public bool WriteDeltaInt32(int valueA, int valueB)
Parameters
Type |
Name |
Description |
System.Int32 |
valueA |
|
System.Int32 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaInt64(Int64, Int64)
Declaration
public bool WriteDeltaInt64(long valueA, long valueB)
Parameters
Type |
Name |
Description |
System.Int64 |
valueA |
|
System.Int64 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaInt8(SByte, SByte)
Declaration
public bool WriteDeltaInt8(sbyte valueA, sbyte valueB)
Parameters
Type |
Name |
Description |
System.SByte |
valueA |
|
System.SByte |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaNetworkBehaviour(NetworkBehaviour, NetworkBehaviour)
Declaration
public bool WriteDeltaNetworkBehaviour(NetworkBehaviour valueA, NetworkBehaviour valueB)
Parameters
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaQuaternion(Quaternion, Quaternion)
Declaration
public bool WriteDeltaQuaternion(Quaternion valueA, Quaternion valueB)
Parameters
Type |
Name |
Description |
UnityEngine.Quaternion |
valueA |
|
UnityEngine.Quaternion |
valueB |
|
Returns
Type |
Description |
System.Boolean |
|
WriteDeltaUInt16(UInt16, UInt16)
Declaration
public bool WriteDeltaUInt16(ushort valueA, ushort valueB)
Parameters
Type |
Name |
Description |
System.UInt16 |
valueA |
|
System.UInt16 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaUInt32(UInt32, UInt32)
Declaration
public bool WriteDeltaUInt32(uint valueA, uint valueB)
Parameters
Type |
Name |
Description |
System.UInt32 |
valueA |
|
System.UInt32 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaUInt64(UInt64, UInt64)
Declaration
public bool WriteDeltaUInt64(ulong valueA, ulong valueB)
Parameters
Type |
Name |
Description |
System.UInt64 |
valueA |
|
System.UInt64 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaUInt8(Byte, Byte)
Declaration
public bool WriteDeltaUInt8(byte valueA, byte valueB)
Parameters
Type |
Name |
Description |
System.Byte |
valueA |
|
System.Byte |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteDeltaVector2(Vector2, Vector2)
Declaration
public bool WriteDeltaVector2(Vector2 valueA, Vector2 valueB)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
valueA |
|
UnityEngine.Vector2 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
|
WriteDeltaVector3(Vector3, Vector3)
Declaration
public bool WriteDeltaVector3(Vector3 valueA, Vector3 valueB)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
valueA |
|
UnityEngine.Vector3 |
valueB |
|
Returns
Type |
Description |
System.Boolean |
|
WriteDictionary<TKey, TValue>(Dictionary<TKey, TValue>)
Declaration
public void WriteDictionary<TKey, TValue>(Dictionary<TKey, TValue> dict)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<TKey, TValue> |
dict |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
WriteDouble(Double)
Declaration
public void WriteDouble(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
WriteDoubleUnpacked(Double)
Declaration
public void WriteDoubleUnpacked(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
WriteGameObject(GameObject)
Writes a GameObject. GameObject must be spawned over the network already or be a prefab with a NetworkObject attached.
Declaration
public void WriteGameObject(GameObject go)
Parameters
Type |
Name |
Description |
UnityEngine.GameObject |
go |
|
WriteGuidAllocated(Guid)
Declaration
public void WriteGuidAllocated(Guid value)
Parameters
Type |
Name |
Description |
System.Guid |
value |
|
WriteInt16(Int16)
Declaration
public void WriteInt16(short value)
Parameters
Type |
Name |
Description |
System.Int16 |
value |
|
WriteInt16Unpacked(Int16)
Declaration
public void WriteInt16Unpacked(short value)
Parameters
Type |
Name |
Description |
System.Int16 |
value |
|
WriteInt32(Int32)
Declaration
public void WriteInt32(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
WriteInt32Unpacked(Int32)
Declaration
public void WriteInt32Unpacked(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
WriteInt64(Int64)
Declaration
public void WriteInt64(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
WriteInt64Unpacked(Int64)
Declaration
public void WriteInt64Unpacked(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
WriteInt8Unpacked(SByte)
Declaration
public void WriteInt8Unpacked(sbyte value)
Parameters
Type |
Name |
Description |
System.SByte |
value |
|
WriteLayerMask(LayerMask)
Declaration
public void WriteLayerMask(LayerMask value)
Parameters
Type |
Name |
Description |
UnityEngine.LayerMask |
value |
|
WriteList<T>(List<T>)
Declaration
public void WriteList<T>(List<T> value)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T> |
value |
Collection to write.
|
Type Parameters
WriteList<T>(List<T>, Int32)
Declaration
public void WriteList<T>(List<T> value, int offset)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T> |
value |
Collection to write.
|
System.Int32 |
offset |
Offset to begin at.
|
Type Parameters
WriteList<T>(List<T>, Int32, Int32)
Declaration
public void WriteList<T>(List<T> value, int offset, int count)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<T> |
value |
Collection to write.
|
System.Int32 |
offset |
Offset to begin at.
|
System.Int32 |
count |
Entries to write.
|
Type Parameters
WriteMatrix4x4(Matrix4x4)
Declaration
public void WriteMatrix4x4(Matrix4x4 value)
Parameters
Type |
Name |
Description |
UnityEngine.Matrix4x4 |
value |
|
WriteMatrix4x4Unpacked(Matrix4x4)
Declaration
public void WriteMatrix4x4Unpacked(Matrix4x4 value)
Parameters
Type |
Name |
Description |
UnityEngine.Matrix4x4 |
value |
|
WriteNetworkBehaviour(NetworkBehaviour)
Writes a NetworkBehaviour.
Declaration
public void WriteNetworkBehaviour(NetworkBehaviour nb)
Parameters
WriteNetworkBehaviourId(NetworkBehaviour)
Writes a NetworkBehaviourId.
Declaration
public void WriteNetworkBehaviourId(NetworkBehaviour nb)
Parameters
WriteNetworkConnection(NetworkConnection)
Writes a NetworkConnection.
Declaration
public void WriteNetworkConnection(NetworkConnection connection)
Parameters
WriteNetworkConnectionId(Int32)
Writes a short for a connectionId.
Declaration
public void WriteNetworkConnectionId(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
WriteNetworkObject(NetworkObject)
Writes a NetworkObject while optionally including the initialization order.
Declaration
public void WriteNetworkObject(NetworkObject nob)
Parameters
WriteNetworkObjectId(NetworkObject)
Writes a NetworkObject.ObjectId.
Declaration
public void WriteNetworkObjectId(NetworkObject nob)
Parameters
WriteNetworkObjectId(Int32)
Declaration
public void WriteNetworkObjectId(int objectId)
Parameters
Type |
Name |
Description |
System.Int32 |
objectId |
|
WritePlane(Plane)
Declaration
public void WritePlane(Plane value)
Parameters
Type |
Name |
Description |
UnityEngine.Plane |
value |
|
WritePlaneUnpacked(Plane)
Declaration
public void WritePlaneUnpacked(Plane value)
Parameters
Type |
Name |
Description |
UnityEngine.Plane |
value |
|
WriteQuaternion32(Quaternion)
Declaration
public void WriteQuaternion32(Quaternion value)
Parameters
Type |
Name |
Description |
UnityEngine.Quaternion |
value |
|
WriteQuaternion64(Quaternion)
Declaration
public void WriteQuaternion64(Quaternion value)
Parameters
Type |
Name |
Description |
UnityEngine.Quaternion |
value |
|
WriteQuaternionUnpacked(Quaternion)
Declaration
public void WriteQuaternionUnpacked(Quaternion value)
Parameters
Type |
Name |
Description |
UnityEngine.Quaternion |
value |
|
WriteRay(Ray)
Declaration
public void WriteRay(Ray value)
Parameters
Type |
Name |
Description |
UnityEngine.Ray |
value |
|
WriteRay2D(Ray2D)
Declaration
public void WriteRay2D(Ray2D value)
Parameters
Type |
Name |
Description |
UnityEngine.Ray2D |
value |
|
WriteRay2DUnpacked(Ray2D)
Declaration
public void WriteRay2DUnpacked(Ray2D value)
Parameters
Type |
Name |
Description |
UnityEngine.Ray2D |
value |
|
WriteRayUnpacked(Ray)
Declaration
public void WriteRayUnpacked(Ray value)
Parameters
Type |
Name |
Description |
UnityEngine.Ray |
value |
|
WriteRect(Rect)
Declaration
public void WriteRect(Rect value)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
value |
|
WriteRectUnpacked(Rect)
Declaration
public void WriteRectUnpacked(Rect value)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
value |
|
WriteSByte(SByte)
Declaration
[Obsolete("Use WriteInt8Unpacked.")]
public void WriteSByte(sbyte value)
Parameters
Type |
Name |
Description |
System.SByte |
value |
|
WriteSignedPackedWhole(Int64)
Writes a packed whole number.
Declaration
public void WriteSignedPackedWhole(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
WriteSingle(Single)
Declaration
public void WriteSingle(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
WriteSingleUnpacked(Single)
Declaration
public void WriteSingleUnpacked(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
WriteString(String)
Declaration
public void WriteString(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
WriteSubStream(SubStream)
Declaration
public void WriteSubStream(SubStream value)
Parameters
Type |
Name |
Description |
SubStream |
value |
Substream
|
WriteTickUnpacked(UInt32)
Writes a tick without packing.
Declaration
public void WriteTickUnpacked(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
Writes a Transform. Transform must be spawned over the network already or be a prefab with a NetworkObject attached.
Declaration
public void WriteTransform(Transform t)
Parameters
Type |
Name |
Description |
UnityEngine.Transform |
t |
|
WriteUDeltaDecimal(Decimal, Decimal)
Declaration
public bool WriteUDeltaDecimal(decimal valueA, decimal valueB)
Parameters
Type |
Name |
Description |
System.Decimal |
valueA |
|
System.Decimal |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteUDeltaDouble(Double, Double)
Declaration
public bool WriteUDeltaDouble(double valueA, double valueB)
Parameters
Type |
Name |
Description |
System.Double |
valueA |
|
System.Double |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteUDeltaSingle(Single, Single)
Declaration
public bool WriteUDeltaSingle(float valueA, float valueB)
Parameters
Type |
Name |
Description |
System.Single |
valueA |
|
System.Single |
valueB |
|
Returns
Type |
Description |
System.Boolean |
True if written.
|
WriteUInt16(UInt16)
Declaration
public void WriteUInt16(ushort value)
Parameters
Type |
Name |
Description |
System.UInt16 |
value |
|
WriteUInt16Unpacked(UInt16)
Writes a uint16 unpacked.
Declaration
public void WriteUInt16Unpacked(ushort value)
Parameters
Type |
Name |
Description |
System.UInt16 |
value |
|
WriteUInt32(UInt32)
Declaration
public void WriteUInt32(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
WriteUInt32Unpacked(UInt32)
Declaration
public void WriteUInt32Unpacked(uint value)
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
WriteUInt64(UInt64)
Declaration
public void WriteUInt64(ulong value)
Parameters
Type |
Name |
Description |
System.UInt64 |
value |
|
WriteUInt64Unpacked(UInt64)
Declaration
public void WriteUInt64Unpacked(ulong value)
Parameters
Type |
Name |
Description |
System.UInt64 |
value |
|
WriteUInt8Array(Byte[], Int32, Int32)
Declaration
public void WriteUInt8Array(byte[] value, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
WriteUInt8ArrayAndSize(Byte[])
Writes all bytes in value and length of bytes.
Declaration
public void WriteUInt8ArrayAndSize(byte[] value)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
WriteUInt8ArrayAndSize(Byte[], Int32, Int32)
Writes bytes and length of bytes.
Declaration
public void WriteUInt8ArrayAndSize(byte[] value, int offset, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
value |
|
System.Int32 |
offset |
|
System.Int32 |
count |
|
WriteUInt8Unpacked(Byte)
Declaration
public void WriteUInt8Unpacked(byte value)
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
WriteUnsignedPackedWhole(UInt64)
Writes a packed whole number.
Declaration
public void WriteUnsignedPackedWhole(ulong value)
Parameters
Type |
Name |
Description |
System.UInt64 |
value |
|
WriteVector2(Vector2)
Declaration
public void WriteVector2(Vector2 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
value |
|
WriteVector2Int(Vector2Int)
Declaration
public void WriteVector2Int(Vector2Int value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2Int |
value |
|
WriteVector2IntUnpacked(Vector2Int)
Declaration
public void WriteVector2IntUnpacked(Vector2Int value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2Int |
value |
|
WriteVector2Unpacked(Vector2)
Declaration
public void WriteVector2Unpacked(Vector2 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector2 |
value |
|
WriteVector3(Vector3)
Declaration
public void WriteVector3(Vector3 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
value |
|
WriteVector3Int(Vector3Int)
Declaration
public void WriteVector3Int(Vector3Int value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3Int |
value |
|
WriteVector3IntUnpacked(Vector3Int)
Declaration
public void WriteVector3IntUnpacked(Vector3Int value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3Int |
value |
|
WriteVector3Unpacked(Vector3)
Declaration
public void WriteVector3Unpacked(Vector3 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
value |
|
WriteVector4(Vector4)
Declaration
public void WriteVector4(Vector4 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector4 |
value |
|
WriteVector4Unpacked(Vector4)
Declaration
public void WriteVector4Unpacked(Vector4 value)
Parameters
Type |
Name |
Description |
UnityEngine.Vector4 |
value |
|
ZigZagEncode(UInt64)
ZigZag encode an integer. Move the sign bit to the right.
Declaration
public ulong ZigZagEncode(ulong value)
Parameters
Type |
Name |
Description |
System.UInt64 |
value |
|
Returns
Type |
Description |
System.UInt64 |
|
Extension Methods