Class that represents a mutable sequence of single-byte characters or bytes
For a list of all members of this type, see ByteStringBuilder Members.
System.Object
ByteStringBuilder
This class works together with ByteString in the same
way that System.Text.StringBuilder works with
System.String. The difference between StringBuilder and
ByteStringBuilder is that StringBuilder contains
character data only, using 16-bit Unicode code points, while
ByteStringBuilder contains 8-bit character data or non-character
byte data.
This class is necessary, because instances of ByteString are
immutable. Therefore, to create a ByteString by concatenating
several sequences of bytes, it is much more efficient to first create
an instance of ByteStringBuilder, perform all the concatenation
operations on it, and in the end convert it to a ByteString
instance. When an instance of ByteStringBuilder is converted to
an instance of ByteString by calling the
ByteStringBuilder.ToByteString() method, the internal byte array
is passed directly to the new ByteString instance, making this
operation very efficient.
Namespace: Hunny.Base
Assembly: Hunny.Base (in Hunny.Base.dll)
ByteStringBuilder Members | Hunny.Base Namespace