X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FIPAddressV6.h;h=d4876af6c6fb70c37c942d35dec31b5ac5a4315b;hb=a5a5daef1f43d6222a0261e856edd3a62f2c7b24;hp=1620fb11b23e3cd1263027caee910ee915db6acc;hpb=4547b603051edf32b219d357fe1ded184348003e;p=folly.git diff --git a/folly/IPAddressV6.h b/folly/IPAddressV6.h index 1620fb11..d4876af6 100644 --- a/folly/IPAddressV6.h +++ b/folly/IPAddressV6.h @@ -1,5 +1,5 @@ /* - * Copyright 2014 Facebook, Inc. + * Copyright 2015 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,6 +82,10 @@ class IPAddressV6 : boost::totally_ordered { // Binary prefix for 6to4 networks static const uint32_t PREFIX_6TO4; + // Size of std::string returned by toFullyQualified. + static constexpr size_t kToFullyQualifiedSize = + 8 /*words*/ * 4 /*hex chars per word*/ + 7 /*separators*/; + /** * Create a new IPAddress instance from the provided binary data. * @throws IPAddressFormatException if the input length is not 16 bytes.