* Set the length of this list. * @param The length of the list. */
| 1815 | * @param The length of the list. |
| 1816 | */ |
| 1817 | void SlSetStructListLength(size_t length) |
| 1818 | { |
| 1819 | /* Automatically calculate the length? */ |
| 1820 | if (_sl.need_length != NL_NONE) { |
| 1821 | SlSetLength(SlGetArrayLength(length)); |
| 1822 | if (_sl.need_length == NL_CALCLENGTH) return; |
| 1823 | } |
| 1824 | |
| 1825 | SlWriteArrayLength(length); |
| 1826 | } |
| 1827 | |
| 1828 | /** |
| 1829 | * Get the length of this list; if it exceeds the limit, error out. |