binary_serialization.hpp 925 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BHO_MYSQL_IMPL_INTERNAL_PROTOCOL_BINARY_SERIALIZATION_HPP
  8. #define BHO_MYSQL_IMPL_INTERNAL_PROTOCOL_BINARY_SERIALIZATION_HPP
  9. #include <asio2/bho/mysql/field_view.hpp>
  10. #include <asio2/bho/mysql/detail/config.hpp>
  11. #include <asio2/bho/mysql/impl/internal/protocol/serialization.hpp>
  12. namespace bho {
  13. namespace mysql {
  14. namespace detail {
  15. BHO_MYSQL_DECL
  16. std::size_t get_size(field_view input) noexcept;
  17. BHO_MYSQL_DECL
  18. void serialize(serialization_context& ctx, field_view input) noexcept;
  19. } // namespace detail
  20. } // namespace mysql
  21. } // namespace bho
  22. #ifdef BHO_MYSQL_HEADER_ONLY
  23. #include <asio2/bho/mysql/impl/internal/protocol/binary_serialization.ipp>
  24. #endif
  25. #endif