Exemplo n.º 1
0
        }   // ~Write()

        /// <summary>
        /// Write
        /// </summary>
        virtual public void Write(global::Microsoft.Bond.IProtocolWriter writer, System.Type type)
        {
            if (type == typeof(Value))
            {
                Write(writer, true);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Write
        /// </summary>
        public void Write(global::Microsoft.Bond.IProtocolWriter writer, bool isTopLevel)
        {
            global::Microsoft.Bond.IProtocolWriter pass0;

            if (isTopLevel && (pass0 = writer.GetPass0Writer()) != null)
            {
                WriteInternal(pass0, isTopLevel);
                WriteInternal(writer, isTopLevel);
                writer.EndDoublePass();
            }
            else
            {
                WriteInternal(writer, isTopLevel);
            }
        }   // ~Write()
Exemplo n.º 3
0
        /// <summary>
        /// WriteInternal
        /// </summary>
        protected void WriteInternal(global::Microsoft.Bond.IProtocolWriter writer, bool isTopLevel)
        {
            bool writeAllFields = !writer.MayOmitFields;

            writer.WriteStructBegin(Schema.meta, !isTopLevel, true);

            writer.WriteFieldBegin(global::Microsoft.Bond.BondDataType.BT_LIST, __ordinals.blobValue, Schema.blobValue_meta);
            UInt32 count1 = m_blobValue.GetCount();

            writer.WriteContainerBegin(count1, BondDataType.BT_INT8);
            if (count1 != 0)
            {
                writer.WriteBlob(m_blobValue.GetData());
            }
            writer.WriteContainerEnd();
            writer.WriteFieldEnd();
            writer.WriteStructEnd(!isTopLevel);
        }   // ~Write()
Exemplo n.º 4
0
 /// <summary>
 /// Write
 /// </summary>
 virtual public void Write(global::Microsoft.Bond.IProtocolWriter writer)
 {
     Write(writer, true);
 }