示例#1
0
        public uhsclErrorCode_t uhsclEmitterModelDescription(IntPtr sensationCoreInstancePtr, ulong allocatedLength, byte[] buffer)
        {
            var error = interop_.uhsclEmitterModelDescription(sensationCoreInstancePtr, allocatedLength, buffer);

            ForwardLogMessages(sensationCoreInstancePtr);
            return(error);
        }
示例#2
0
 public uhsclErrorCode_t uhsclEmitterModelDescription(IntPtr sensationCoreInstancePtr, ulong allocatedLength, byte[] buffer)
 {
     lock (lock_)
     {
         return(interop_.uhsclEmitterModelDescription(sensationCoreInstancePtr, allocatedLength, buffer));
     }
 }
示例#3
0
        public string EmitterModelDescription()
        {
            size_t length = (size_t)0;

            sensationCoreInterop_.uhsclEmitterModelDescriptionStringLength(sensationCoreInstancePtr_, out length);
            byte[] buffer = new byte[(uint)length + 1];

            sensationCoreInterop_.uhsclEmitterModelDescription(sensationCoreInstancePtr_, length, buffer);
            // Drop the null terminating character when creating the C# string
            return(System.Text.Encoding.ASCII.GetString(buffer.Take(buffer.Length - 1).ToArray()));
        }