diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-11-16 20:22:32 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2025-02-13 11:15:38 +0100 |
commit | 12b0cd620537e78f1c1d8167c4e713e979b9d846 (patch) | |
tree | d311950ea5fc8dee30c92c077595b311e1ba2728 /common/rdr/HexInStream.cxx | |
parent | 1c512f7dcd75b413a339cc48eab92e748ca2d003 (diff) | |
download | tigervnc-12b0cd620537e78f1c1d8167c4e713e979b9d846.tar.gz tigervnc-12b0cd620537e78f1c1d8167c4e713e979b9d846.zip |
Move utility functions to core library
Make it clearer what is protocol handling and what is just general
plumbing.
This is one step of several.
Diffstat (limited to 'common/rdr/HexInStream.cxx')
-rw-r--r-- | common/rdr/HexInStream.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/rdr/HexInStream.cxx b/common/rdr/HexInStream.cxx index 69c3e260..f28cddbb 100644 --- a/common/rdr/HexInStream.cxx +++ b/common/rdr/HexInStream.cxx @@ -22,8 +22,10 @@ #endif #include <algorithm> + +#include <core/util.h> + #include <rdr/HexInStream.h> -#include <rfb/util.h> using namespace rdr; @@ -44,7 +46,7 @@ bool HexInStream::fillBuffer() { uint8_t* optr = (uint8_t*) end; for (size_t i=0; i<length; i++) { - if (!rfb::hexToBin((const char*)&iptr[i*2], 2, &optr[i], 1)) + if (!core::hexToBin((const char*)&iptr[i*2], 2, &optr[i], 1)) throw std::runtime_error("HexInStream: Invalid input data"); } |