pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SloCompTech/ByteConvert_cpp

thubassets.com/assets/primer-70be7debc79a8eff.css" /> GitHub - SloCompTech/ByteConvert_cpp: Library for C++ to convert variables to bytes and back · GitHub
Skip to content

SloCompTech/ByteConvert_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byteconvert

ByteConvert

Build Status Packagist

What's about ?

Have you ever wanted to transmit int,short,long or any other numeric type over I2C,SPI,serial or other protocol or bus, but you converted variable to string to be able to transmit it char by char. This library enables you to convert any numeric value to bytes or other way around and you can also print array of bytes.

What you need to consider, when you are using this library

When you are using this library, you need to consider variable byte size, because if you are using different platforms, then there may be some errors, because int on platform 1 has 4 bytes and int on platform 2 may has 2 bytes.

What you need to install this project ?

You need python3, ninja and meson.

sudo apt-get install python3 python3-pip ninja-build
sudo pip3 install meson

Installing

meson build
ninja -C build
ninja -C build test
ninja -C build install

# Or simply
make
sudo make install

If you have problems, that library can't be found run sudo ldconfig /usr/local/lib/x86_64-linux-gnu/ if you haven't changed prefix, else modify path.

How to include library to your c or c++ project ?

It's simple. At the top of your source file include library:

#include <ByteConvert/ByteConvert.hpp>

And when you compile add flag -lbyteconvert, example g++ -std=c++11 MyProject.cpp -lbyteconvert -o MyProject.

Examples

See examples folder

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy