* Reimplement r_buf_fread/fwrite
* Add slice buffer and introduce readonly field
* Do nothing if size is 0
* Prevents an overflow when 8 is subtracted from size.
* Fix ragg2 when patching outside currently existing buffer
* Implement r_mem_mmap_resize for systems where mremap is not defined
* r_buf_buffer can be called with no size arg as well
* Use size_t instead of ut64
When using debugger the file assumed path for the auxillary script
was dbg://<binary path>.r2, without debugger it's just <binary path>.r2.
This patch cuts out the 'dbg://' prefix if found before looking for the
auxillary script.
* Fixes#1179 - `itj` command has fixed, small refactoring on hashes storage, removed obsolete `file.sha1` usage
* Show all the different hashes on `it` and `itj`
* `it` and `itj` refactoring.
PJ optimizations have made, added more arguments checks
* Use r_buf_size to get the size of a buffer, not the private field
* Use r_buf_seek instead of adjusting the private cur RBuffer field
* use r_buf_read instead of r_buf_read_at(.., cur, ..)
* Fix RBuffer usage in REgg
* Introduce r_buf_tell API instead of using seek
* write_at(cur) == write