internal SerializedBuffer[] ReadSerializedBuffers()
        {
            uint length = _buffer.ReadVariableUInt32();
            var  values = new SerializedBuffer[length];

            for (int i = 0; i < length; ++i)
            {
                values[i] = ReadSerializedBuffer();
            }

            return(values);
        }
 internal void WriteSerializedBuffer(SerializedBuffer value)
 {
     value.Write(_buffer);
 }
 internal static void _Write(NetBuffer buffer, NetworkViewID viewID, NetBuffer data)
 {
     viewID._Write(buffer);
     SerializedBuffer._Write(buffer, data);
 }
 internal static void _Read(NetBuffer buffer, out NetworkViewID viewID, out NetBuffer data)
 {
     viewID = new NetworkViewID(buffer);
     data   = SerializedBuffer._Read(buffer);
 }
 public StateSync(NetBuffer buffer)
 {
     viewID = new NetworkViewID(buffer);
     data   = new SerializedBuffer(buffer);
 }
 public StateSync(NetworkViewID viewID, SerializedBuffer data)
 {
     this.viewID = viewID;
     this.data   = data;
 }