Example #1
0
 public RawDecoder(int bufferSize, long maxMsgSize, IMsgSink msgSink,
   Endianness endianness)
     : base(bufferSize, endianness)
 {
     m_msgSink = msgSink;
     m_maxMsgSize = maxMsgSize;
 }
Example #2
0
 public RawDecoder(int bufferSize, long maxMsgSize, IMsgSink msgSink,
                   Endianness endianness)
     : base(bufferSize, endianness)
 {
     m_msgSink    = msgSink;
     m_maxMsgSize = maxMsgSize;
 }
Example #3
0
        public V1Decoder(int bufsize, long maxmsgsize, IMsgSink session, Endianness endian) : base(bufsize, endian)
        {
            m_maxmsgsize = maxmsgsize;
            m_msgSink    = session;

            m_tmpbuf = new byte[8];

            //  At the beginning, read one byte and go to one_byte_size_ready state.
            NextStep(m_tmpbuf, 1, FlagsReadyState);
        }
Example #4
0
        public V1Decoder(int bufsize, long maxmsgsize, IMsgSink session)
            : base(bufsize)
        {
            m_maxmsgsize = maxmsgsize;
            m_msgSink = session;

            m_tmpbuf = new byte[8];

            //  At the beginning, read one byte and go to one_byte_size_ready state.
            NextStep(m_tmpbuf, 1, FlagsReadyState);
        }
Example #5
0
        public V2Decoder(int bufsize, long maxmsgsize, IMsgSink session, Endianness endian)
            : base(bufsize, endian)
        {
            m_maxmsgsize = maxmsgsize;
            m_msgSink = session;

            m_tmpbuf = new byte[8];

            // At the beginning, read one byte and go to one_byte_size_ready state.
            NextStep(m_tmpbuf, 1, FlagsReadyState);

            m_inProgress = new Msg();
            m_inProgress.InitEmpty();
        }
Example #6
0
        public V2Decoder(int bufsize, long maxmsgsize, IMsgSink session, Endianness endian)
            : base(bufsize, endian)
        {
            this.m_maxmsgsize = maxmsgsize;
            this.m_msgSink    = session;

            this.m_tmpbuf = new byte[8];

            // At the beginning, read one byte and go to one_byte_size_ready state.
            this.NextStep(this.m_tmpbuf, 1, V2Decoder.FlagsReadyState);

            this.m_inProgress = new Msg();
            this.m_inProgress.InitEmpty();
        }
Example #7
0
 //  Set the receiver of decoded messages.
 public override void SetMsgSink(IMsgSink msgSink)
 {
     m_msgSink = msgSink;
 }
Example #8
0
 public abstract void SetMsgSink(IMsgSink msgSink);
Example #9
0
 public override void SetMsgSink(IMsgSink msgSink)
 {
     m_msgSink = msgSink;
 }
Example #10
0
 public abstract void SetMsgSink(IMsgSink msgSink);