Reuse of C# Decoding Objects

C# objects can be reused for decoding PER messages in the same way they were for BER messages. The decode buffer and message type objects are created outside of the main decoding loop. Then in the main loop these objects are reused to process each input message. Data must be saved from the message type object after each iteration because the contents of the object will be overwritten on each consecutive loop iteration. Nothing special needs to be done at the bottom of the loop to ready the decoder for the next message. All necessary initialization will be handled internally.