public RawDecoder(int bufferSize, long maxMsgSize, IMsgSink msgSink, Endianness endianness) : base(bufferSize, endianness) { m_msgSink = msgSink; m_maxMsgSize = maxMsgSize; }
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); }
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); }
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(); }
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(); }
// Set the receiver of decoded messages. public override void SetMsgSink(IMsgSink msgSink) { m_msgSink = msgSink; }
public abstract void SetMsgSink(IMsgSink msgSink);
public override void SetMsgSink(IMsgSink msgSink) { m_msgSink = msgSink; }