Example #1
0
            public SaHpiFumiOemDefinedSpecInfoT DemarshalSaHpiFumiOemDefinedSpecInfoT()
            {
                SaHpiFumiOemDefinedSpecInfoT x = new SaHpiFumiOemDefinedSpecInfoT();

                x.Mid = DemarshalSaHpiManufacturerIdT();
                x.BodyLength = DemarshalSaHpiUint8T();
                x.Body = DemarshalByteArray( HpiConst.SAHPI_FUMI_MAX_OEM_BODY_LENGTH );

                return x;
            }
Example #2
0
 public void MarshalSaHpiFumiOemDefinedSpecInfoT( SaHpiFumiOemDefinedSpecInfoT x )
 {
     MarshalSaHpiManufacturerIdT( x.Mid );
     MarshalSaHpiUint8T( x.BodyLength );
     MarshalByteArray( x.Body, HpiConst.SAHPI_FUMI_MAX_OEM_BODY_LENGTH );
 }
Example #3
0
 /**
  * Check function for HPI struct SaHpiFumiOemDefinedSpecInfoT
  */
 public static bool Check( SaHpiFumiOemDefinedSpecInfoT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( x.Body == null ) {
     return false;
     }
     if ( x.Body.Length != HpiConst.SAHPI_FUMI_MAX_OEM_BODY_LENGTH ) {
     return false;
     }
     return true;
 }