コード例 #1
0
        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)));
        }
コード例 #2
0
 public void CopyToAsCtpBuffer(CtpObjectWriter wr)
 {
     wr.Write(m_buffer, 0, m_length);
 }
コード例 #3
0
 public CommandSchemaWriter()
 {
     m_stream = new CtpObjectWriter();
 }