IPAddressV6::kToFullyQualifiedSize.
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 24 Apr 2015 00:02:55 +0000 (17:02 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:53:32 +0000 (16:53 -0700)
commit8ab68e82e4abdcdc458548b57f9bb0af4a89b7f1
tree279461e068bf68754450c5b1f3477fcba4673a4f
parentb79405c612523670e6b4238c8ff85681734b7075
IPAddressV6::kToFullyQualifiedSize.

Summary:
[Folly] IPAddressV6::kToFullyQualifiedSize.

The scenario: One has a string known to be a fully-qualified IPv4 or fully-qualified IPv6 address, but one does not know which of the two it is.

The dirty but fast solution: just check its size.

Test Plan: Build. Unit tests.

Reviewed By: mshneer@fb.com

Subscribers: folly-diffs@, dougw, yfeldblum, chalfant, brettp

FB internal diff: D2016634

Signature: t1:2016634:1429831808:08ecb28eab3060988f9613748ed8dabf3724bf13
folly/IPAddressV6.h
folly/test/IPAddressTest.cpp