From: Alex P. <pes...@ma...> - 2022-09-07 16:26:47
|
On 9/7/22 19:18, Dimitry Sibiryakov wrote: > Hello All. > > isc_info_truncated is a terminal item which is NOT followed by two > bytes length, right? > Not sure what you mean by 'terminal item', but it may be followed by isc_info_end if that fits into buffer. What about two bytes length - it's single-byte item not followed by anything. see how it's added: bool Service::ck_space_for_numeric(UCHAR*& info, const UCHAR* const end) { if ((info + 1 + sizeof(ULONG)) > end) { if (info < end) *info++ = isc_info_truncated; if (info < end) *info++ = isc_info_end; return false; } return true; } |