Example #1
0
        /// <summary>
        /// Serialises content to the writer
        /// </summary>
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteIntArray(PassCountDetailValues);
        }
Example #2
0
 /// <summary>
 /// Writes the event types.
 /// </summary>
 /// <param name="types">Types.</param>
 /// <param name="writer">Writer.</param>
 private static void WriteEventTypes(int[] types, IBinaryRawWriter writer)
 {
     if (types != null && types.Length == 0)
     {
         types = null;  // empty array means no type filtering
     }
     writer.WriteIntArray(types);
 }
Example #3
0
        public override void InternalToBinary(IBinaryRawWriter writer)
        {
            base.InternalToBinary(writer);

            VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER);

            writer.WriteBoolean(Bits != null);

            if (Bits != null)
            {
                int[] buffer = new int[SubGridTreeConsts.SubGridTreeDimension];
                for (int i = 0; i < SubGridTreeConsts.SubGridTreeDimension; i++)
                {
                    buffer[i] = unchecked ((int)Bits.Bits[i]);
                }

                writer.WriteIntArray(buffer);
            }
        }