Revolution.Core.Message.FixLength C# (CSharp) Method

FixLength() private method

private FixLength ( ) : void
return void
        private void FixLength()
        {
            int SourceIndex = PacketLength + 4;
            int Length = base.Length - SourceIndex;

            if (SourceIndex == base.Length && Length == 0)
            {
                return;
            }

            BytesRemain = new byte[Length];
            Array.Copy(GetBytes, SourceIndex, BytesRemain, 0, Length);

            var Result = new byte[SourceIndex];
            Array.Copy(GetBytes, Result, SourceIndex);

            base.Bytes = Result.ToList();
        }