/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/inspector_protocol/crdtp/test_string_traits.h
21 строка
640 B
Chengzhong Wu
deps: move inspector_protocol to deps
27 янв 2025, 02:20
27 янв 2025, 02:20
0aa5874
Код
Авторство
О чём код?
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CRDTP_TEST_STRING_TRAITS_H_ #include "protocol_core.h" namespace crdtp { // Either real string traits or dummy string traits are going to be used // depending on whether this is built standalone or with embedder. template <> struct ProtocolTypeTraits<std::string> { static bool Deserialize(DeserializerState* state, std::string* value); static void Serialize(const std::string& value, std::vector<uint8_t>* bytes); }; } // namespace crdtp #endif // CRDTP_TEST_STRING_TRAITS_H_