                                     pSessionData->itemIndex++;                                 }                                  const Version sessionVersion = pSession->GetVersion();                                 LockData();                                 const NamedLoggingCategory& category = m_categories[pSessionData->itemIndex];                                 const size_t categoryNameSize = strlen(category.name) + 0;                                 QueryCategoriesDataResponsePayload::WritePayload(m_categories[pSessionData->itemIndex],                                                                                  sessionVersion,                                                                                  categoryNameSize,                                                                                  &pSessionData->scratchPayload);                                 UnlockData();                             }                         }                         else                         {                             pSessionData->state = SessionState::ReceivePayload;                         }                     }                     break;                 }                  case SessionState::SendCategories