Example #1
0
 public void Free()
 {
     NgscomMarshal.FreeBString(Address);
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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)));
 }