Serialize key states much more efficiently by using bits instead of bytes.

This commit is contained in:
László Monda
2017-05-31 01:26:16 +02:00
parent 8b69dd7d90
commit 0edd56fa82
4 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#ifndef __BOOL_ARRAY_CONVERTER_H__
#define __BOOL_ARRAY_CONVERTER_H__
// Includes:
#include <stdint.h>
// Functions:
void BoolBytesToBits(uint8_t *srcBytes, uint8_t *dstBits, uint8_t byteCount);
void BoolBitsToBytes(uint8_t *srcBits, uint8_t *dstBytes, uint8_t byteCount);
#endif