public void Free() { NgscomMarshal.FreeBString(Address); }
/// <summary> /// Retrieves the contents of the <c>BString</c>. /// </summary> /// <returns>The contents of the <c>BString</c>.</returns> public override string ToString() { return(NgscomMarshal.BStringToString(Address)); }
/// <summary> /// Creates a <see cref="BStringRef" /> with a pointer to a <c>BString</c> /// containing the given string. /// </summary> /// <param name="str">The string to initialize the <c>BString</c> with.</param> /// <returns> /// A <see cref="BStringRef" /> pointing the newly created <c>BString</c>. /// </returns> public static BStringRef Create(string str) { return(new BStringRef(NgscomMarshal.AllocBString(str))); }