Lines Matching full:off

427   rc_uint_type off;  in bin_to_res_dialog()  local
442 off = 8; in bin_to_res_dialog()
456 off = 16; in bin_to_res_dialog()
459 if (length < off + 10) in bin_to_res_dialog()
462 c = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog()
463 d->x = windres_get_16 (wrbfd, data + off + 2, 2); in bin_to_res_dialog()
464 d->y = windres_get_16 (wrbfd, data + off + 4, 2); in bin_to_res_dialog()
465 d->width = windres_get_16 (wrbfd, data + off + 6, 2); in bin_to_res_dialog()
466 d->height = windres_get_16 (wrbfd, data + off + 8, 2); in bin_to_res_dialog()
468 off += 10; in bin_to_res_dialog()
470 sublen = get_resid (wrbfd, &d->menu, data + off, length - off); in bin_to_res_dialog()
471 off += sublen; in bin_to_res_dialog()
473 sublen = get_resid (wrbfd, &d->class, data + off, length - off); in bin_to_res_dialog()
474 off += sublen; in bin_to_res_dialog()
476 d->caption = get_unicode (wrbfd, data + off, length - off, &sublen); in bin_to_res_dialog()
477 off += sublen * 2 + 2; in bin_to_res_dialog()
494 if (length < off + 2) in bin_to_res_dialog()
497 d->pointsize = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog()
498 off += 2; in bin_to_res_dialog()
502 if (length < off + 4) in bin_to_res_dialog()
504 d->ex->weight = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog()
505 d->ex->italic = windres_get_8 (wrbfd, data + off + 2, 1); in bin_to_res_dialog()
506 d->ex->charset = windres_get_8 (wrbfd, data + off + 3, 1); in bin_to_res_dialog()
507 off += 4; in bin_to_res_dialog()
510 d->font = get_unicode (wrbfd, data + off, length - off, &sublen); in bin_to_res_dialog()
511 off += sublen * 2 + 2; in bin_to_res_dialog()
522 off = (off + 3) &~ 3; in bin_to_res_dialog()
528 if (length < off + 8) in bin_to_res_dialog()
531 dc->style = windres_get_32 (wrbfd, data + off, 4); in bin_to_res_dialog()
532 dc->exstyle = windres_get_32 (wrbfd, data + off + 4, 4); in bin_to_res_dialog()
534 off += 8; in bin_to_res_dialog()
538 if (length < off + 12) in bin_to_res_dialog()
540 dc->help = windres_get_32 (wrbfd, data + off, 4); in bin_to_res_dialog()
541 dc->exstyle = windres_get_32 (wrbfd, data + off + 4, 4); in bin_to_res_dialog()
542 dc->style = windres_get_32 (wrbfd, data + off + 8, 4); in bin_to_res_dialog()
543 off += 12; in bin_to_res_dialog()
546 if (length < off + (d->ex != NULL ? 2 : 0) + 10) in bin_to_res_dialog()
549 dc->x = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog()
550 dc->y = windres_get_16 (wrbfd, data + off + 2, 2); in bin_to_res_dialog()
551 dc->width = windres_get_16 (wrbfd, data + off + 4, 2); in bin_to_res_dialog()
552 dc->height = windres_get_16 (wrbfd, data + off + 6, 2); in bin_to_res_dialog()
555 dc->id = windres_get_32 (wrbfd, data + off + 8, 4); in bin_to_res_dialog()
557 dc->id = windres_get_16 (wrbfd, data + off + 8, 2); in bin_to_res_dialog()
559 off += 10 + (d->ex != NULL ? 2 : 0); in bin_to_res_dialog()
561 sublen = get_resid (wrbfd, &dc->class, data + off, length - off); in bin_to_res_dialog()
562 off += sublen; in bin_to_res_dialog()
564 sublen = get_resid (wrbfd, &dc->text, data + off, length - off); in bin_to_res_dialog()
565 off += sublen; in bin_to_res_dialog()
567 if (length < off + 2) in bin_to_res_dialog()
570 datalen = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog()
571 off += 2; in bin_to_res_dialog()
577 if (length < off + datalen) in bin_to_res_dialog()
585 dc->data->u.buffer.data = data + off; in bin_to_res_dialog()
587 off += datalen; in bin_to_res_dialog()
669 unsigned int off; in bin_to_res_fontdir() local
684 off = 56; in bin_to_res_fontdir()
686 while (off < length && data[off] != '\0') in bin_to_res_fontdir()
687 ++off; in bin_to_res_fontdir()
688 if (off >= length) in bin_to_res_fontdir()
690 ++off; in bin_to_res_fontdir()
692 while (off < length && data[off] != '\0') in bin_to_res_fontdir()
693 ++off; in bin_to_res_fontdir()
694 if (off >= length) in bin_to_res_fontdir()
696 ++off; in bin_to_res_fontdir()
698 fd->length = off; in bin_to_res_fontdir()
708 data += off; in bin_to_res_fontdir()
709 length -= off; in bin_to_res_fontdir()
898 to the type, and *OFF to the offset to the children. */
904 rc_uint_type *off) in get_version_header() argument
913 *off = 6; in get_version_header()
923 *off += (sublen + 1) * sizeof (unichar); in get_version_header()
934 *off += 2; in get_version_header()
945 *off = (*off + 3) &~ 3; in get_version_header()
953 rc_uint_type verlen, vallen, type, off; in bin_to_res_version() local
960 (unichar **) NULL, &verlen, &vallen, &type, &off); in bin_to_res_version()
973 data += off; in bin_to_res_version()
974 length -= off; in bin_to_res_version()
1037 &off); in bin_to_res_version()
1042 data += off; in bin_to_res_version()
1043 length -= off; in bin_to_res_version()
1045 verlen -= off; in bin_to_res_version()
1062 &vst->language, &stverlen, &vallen, &type, &off); in bin_to_res_version()
1067 data += off; in bin_to_res_version()
1068 length -= off; in bin_to_res_version()
1069 verlen -= off; in bin_to_res_version()
1071 stverlen -= off; in bin_to_res_version()
1087 &vs->key, &sverlen, &vallen, &type, &off); in bin_to_res_version()
1089 data += off; in bin_to_res_version()
1090 length -= off; in bin_to_res_version()
1096 if (off + valoff != sverlen) in bin_to_res_version()
1098 (long) sverlen, (long) off, (long) valoff); in bin_to_res_version()
1127 &off); in bin_to_res_version()
1132 data += off; in bin_to_res_version()
1133 length -= off; in bin_to_res_version()
1136 &vi->u.var.key, &verlen, &vallen, &type, &off); in bin_to_res_version()
1138 data += off; in bin_to_res_version()
1139 length -= off; in bin_to_res_version()
1281 res_to_bin (windres_bfd *wrbfd, rc_uint_type off, const rc_res_resource *res) in res_to_bin() argument
1289 return res_to_bin_generic (wrbfd, off, res->u.data.length, res->u.data.data); in res_to_bin()
1291 return res_to_bin_accelerator (wrbfd, off, res->u.acc); in res_to_bin()
1293 return res_to_bin_cursor (wrbfd, off, res->u.cursor); in res_to_bin()
1295 return res_to_bin_group_cursor (wrbfd, off, res->u.group_cursor); in res_to_bin()
1297 return res_to_bin_dialog (wrbfd, off, res->u.dialog); in res_to_bin()
1299 return res_to_bin_fontdir (wrbfd, off, res->u.fontdir); in res_to_bin()
1301 return res_to_bin_group_icon (wrbfd, off, res->u.group_icon); in res_to_bin()
1303 return res_to_bin_menu (wrbfd, off, res->u.menu); in res_to_bin()
1305 return res_to_bin_stringtable (wrbfd, off, res->u.stringtable); in res_to_bin()
1307 return res_to_bin_versioninfo (wrbfd, off, res->u.versioninfo); in res_to_bin()
1309 return res_to_bin_toolbar (wrbfd, off, res->u.toolbar); in res_to_bin()
1313 return res_to_bin_rcdata (wrbfd, off, res->u.rcdata); in res_to_bin()
1321 resid_to_bin (windres_bfd *wrbfd, rc_uint_type off, rc_res_id id) in resid_to_bin() argument
1331 set_windres_bfd_content (wrbfd, &bri, off, BIN_RES_ID); in resid_to_bin()
1333 off += BIN_RES_ID; in resid_to_bin()
1345 set_windres_bfd_content (wrbfd, d, off, (len + 1) * sizeof (unichar)); in resid_to_bin()
1347 off += (rc_uint_type) ((len + 1) * sizeof (unichar)); in resid_to_bin()
1349 return off; in resid_to_bin()
1356 unicode_to_bin (windres_bfd *wrbfd, rc_uint_type off, const unichar *str) in unicode_to_bin() argument
1371 set_windres_bfd_content (wrbfd, d, off, (len + 1) * sizeof (unichar)); in unicode_to_bin()
1373 off += (rc_uint_type) ((len + 1) * sizeof (unichar)); in unicode_to_bin()
1375 return off; in unicode_to_bin()
1381 res_to_bin_accelerator (windres_bfd *wrbfd, rc_uint_type off, in res_to_bin_accelerator() argument
1396 set_windres_bfd_content (wrbfd, &ba, off, BIN_ACCELERATOR_SIZE); in res_to_bin_accelerator()
1398 off += BIN_ACCELERATOR_SIZE; in res_to_bin_accelerator()
1400 return off; in res_to_bin_accelerator()
1406 res_to_bin_cursor (windres_bfd *wrbfd, rc_uint_type off, const rc_cursor *c) in res_to_bin_cursor() argument
1414 set_windres_bfd_content (wrbfd, &bc, off, BIN_CURSOR_SIZE); in res_to_bin_cursor()
1416 set_windres_bfd_content (wrbfd, c->data, off + BIN_CURSOR_SIZE, c->length); in res_to_bin_cursor()
1418 off = (off + BIN_CURSOR_SIZE + (rc_uint_type) c->length); in res_to_bin_cursor()
1419 return off; in res_to_bin_cursor()
1425 res_to_bin_group_cursor (windres_bfd *wrbfd, rc_uint_type off, in res_to_bin_group_cursor() argument
1432 rc_uint_type start = off; in res_to_bin_group_cursor()
1434 off += BIN_GROUP_CURSOR_SIZE; in res_to_bin_group_cursor()
1446 set_windres_bfd_content (wrbfd, &bgci, off, BIN_GROUP_CURSOR_ITEM_SIZE); in res_to_bin_group_cursor()
1449 off += BIN_GROUP_CURSOR_ITEM_SIZE; in res_to_bin_group_cursor()
1458 return off; in res_to_bin_group_cursor()
1464 res_to_bin_dialog (windres_bfd *wrbfd, rc_uint_type off, const rc_dialog *dialog) in res_to_bin_dialog() argument
1474 off_delta = off; in res_to_bin_dialog()
1475 start = off; in res_to_bin_dialog()
1503 off += (dialogex != 0 ? BIN_DIALOGEX_SIZE : BIN_DIALOG_SIZE); in res_to_bin_dialog()
1505 off = resid_to_bin (wrbfd, off, dialog->menu); in res_to_bin_dialog()
1506 off = resid_to_bin (wrbfd, off, dialog->class); in res_to_bin_dialog()
1507 off = unicode_to_bin (wrbfd, off, dialog->caption); in res_to_bin_dialog()
1517 set_windres_bfd_content (wrbfd, &bdf, off, BIN_DIALOGFONT_SIZE); in res_to_bin_dialog()
1526 set_windres_bfd_content (wrbfd, &bdxf, off, BIN_DIALOGEXFONT_SIZE); in res_to_bin_dialog()
1529 off += (dialogex ? BIN_DIALOGEXFONT_SIZE : BIN_DIALOGFONT_SIZE); in res_to_bin_dialog()
1530 off = unicode_to_bin (wrbfd, off, dialog->font); in res_to_bin_dialog()
1536 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_dialog()
1550 set_windres_bfd_content (wrbfd, &bdc, off, BIN_DIALOG_CONTROL_SIZE); in res_to_bin_dialog()
1564 set_windres_bfd_content (wrbfd, &bdc, off, BIN_DIALOGEX_CONTROL_SIZE); in res_to_bin_dialog()
1567 off += (dialogex != 0 ? BIN_DIALOGEX_CONTROL_SIZE : BIN_DIALOG_CONTROL_SIZE); in res_to_bin_dialog()
1569 off = resid_to_bin (wrbfd, off, dc->class); in res_to_bin_dialog()
1570 off = resid_to_bin (wrbfd, off, dc->text); in res_to_bin_dialog()
1572 marker = off; /* Save two bytes for size of optional data. */ in res_to_bin_dialog()
1573 off += 2; in res_to_bin_dialog()
1582 rc_uint_type saved_off = off; in res_to_bin_dialog()
1585 old_off = off; in res_to_bin_dialog()
1586 off = res_to_bin_rcdata (wrbfd, off, dc->data); in res_to_bin_dialog()
1587 if ((off - old_off) == 0) in res_to_bin_dialog()
1588 old_off = off = saved_off; in res_to_bin_dialog()
1590 windres_put_16 (wrbfd, dc_rclen, off - old_off); in res_to_bin_dialog()
1598 windres_put_16 (wrbfd, (dialogex != 0 ? bdx.off : bd.off), c); in res_to_bin_dialog()
1605 return off; in res_to_bin_dialog()
1610 res_to_bin_fontdir (windres_bfd *wrbfd, rc_uint_type off, const rc_fontdir *fontdirs) in res_to_bin_fontdir() argument
1616 start = off; in res_to_bin_fontdir()
1617 off += 2; in res_to_bin_fontdir()
1625 set_windres_bfd_content (wrbfd, d, off, 2); in res_to_bin_fontdir()
1627 set_windres_bfd_content (wrbfd, fd->data, off + 2, fd->length); in res_to_bin_fontdir()
1629 off += (rc_uint_type) fd->length + 2; in res_to_bin_fontdir()
1638 return off; in res_to_bin_fontdir()
1644 res_to_bin_group_icon (windres_bfd *wrbfd, rc_uint_type off, const rc_group_icon *group_icons) in res_to_bin_group_icon() argument
1651 start = off; in res_to_bin_group_icon()
1652 off += BIN_GROUP_ICON_SIZE; in res_to_bin_group_icon()
1668 set_windres_bfd_content (wrbfd, &bgii, off, BIN_GROUP_ICON_ITEM_SIZE); in res_to_bin_group_icon()
1670 off += BIN_GROUP_ICON_ITEM_SIZE; in res_to_bin_group_icon()
1680 return off; in res_to_bin_group_icon()
1686 res_to_bin_menu (windres_bfd *wrbfd, rc_uint_type off, const rc_menu *menu) in res_to_bin_menu() argument
1699 set_windres_bfd_content (wrbfd, &bm, off, BIN_MENU_SIZE); in res_to_bin_menu()
1707 set_windres_bfd_content (wrbfd, &bm, off, BIN_MENUEX_SIZE); in res_to_bin_menu()
1710 off += (menuex != 0 ? BIN_MENUEX_SIZE : BIN_MENU_SIZE); in res_to_bin_menu()
1713 off = res_to_bin_menuitems (wrbfd, off, menu->items); in res_to_bin_menu()
1717 off = res_to_bin_menuexitems (wrbfd, off, menu->items); in res_to_bin_menu()
1719 return off; in res_to_bin_menu()
1725 res_to_bin_menuitems (windres_bfd *wrbfd, rc_uint_type off, const rc_menuitem *items) in res_to_bin_menuitems() argument
1745 set_windres_bfd_content (wrbfd, &bmi, off, in res_to_bin_menuitems()
1749 off += (mi->popup == NULL ? BIN_MENUITEM_SIZE : BIN_MENUITEM_POPUP_SIZE); in res_to_bin_menuitems()
1751 off = unicode_to_bin (wrbfd, off, mi->text); in res_to_bin_menuitems()
1755 off = res_to_bin_menuitems (wrbfd, off, mi->popup); in res_to_bin_menuitems()
1758 return off; in res_to_bin_menuitems()
1764 res_to_bin_menuexitems (windres_bfd *wrbfd, rc_uint_type off, const rc_menuitem *items) in res_to_bin_menuexitems() argument
1766 rc_uint_type off_delta = off; in res_to_bin_menuexitems()
1774 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_menuexitems()
1788 set_windres_bfd_content (wrbfd, &bmi, off, BIN_MENUITEMEX_SIZE); in res_to_bin_menuexitems()
1790 off += BIN_MENUITEMEX_SIZE; in res_to_bin_menuexitems()
1792 off = unicode_to_bin (wrbfd, off, mi->text); in res_to_bin_menuexitems()
1798 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_menuexitems()
1803 set_windres_bfd_content (wrbfd, help, off, 4); in res_to_bin_menuexitems()
1805 off += 4; in res_to_bin_menuexitems()
1806 off = res_to_bin_menuexitems (wrbfd, off, mi->popup); in res_to_bin_menuexitems()
1809 return off; in res_to_bin_menuexitems()
1817 res_to_bin_rcdata (windres_bfd *wrbfd, rc_uint_type off, const rc_rcdata_item *items) in res_to_bin_rcdata() argument
1872 set_windres_bfd_content (wrbfd, hp, off, len); in res_to_bin_rcdata()
1874 off += len; in res_to_bin_rcdata()
1876 return off; in res_to_bin_rcdata()
1882 res_to_bin_stringtable (windres_bfd *wrbfd, rc_uint_type off, in res_to_bin_stringtable() argument
1907 set_windres_bfd_content (wrbfd, hp, off, length); in res_to_bin_stringtable()
1909 off += length; in res_to_bin_stringtable()
1911 return off; in res_to_bin_stringtable()
1918 string_to_unicode_bin (windres_bfd *wrbfd, rc_uint_type off, const char *s) in string_to_unicode_bin() argument
1934 set_windres_bfd_content (wrbfd, hp, off, (len + 1) * sizeof (unichar)); in string_to_unicode_bin()
1936 off += (rc_uint_type) ((len + 1) * sizeof (unichar)); in string_to_unicode_bin()
1937 return off; in string_to_unicode_bin()
1941 res_to_bin_toolbar (windres_bfd *wrbfd, rc_uint_type off, rc_toolbar *tb) in res_to_bin_toolbar() argument
1949 set_windres_bfd_content (wrbfd, &bt, off, BIN_TOOLBAR_SIZE); in res_to_bin_toolbar()
1964 set_windres_bfd_content (wrbfd, ids, off + BIN_TOOLBAR_SIZE, i); in res_to_bin_toolbar()
1967 off += BIN_TOOLBAR_SIZE + tb->nitems * 4; in res_to_bin_toolbar()
1969 return off; in res_to_bin_toolbar()
1975 res_to_bin_versioninfo (windres_bfd *wrbfd, rc_uint_type off, in res_to_bin_versioninfo() argument
1978 rc_uint_type off_delta = off; in res_to_bin_versioninfo()
1983 start = off; in res_to_bin_versioninfo()
1984 off += BIN_VERSIONINFO_SIZE; in res_to_bin_versioninfo()
1985 off = string_to_unicode_bin (wrbfd, off, "VS_VERSION_INFO"); in res_to_bin_versioninfo()
1986 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2009 set_windres_bfd_content (wrbfd, &bfv, off, BIN_FIXED_VERSIONINFO_SIZE); in res_to_bin_versioninfo()
2011 off += BIN_FIXED_VERSIONINFO_SIZE; in res_to_bin_versioninfo()
2019 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2021 bv_off = off; in res_to_bin_versioninfo()
2023 off += BIN_VER_INFO_SIZE; in res_to_bin_versioninfo()
2033 off = string_to_unicode_bin (wrbfd, off, "StringFileInfo"); in res_to_bin_versioninfo()
2036 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2044 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2046 vst_off = off; in res_to_bin_versioninfo()
2047 off += BIN_VER_INFO_SIZE; in res_to_bin_versioninfo()
2049 off = unicode_to_bin (wrbfd, off, vst->language); in res_to_bin_versioninfo()
2056 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2058 vs_off = off; in res_to_bin_versioninfo()
2059 off += BIN_VER_INFO_SIZE; in res_to_bin_versioninfo()
2061 off = unicode_to_bin (wrbfd, off, vs->key); in res_to_bin_versioninfo()
2063 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2065 str_off = off; in res_to_bin_versioninfo()
2066 off = unicode_to_bin (wrbfd, off, vs->value); in res_to_bin_versioninfo()
2070 windres_put_16 (wrbfd, bvs.size, off - vs_off); in res_to_bin_versioninfo()
2071 windres_put_16 (wrbfd, bvs.sig1, (off - str_off) / 2); in res_to_bin_versioninfo()
2080 windres_put_16 (wrbfd, bvst.size, off - vst_off); in res_to_bin_versioninfo()
2096 off = string_to_unicode_bin (wrbfd, off, "VarFileInfo"); in res_to_bin_versioninfo()
2098 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2100 vvd_off = off; in res_to_bin_versioninfo()
2101 off += BIN_VER_INFO_SIZE; in res_to_bin_versioninfo()
2103 off = unicode_to_bin (wrbfd, off, vi->u.var.key); in res_to_bin_versioninfo()
2105 off += (4 - ((off - off_delta) & 3)) & 3; in res_to_bin_versioninfo()
2107 vvvd_off = off; in res_to_bin_versioninfo()
2117 set_windres_bfd_content (wrbfd, vvsd, off, 4); in res_to_bin_versioninfo()
2119 off += 4; in res_to_bin_versioninfo()
2123 windres_put_16 (wrbfd, bvvd.size, off - vvd_off); in res_to_bin_versioninfo()
2124 windres_put_16 (wrbfd, bvvd.sig1, off - vvvd_off); in res_to_bin_versioninfo()
2136 windres_put_16 (wrbfd, bv.size, off - bv_off); in res_to_bin_versioninfo()
2146 windres_put_16 (wrbfd, bvi.size, off - start); in res_to_bin_versioninfo()
2153 return off; in res_to_bin_versioninfo()
2159 res_to_bin_generic (windres_bfd *wrbfd, rc_uint_type off, rc_uint_type length, in res_to_bin_generic() argument
2163 set_windres_bfd_content (wrbfd, data, off, length); in res_to_bin_generic()
2164 return off + (rc_uint_type) length; in res_to_bin_generic()