10 #define BSIZE (1024 * 1024)
11 #define MAX_PATLEN 1024
42 for (
p =
n;
p->next !=
NULL;
p =
p->next) {
53 for (
p =
n;
p->next !=
NULL;
p =
p->next) {
54 if (!memcmp(blk,
p->str, patlen)) {
64 int nr,
i, moar = 0, pcnt, cnt = 0,
k = 0;
65 int patlen =
s->pattern_size;
82 while (bact <
bytes) {
88 bproc = bact + patlen;
93 s->iob.read_at(
s->iob.io,
addr, sblk, nr);
98 while (bproc <
bytes) {
101 nr += (patlen - (nr % patlen));
102 rb =
s->iob.read_at(
s->iob.io, bproc, block, nr);
109 for (
i = 0;
i < nr;
i++) {
114 eprintf(
"\nbytes: %d: ", pcnt);
115 for (
k = 0;
k < patlen;
k++) {
126 eprintf(
"\ncount: %d: %d\n", pcnt, moar + 1);
130 bact += (moar > 0) ? patlen : 1;
static void add_fi(fnditem *n, unsigned char *blk, int patlen)
static void fini_fi(fnditem *fi)
static int is_fi_present(fnditem *n, unsigned char *blk, int patlen)
static fnditem * init_fi(void)
RZ_API int rz_search_pattern(RzSearch *s, ut64 from, ut64 to)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * malloc(size_t size)
RZ_API bool rz_print_is_interrupted(void)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
unsigned char str[MAX_PATLEN]
ut64(WINAPI *w32_GetEnabledXStateFeatures)()