Exemplo n.º 1
0
 public void MarshalSaHpiNameT( SaHpiNameT x )
 {
     MarshalSaHpiUint16T( x.Length );
     MarshalByteArray( x.Value, HpiConst.SA_HPI_MAX_NAME_LENGTH );
 }
Exemplo n.º 2
0
            public SaHpiNameT DemarshalSaHpiNameT()
            {
                SaHpiNameT x = new SaHpiNameT();

                x.Length = DemarshalSaHpiUint16T();
                x.Value = DemarshalByteArray( HpiConst.SA_HPI_MAX_NAME_LENGTH );

                return x;
            }
Exemplo n.º 3
0
 /**
  * Check function for HPI struct SaHpiNameT
  */
 public static bool Check( SaHpiNameT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( x.Value == null ) {
     return false;
     }
     if ( x.Value.Length != HpiConst.SA_HPI_MAX_NAME_LENGTH ) {
     return false;
     }
     return true;
 }