static int bin_pe_read_metadata_string(char* to, RBuffer *frombuf, int fromoff) {
	int covered = 0;
	*to = 0;
	while (covered < MAX_METADATA_STRING_LENGTH) {
		const char covch = r_buf_read8_at (frombuf, fromoff + covered);
		to[covered++] = covch;
		if (!covch) {
			break;
		}
	}
	while (covered % 4 != 0) { covered++; }
	return covered;
}
static int bin_pe_read_metadata_string(char* to, RBuffer *frombuf, int fromoff) {
	int covered = 0;
	*to = 0;
	while (covered < MAX_METADATA_STRING_LENGTH) {
		const char covch = r_buf_read8_at (frombuf, fromoff + covered);
		to[covered++] = covch;
		if (!covch) {
			break;
		}
	}
	while (covered % 4 != 0) { covered++; }
	return covered;
}