| Index: net/quic/quic_utils.h
|
| diff --git a/net/quic/quic_utils.h b/net/quic/quic_utils.h
|
| index 32dc15f1e01a6c1b1f7f0e5be8639ac3c59168ac..14345eb6f64b56386a38b87cb7ebbfac26d2ada5 100644
|
| --- a/net/quic/quic_utils.h
|
| +++ b/net/quic/quic_utils.h
|
| @@ -15,10 +15,20 @@ namespace net {
|
|
|
| class NET_EXPORT_PRIVATE QuicUtils {
|
| public:
|
| + // returns the 64 bit FNV1a hash of the data. See
|
| + // http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param
|
| + static uint64 FNV1a_64_Hash(const char* data, int len);
|
| +
|
| // returns the 128 bit FNV1a hash of the data. See
|
| // http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-param
|
| static uint128 FNV1a_128_Hash(const char* data, int len);
|
|
|
| + // SerializeUint128 writes |v| in little-endian form to |out|.
|
| + static void SerializeUint128(uint128 v, uint8* out);
|
| +
|
| + // ParseUint128 parses a little-endian uint128 from |in| and returns it.
|
| + static uint128 ParseUint128(const uint8* in);
|
| +
|
| // Returns the name of the QuicRstStreamErrorCode as a char*
|
| static const char* StreamErrorToString(QuicRstStreamErrorCode error);
|
|
|
|
|