Add toFullyQualifiedAppend() methods
authorNick Terrell <terrelln@fb.com>
Tue, 13 Jun 2017 06:12:42 +0000 (23:12 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 13 Jun 2017 06:22:28 +0000 (23:22 -0700)
commit5203b6ba7f4b0dc9f3fa090f2d86a27b9edce8ff
treeebf9c53c1ebe0ed05b452a5a43609b5ba8de7e7a
parent9883bc3793fc71b8d4c8d1adf6c6fe796e9131e5
Add toFullyQualifiedAppend() methods

Summary: A common use case for `IPAddress::toFullyQualified()` is to print a `<ip>:<port>` string. It is faster to reserve enough space for both beforehand than create 2 strings.

Reviewed By: yfeldblum

Differential Revision: D5224454

fbshipit-source-id: 4536f89a9d51d39dd9fd970c753ecb8ecced5d22
folly/IPAddress.h
folly/IPAddressV4.cpp
folly/IPAddressV4.h
folly/IPAddressV6.cpp
folly/IPAddressV6.h
folly/detail/IPAddressSource.h
folly/test/IPAddressBenchmark.cpp
folly/test/IPAddressTest.cpp