Example #1
0
        private PacketHeader PrepareFrame(bool pClearBitPacker = false)
        {
            _shouldClean = false;
            if (pClearBitPacker)
            {
                FrameSerializer.BitPacking.Clear();
            }

            PacketHeader header = new PacketHeader(0, CurrentSequence);             // Write an empty CRC to reserve the 32 first bits to the CRC.

            header.BeginSerialize(FrameSerializer);
            return(header);
        }