Start the target:
$ ./target.py
Buffer region: [7f936c800000, 7f936d200000)
PID: 254438
Fire up another terminal and start the debugger:
$ ./findinmemory.py 254438
Finding b'\x00\x00\x00\xff' (alignment 4) in [0x7f936c800000-0x7f936d200000)
1843026.748021394
The debugger will not finish (at least on my machine with 64GB RAM). It will eventually get killed by OOM.
C-c will not work because the process is stuck in c++ code.
Currently this function is not available through commands, so a standalone python script is required to call it through API.