Class NetworkWriter
Inheritance
NetworkWriter
Assembly: FNNLib.dll
Syntax
public class NetworkWriter
Fields
|
Improve this Doc
View Source
MaxStringLength
Maximum length of sent strings.
Declaration
public const int MaxStringLength = 32768
Field Value
Properties
|
Improve this Doc
View Source
length
Get the length of the internal data.
Declaration
public int length { get; }
Property Value
|
Improve this Doc
View Source
Position
The position of the writer.
Declaration
public int Position { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Reset()
Reset the writer for another use.
Declaration
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
|
Improve this Doc
View Source
ToArraySegment()
Declaration
public ArraySegment<byte> ToArraySegment()
Returns
|
Improve this Doc
View Source
WriteBool(Boolean)
Declaration
public void WriteBool(bool value)
Parameters
| Type |
Name |
Description |
| Boolean |
value |
|
|
Improve this Doc
View Source
WriteByte(Byte)
Declaration
public void WriteByte(byte value)
Parameters
| Type |
Name |
Description |
| Byte |
value |
|
|
Improve this Doc
View Source
WriteBytes(Byte[], Int32, Int32)
Declaration
public void WriteBytes(byte[] values, int offset, int count)
Parameters
|
Improve this Doc
View Source
WriteBytesWithSize(Byte[], Int32, Int32)
Declaration
public void WriteBytesWithSize(byte[] values, int offset, int count)
Parameters
|
Improve this Doc
View Source
WriteChar(Char)
Declaration
public void WriteChar(char value)
Parameters
| Type |
Name |
Description |
| Char |
value |
|
|
Improve this Doc
View Source
WriteColor(Color)
Declaration
public void WriteColor(Color value)
Parameters
| Type |
Name |
Description |
| Color |
value |
|
|
Improve this Doc
View Source
WriteColor32(Color32)
Declaration
public void WriteColor32(Color32 value)
Parameters
| Type |
Name |
Description |
| Color32 |
value |
|
|
Improve this Doc
View Source
WriteDecimal(Decimal)
Declaration
public void WriteDecimal(decimal value)
Parameters
| Type |
Name |
Description |
| Decimal |
value |
|
|
Improve this Doc
View Source
WriteDouble(Double)
Declaration
public void WriteDouble(double value)
Parameters
| Type |
Name |
Description |
| Double |
value |
|
|
Improve this Doc
View Source
WriteInt16(Int16)
Declaration
public void WriteInt16(short value)
Parameters
| Type |
Name |
Description |
| Int16 |
value |
|
|
Improve this Doc
View Source
WriteInt32(Int32)
Declaration
public void WriteInt32(int value)
Parameters
| Type |
Name |
Description |
| Int32 |
value |
|
|
Improve this Doc
View Source
WriteInt64(Int64)
Declaration
public void WriteInt64(long value)
Parameters
| Type |
Name |
Description |
| Int64 |
value |
|
|
Improve this Doc
View Source
WritePackedInt16(Int16)
Declaration
public void WritePackedInt16(short value)
Parameters
| Type |
Name |
Description |
| Int16 |
value |
|
|
Improve this Doc
View Source
WritePackedInt32(Int32)
Declaration
public void WritePackedInt32(int value)
Parameters
| Type |
Name |
Description |
| Int32 |
value |
|
|
Improve this Doc
View Source
WritePackedInt64(Int64)
Declaration
public void WritePackedInt64(long value)
Parameters
| Type |
Name |
Description |
| Int64 |
value |
|
|
Improve this Doc
View Source
WritePackedObject(Object)
Declaration
public void WritePackedObject(object value)
Parameters
| Type |
Name |
Description |
| Object |
value |
|
|
Improve this Doc
View Source
WritePackedObjects(Object[])
Declaration
public void WritePackedObjects(object[] values)
Parameters
| Type |
Name |
Description |
| Object[] |
values |
|
|
Improve this Doc
View Source
WritePackedUInt16(UInt16)
Declaration
public void WritePackedUInt16(ushort value)
Parameters
| Type |
Name |
Description |
| UInt16 |
value |
|
|
Improve this Doc
View Source
WritePackedUInt32(UInt32)
Declaration
public void WritePackedUInt32(uint value)
Parameters
| Type |
Name |
Description |
| UInt32 |
value |
|
|
Improve this Doc
View Source
WritePackedUInt64(UInt64)
Declaration
public void WritePackedUInt64(ulong value)
Parameters
| Type |
Name |
Description |
| UInt64 |
value |
|
|
Improve this Doc
View Source
WriteQuaternion(Quaternion)
Declaration
public void WriteQuaternion(Quaternion value)
Parameters
| Type |
Name |
Description |
| Quaternion |
value |
|
|
Improve this Doc
View Source
WriteRay(Ray)
Declaration
public void WriteRay(Ray value)
Parameters
| Type |
Name |
Description |
| Ray |
value |
|
|
Improve this Doc
View Source
WriteSByte(SByte)
Declaration
public void WriteSByte(sbyte value)
Parameters
| Type |
Name |
Description |
| SByte |
value |
|
|
Improve this Doc
View Source
WriteSegmentWithSize(ArraySegment<Byte>)
Declaration
public void WriteSegmentWithSize(ArraySegment<byte> segment)
Parameters
|
Improve this Doc
View Source
WriteSingle(Single)
Declaration
public void WriteSingle(float value)
Parameters
| Type |
Name |
Description |
| Single |
value |
|
|
Improve this Doc
View Source
WriteString(String)
Declaration
public void WriteString(string value)
Parameters
| Type |
Name |
Description |
| String |
value |
|
|
Improve this Doc
View Source
WriteUInt16(UInt16)
Declaration
public void WriteUInt16(ushort value)
Parameters
| Type |
Name |
Description |
| UInt16 |
value |
|
|
Improve this Doc
View Source
WriteUInt32(UInt32)
Declaration
public void WriteUInt32(uint value)
Parameters
| Type |
Name |
Description |
| UInt32 |
value |
|
|
Improve this Doc
View Source
WriteUInt64(UInt64)
Declaration
public void WriteUInt64(ulong value)
Parameters
| Type |
Name |
Description |
| UInt64 |
value |
|
|
Improve this Doc
View Source
WriteVector2(Vector2)
Declaration
public void WriteVector2(Vector2 value)
Parameters
| Type |
Name |
Description |
| Vector2 |
value |
|
|
Improve this Doc
View Source
WriteVector3(Vector3)
Declaration
public void WriteVector3(Vector3 value)
Parameters
| Type |
Name |
Description |
| Vector3 |
value |
|
|
Improve this Doc
View Source
WriteVector4(Vector4)
Declaration
public void WriteVector4(Vector4 value)
Parameters
| Type |
Name |
Description |
| Vector4 |
value |
|