static int read_image_resource_data_entry(RBuffer *b, ut64 addr, Pe_image_resource_data_entry *entry) {
	st64 o_addr = r_buf_seek (b, 0, R_BUF_CUR);
	if (r_buf_seek (b, addr, R_BUF_SET) < 0) {
		return -1;
	}
	ut8 buf[sizeof (Pe_image_resource_data_entry)];
	r_buf_read (b, buf, sizeof (Pe_image_resource_data_entry));
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, OffsetToData, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, Size, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, CodePage, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, Reserved, 32);
	r_buf_seek (b, o_addr, R_BUF_SET);
	return sizeof (Pe_image_resource_data_entry);
}
static int read_image_resource_data_entry(RBuffer *b, ut64 addr, Pe_image_resource_data_entry *entry) {
	st64 o_addr = r_buf_seek (b, 0, R_BUF_CUR);
	if (r_buf_seek (b, addr, R_BUF_SET) < 0) {
		return -1;
	}
	ut8 buf[sizeof (Pe_image_resource_data_entry)];
	r_buf_read (b, buf, sizeof (Pe_image_resource_data_entry));
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, OffsetToData, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, Size, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, CodePage, 32);
	PE_READ_STRUCT_FIELD (entry, Pe_image_resource_data_entry, Reserved, 32);
	r_buf_seek (b, o_addr, R_BUF_SET);
	return sizeof (Pe_image_resource_data_entry);
}