Serialize key states much more efficiently by using bits instead of bytes.
This commit is contained in:
13
shared/bool_array_converter.h
Normal file
13
shared/bool_array_converter.h
Normal 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
|
||||
Reference in New Issue
Block a user