Hunny Software Library Reference

ByteStringBuilder.ToByteString Method 

Returns a new ByteString instance with contents of this instance.

[Visual Basic]
Public Function ToByteString() As ByteString
[C#]
public ByteString ToByteString();

Return Value

new ByteString with same contents as this instance

Remarks

This method creates a new instance of ByteString that has the same contents as this buffer. The method passes the internal byte array directly to the new ByteString instance, making this operation very efficient.

See Also

ByteStringBuilder Class | Hunny.Base Namespace