public void MoveStream(int startIndex) { NetMessageStream activedStream = GetStream(); if (startIndex > 0) { if (startIndex < activedStream.Length) { activedStreamIndex = (activedStreamIndex + 1) % streams.Length; NetMessageStream targetStream = GetStream(); targetStream.Write(activedStream.GetBuffer(), startIndex, (int)(activedStream.Length - startIndex)); activedStream.Clear(); } else { activedStream.Clear(); } } }