File: bytecmp.hpp

package info (click to toggle)
liblsl 1.16.2b1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,724 kB
  • sloc: cpp: 12,515; ansic: 666; python: 28; sh: 25; makefile: 18
file content (7 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
#pragma once
#include <string>

/// convert a binary string to the equivalent C-escaped string, e.g. "Hello\xaf\xbcWorld\0"
std::string bytes_to_hexstr(const std::string &str);
/// compare two binary strings, printing the location around the first mismatch
void cmp_binstr(const std::string &a, const std::string b);