/// <summary>
        /// Writes a <see cref="String" /> to a new buffer.
        /// </summary>
        /// <param name="converter">The converter.</param>
        /// <param name="value">The value.</param>
        public static byte[] FromString(this IByteConverter converter, string value)
        {
            var buffer = new byte[converter.GetStringByteCount(value)];

            converter.FromString(value, buffer);

            return(buffer);
        }