public CtpCommandSchema ToSchema()
        {
            if (m_stream == null)
            {
                throw new Exception("Duplicate calls are not supported.");
            }
            var data = m_stream.ToArray();

            m_stream = null;
            return(new CtpCommandSchema(data, Interlocked.Increment(ref ProcessRuntimeID)));
        }
Beispiel #2
0
 public void CopyToAsCtpBuffer(CtpObjectWriter wr)
 {
     wr.Write(m_buffer, 0, m_length);
 }
 public CommandSchemaWriter()
 {
     m_stream = new CtpObjectWriter();
 }