UnityEngine.Networking.NetworkWriter.AsArray C# (CSharp) Method

AsArray() public method

Returns the internal array of bytes the writer is using. This is NOT a copy.

public AsArray ( ) : byte[]
return byte[]
        public byte[] AsArray()
        {
            return this.AsArraySegment().Array;
        }

Usage Example

Exemplo n.º 1
0
 private void PostInternalMessage(short msgType)
 {
   NetworkWriter networkWriter = new NetworkWriter();
   networkWriter.StartMessage(msgType);
   networkWriter.FinishMessage();
   this.PostInternalMessage(networkWriter.AsArray(), 0);
 }
All Usage Examples Of UnityEngine.Networking.NetworkWriter::AsArray