MLIB
Loading...
Searching...
No Matches
hex.h
1#pragma once
2/*
3 Copyright (c) Mircea Neacsu (2014-2025) Licensed under MIT License.
4 This is part of MLIB project. See LICENSE file for full license terms.
5*/
6
7namespace mlib {
8
10size_t hexbin (unsigned char* dst, const char* src, size_t sz);
11
13void binhex (char* dst, const unsigned char* src, size_t sz);
14
16void bytehex (char* dst, unsigned char bin);
17
19void shorthex (char* dst, unsigned short bin);
20
22void longhex (char* dst, unsigned long bin);
23
25bool hexbyte (unsigned char& dst, const char* src);
26
28bool hexshort (unsigned short& dst, const char* src);
29
31bool hexlong (unsigned long& dst, const char* src);
32
33} //namespace mlib
34