public uhsclErrorCode_t uhsclEmitterModelDescription(IntPtr sensationCoreInstancePtr, ulong allocatedLength, byte[] buffer) { var error = interop_.uhsclEmitterModelDescription(sensationCoreInstancePtr, allocatedLength, buffer); ForwardLogMessages(sensationCoreInstancePtr); return(error); }
public uhsclErrorCode_t uhsclEmitterModelDescription(IntPtr sensationCoreInstancePtr, ulong allocatedLength, byte[] buffer) { lock (lock_) { return(interop_.uhsclEmitterModelDescription(sensationCoreInstancePtr, allocatedLength, buffer)); } }
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())); }