diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fix/network.hpp | 2 | ||||
| -rw-r--r-- | lib/fix/parser.hpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/fix/network.hpp b/lib/fix/network.hpp index 9186b15..0ca0920 100644 --- a/lib/fix/network.hpp +++ b/lib/fix/network.hpp @@ -14,7 +14,7 @@ namespace snu::fix { class network_rx; - class network_tx; + class network_tx; } // namespace snu::fix #endif // ifndef _SNU_FIX_NETWORK_HPP
\ No newline at end of file diff --git a/lib/fix/parser.hpp b/lib/fix/parser.hpp index 3ab5467..95d05e6 100644 --- a/lib/fix/parser.hpp +++ b/lib/fix/parser.hpp @@ -56,12 +56,12 @@ namespace snu::fix template <typename char_type> struct range final { - char_type* ascii_bytes_; - uint16_t length_; + char_type* bytes_; + size_t length_; bool is_valid() { - return ascii_bytes_ && length_ > 0; + return bytes_ && length_ > 0; } operator bool() @@ -71,6 +71,7 @@ namespace snu::fix }; /// @brief Convert range to usable string. + /// @note This function assumes that the range is valid and contains ASCII bytes. template <typename char_type> inline std::basic_string<char_type> to_string(range<char_type>& range) noexcept { |
