Rizin
unix-like reverse engineering framework and cli tools
rz_debruijn.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2014 crowell <crowell@bu.edu>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_DEBRUIJN_H
5 #define RZ_DEBRUIJN_H
6 
7 #include <rz_types.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 // For information about the algorithm, see Joe Sawada and Frank Ruskey, "An
14 // Efficient Algorithm for Generating Necklaces with Fixed Density"
15 
16 RZ_API RZ_OWN char *rz_debruijn_pattern(int size, int start, const char *charset);
17 RZ_API int rz_debruijn_offset(int start, const char *charset, ut64 value, bool is_big_endian);
18 
19 #ifdef __cplusplus
20 }
21 #endif
22 
23 #endif // RZ_DEBRUIJN_H
static int value
Definition: cmd_api.c:93
#define RZ_API
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
Definition: sflib.h:133
voidpf void uLong size
Definition: ioapi.h:138
bool MACH0_() is_big_endian(struct MACH0_(obj_t) *bin)
Definition: mach0.c:3312
RZ_API int rz_debruijn_offset(int start, const char *charset, ut64 value, bool is_big_endian)
Finds the offset of a given value in a debrujn sequence.
Definition: debruijn.c:112
RZ_API RZ_OWN char * rz_debruijn_pattern(int size, int start, const char *charset)
Generate a cyclic pattern following the Debruijn pattern.
Definition: debruijn.c:80
#define RZ_OWN
Definition: rz_types.h:62
ut64(WINAPI *w32_GetEnabledXStateFeatures)()