mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-28 02:50:21 +08:00
remov function
This commit is contained in:
parent
74b4755d42
commit
77bc60bc52
2 changed files with 6 additions and 23 deletions
|
@ -7,17 +7,8 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// utilities
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "util.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "data.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -372,17 +363,6 @@ void SwapEndian64ex(const uint8_t *src, const size_t len, const uint8_t blockSiz
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// array must be size dividable with 8
|
||||
uint8_t bits_to_array(const uint8_t *bits, size_t size, uint8_t *dest) {
|
||||
if ( (size == 0) || (size % 8) != 0) return 0;
|
||||
|
||||
for(uint32_t i = 0; i < (size / 8); i++)
|
||||
dest[i] = bytebits_to_byte((uint8_t *) bits + (i * 8), 8);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// string parameters lib
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
|
@ -13,8 +13,13 @@
|
|||
#include <stdint.h> //included in data.h
|
||||
#include <stddef.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "data.h"
|
||||
#include "ui.h" // PrintAndLog
|
||||
#include "lfdemod.h" // bytebites_to
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <endian.h>
|
||||
|
@ -170,8 +175,6 @@ extern void num_to_bytebitsLSBF(uint64_t n, size_t len, uint8_t *dest);
|
|||
extern uint8_t *SwapEndian64(const uint8_t *src, const size_t len, const uint8_t blockSize);
|
||||
extern void SwapEndian64ex(const uint8_t *src, const size_t len, const uint8_t blockSize, uint8_t *dest);
|
||||
|
||||
extern uint8_t bits_to_array(const uint8_t *bits, size_t size, uint8_t *dest);
|
||||
|
||||
extern int param_getlength(const char *line, int paramnum);
|
||||
extern char param_getchar(const char *line, int paramnum);
|
||||
extern char param_getchar_indx(const char *line, int indx, int paramnum);
|
||||
|
|
Loading…
Reference in a new issue