64 if (newsize > priv->
length) {
static struct buf_bytes_priv * get_priv_bytes(RzBuffer *b)
static st64 buf_bytes_read(RzBuffer *b, ut8 *buf, ut64 len)
static bool buf_bytes_resize(RzBuffer *b, ut64 newsize)
static const RzBufferMethods buffer_bytes_methods
static ut64 buf_bytes_get_size(RzBuffer *b)
static st64 buf_bytes_seek(RzBuffer *b, st64 addr, int whence)
static bool buf_bytes_init(RzBuffer *b, const void *user)
static ut8 * buf_bytes_get_whole_buf(RzBuffer *b, ut64 *sz)
static st64 buf_bytes_write(RzBuffer *b, const ut8 *buf, ut64 len)
static bool buf_bytes_fini(RzBuffer *b)
RZ_API void Ht_() free(HtName_(Ht) *ht)
return memset(p, 0, total)
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
#define rz_warn_if_fail(expr)
RZ_API bool rz_buf_resize(RZ_NONNULL RzBuffer *b, ut64 newsize)
Resize the buffer size.
static ut64 rz_seek_offset(ut64 cur, ut64 length, st64 addr, int whence)
change cur according to addr and whence (RZ_BUF_SET/RZ_BUF_CUR/RZ_BUF_END)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()