operator + method

BSTR operator +(
  1. BSTR other
)

Concatenate two BSTR objects and returns a newly-allocated object with the results.

Implementation

BSTR operator +(BSTR other) {
  final pbstrResult = calloc<Pointer<Utf16>>();
  VarBstrCat(ptr, other.ptr, pbstrResult.cast());
  final result = BSTR._(pbstrResult.value);
  calloc.free(pbstrResult);
  return result;
}