Serialize() public method

Serializes AUX_PERF_SESSIONINFO to a byte array
public Serialize ( ) : byte[]
return byte[]
        /// <summary>
        /// Composes buffer for AUX_PERF_SESSIONINFO, refer to the definition of AUX_PERF_SESSIONINFO in this Open Specification
        /// </summary>
        /// <param name="reserved">Value for Reserved field in AUX_PERF_SESSIONINFO</param>
        /// <returns>The byte array contains the AUX_PERF_SESSIONINFO</returns>
        public static byte[] Compose_AUX_PERF_SESSIONINFO(int reserved)
        {
            AUX_PERF_SESSIONINFO aux_perf_sessioninfo = new AUX_PERF_SESSIONINFO
            {
                SessionID   = 0,
                Reserved    = (short)reserved,
                SessionGuid = new byte[ConstValues.GuidByteSize]
            };

            return(aux_perf_sessioninfo.Serialize());
        }
 /// <summary>
 /// Composes buffer for AUX_PERF_SESSIONINFO, refer to the definition of AUX_PERF_SESSIONINFO in this Open Specification
 /// </summary>
 /// <param name="reserved">Value for Reserved field in AUX_PERF_SESSIONINFO</param>
 /// <returns>The byte array contains the AUX_PERF_SESSIONINFO</returns>
 public static byte[] Compose_AUX_PERF_SESSIONINFO(int reserved)
 {
     AUX_PERF_SESSIONINFO aux_perf_sessioninfo = new AUX_PERF_SESSIONINFO
     {
         SessionID = 0,
         Reserved = (short)reserved,
         SessionGuid = new byte[ConstValues.GuidByteSize]
     };
     return aux_perf_sessioninfo.Serialize();
 }