#include "common/Units.hpp"
#include "common/DataTypes.hpp"
#include "common/format/Format.hpp"
#include "TableTypes.hpp"
Go to the source code of this file.
|
| template<typename T > |
| unsigned long | geos::basicSerialization::sizeOfPrimitive (T) |
| |
| unsigned long | geos::basicSerialization::sizeOfString (string const &str) |
| | Returns the size of a string (header size + content). More...
|
| |
| void | geos::basicSerialization::serializeString (string const &data, stdVector< buffer_unit_type > &out) |
| | Write a string value to the buffer. More...
|
| |
| void | geos::basicSerialization::deserializeString (string &str, buffer_unit_type const *&ptr, buffer_unit_type const *end) |
| | Reads a string value from the buffer and advances the pointer. More...
|
| |
| bool | geos::tableDataSorting::positiveNumberStringComp (string_view a, string_view b) |
| | Compare two string number string by in ascending numerical order. More...
|
| |
|
| template<typename T , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true> |
| void | geos::basicSerialization::serializePrimitive (T const data, stdVector< buffer_unit_type > &out) |
| | Write the data to the buffer. More...
|
| |
| template<typename T , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true> |
| void | geos::basicSerialization::deserializePrimitive (T &data, buffer_unit_type const *&ptr, buffer_unit_type const *end) |
| | Reads the data from the buffer and advances the pointer. More...
|
| |
|
| template<typename T > |
| constexpr bool | geos::isCellType = std::is_same_v< T, CellType > |
| | Trait to check is the args is a special type of cell. More...
|
| |
◆ deserializePrimitive()
template<typename T , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true>
Reads the data from the buffer and advances the pointer.
- Template Parameters
-
| T | The type of the data who must be trivially copiable |
- Parameters
-
| data | Destination variable. |
| ptr | Current read pointer (advanced by sizeof(string)). |
| end | Safety: maximum buffer limit. |
Definition at line 412 of file TableData.hpp.
◆ deserializeString()
Reads a string value from the buffer and advances the pointer.
- Parameters
-
| str | Destination string variable. |
| ptr | Current read pointer (advanced by sizeof(string)). |
| end | Safety: maximum buffer limit. |
◆ positiveNumberStringComp()
Compare two string number string by in ascending numerical order.
- Parameters
-
| a | The string to compare |
| b | The string to compare |
- Returns
- True if a is greater than b
◆ serializePrimitive()
template<typename T , std::enable_if_t< std::is_trivially_copyable_v< T >, bool > = true>
Write the data to the buffer.
- Template Parameters
-
| T | The type of the data who must be trivially copiable |
- Parameters
-
| data | Destination variable. |
| out | The buffer to write in. |
Definition at line 402 of file TableData.hpp.
◆ serializeString()
Write a string value to the buffer.
- Parameters
-
| data | String variable. |
| out | The buffer to write in. |
◆ sizeOfPrimitive()
template<typename T >
| unsigned long geos::basicSerialization::sizeOfPrimitive |
( |
T |
| ) |
|
|
inline |
- Template Parameters
-
- Returns
- Returns the size occupied by a trivial type in memory.
Definition at line 335 of file TableData.hpp.
◆ sizeOfString()
| unsigned long geos::basicSerialization::sizeOfString |
( |
string const & |
str | ) |
|
|
inline |
Returns the size of a string (header size + content).
- Parameters
-
- Returns
- Size in bytes.
Definition at line 343 of file TableData.hpp.