:relfileprefix: ../../../
[#boost-urls-ipv6_address-to_buffer]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/ipv6_address.adoc[pass:[ipv6_address]]::to_buffer


Write a dotted decimal string representing the address to a buffer


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/ipv6_address.hpp#L245[boost/url/ipv6_address.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
core::string_view
to_buffer(
    char* dest,
    xref:std.adoc[std]::size_t dest_size) const;
----

== Description


The resulting buffer is not null-terminated.



== Exceptions

|===
| Name | Thrown on

| `std::length_error`
| 
`dest_size &lt; ipv6_address::max_str_len`

|===


== Return Value


The formatted string



== Parameters

|===
| Name | Description 

| *dest*
| 
The buffer in which to write,
which must have at least `dest_size` space.

| *dest_size*
| 
The size of the output buffer.

|===




