Exemplo n.º 1
0
        internal void BackTo(ushort position)
        {
            if (m_HeaderPosition > position)
                throw new ArgumentException($"NetworkWriter:SeekPosition is not allowed to seek to position:{position} beacuase headerPosition:{m_HeaderPosition}");

            m_Buffer.BackTo(position);
        }
Exemplo n.º 2
0
        internal void BackTo(ushort position)
        {
            if (m_HeaderPosition > position)
            {
                throw new ArgumentException("NetworkWriter:SeekPosition is not allowed to seek to position:" + position + " beacuase headerPosition:" + m_HeaderPosition);
            }

            m_Buffer.BackTo(position);
        }