[#boost-urls-ipv6_address-to_buffer]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/ipv6_address.adoc[ipv6&lowbar;address]::to&lowbar;buffer
:relfileprefix: ../../../
:mrdocs:


Write a dotted decimal string representing the address to a buffer

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/ipv6_address.hpp#L245[boost&sol;url&sol;ipv6&lowbar;address&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
core::string&lowbar;view
to&lowbar;buffer(
    char* dest,
    std::size&lowbar;t dest&lowbar;size) const;
----

== Description


The resulting buffer is not null&hyphen;terminated&period;



== Exceptions


|===
| Name | Thrown on

| `std&colon;&colon;length&lowbar;error`
| `dest&lowbar;size &lt; ipv6&lowbar;address&colon;&colon;max&lowbar;str&lowbar;len`


|===

== Return Value


The formatted string



== Parameters


|===
| Name | Description

| *dest*
| The buffer in which to write,        which must have at least `dest&lowbar;size` space&period;


| *dest&lowbar;size*
| The size of the output buffer&period;


|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
