Skip to content

Instantly share code, notes, and snippets.

View andvalb's full-sized avatar

Andrey Belaykov andvalb

  • Ulyanovsk
View GitHub Profile
@andvalb
andvalb / hex2bytes.h
Created January 26, 2022 16:54 — forked from arnobaer/hex2bytes.h
C++ infinite hex string to bytes (of any junk size)
/*
* hex2bytes - hex string of unlimited length to a continous block of bytes
* Copyright (C) 2018 Bernhard Arnold <bernhard.arnold@cern.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,