aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/http/hex_number.h
blob: bc78ff725829b2c9e911d80d9c4ca466fd74a7e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.


#pragma once

namespace vbench {

/**
 * Utility class used to work with hex number used in HTTP chunks.
 **/
class HexNumber
{
private:
    size_t _value;
    size_t _length;

public:
    HexNumber(const char *str);
    size_t value() const { return _value; }
    size_t length() const { return _length; }
};

} // namespace vbench