diff options
| author | Stefan Boberg <[email protected]> | 2025-03-06 17:27:59 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-03-06 17:27:59 +0100 |
| commit | 66e5d1f4e288e0c32f854ebe3b63584b42b83554 (patch) | |
| tree | d67e9d358419b5baccd429d54988414e0d7cd7a6 /src/zencore/compactbinaryjson.cpp | |
| parent | reduced memory churn using fixed_xxx containers (#236) (diff) | |
| download | zen-66e5d1f4e288e0c32f854ebe3b63584b42b83554.tar.xz zen-66e5d1f4e288e0c32f854ebe3b63584b42b83554.zip | |
switched std::vector -> eastl::vector
Diffstat (limited to 'src/zencore/compactbinaryjson.cpp')
| -rw-r--r-- | src/zencore/compactbinaryjson.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zencore/compactbinaryjson.cpp b/src/zencore/compactbinaryjson.cpp index d8c8a8584..ac642d30e 100644 --- a/src/zencore/compactbinaryjson.cpp +++ b/src/zencore/compactbinaryjson.cpp @@ -10,8 +10,8 @@ #include <zencore/string.h> #include <zencore/testing.h> +#include <EASTL/vector.h> #include <fmt/format.h> -#include <vector> ZEN_THIRD_PARTY_INCLUDES_START #include <json11.hpp> @@ -319,8 +319,8 @@ CompactBinaryToJson(const CbArrayView& Array, StringBuilderBase& Builder) void CompactBinaryToJson(MemoryView Data, StringBuilderBase& InBuilder) { - std::vector<CbFieldView> Fields = ReadCompactBinaryStream(Data); - CbJsonWriter Writer(InBuilder); + eastl::vector<CbFieldView> Fields = ReadCompactBinaryStream(Data); + CbJsonWriter Writer(InBuilder); if (!Fields.empty()) { if (Fields.size() == 1) @@ -616,7 +616,7 @@ TEST_CASE("uson.json") SUBCASE("stream") { - const auto MakeObject = [&](std::string_view Name, const std::vector<int>& Fields) -> CbObject { + const auto MakeObject = [&](std::string_view Name, const eastl::vector<int>& Fields) -> CbObject { CbWriter Writer; Writer.SetName(Name); Writer.BeginObject(); @@ -628,7 +628,7 @@ TEST_CASE("uson.json") return Writer.Save().AsObject(); }; - std::vector<uint8_t> Buffer; + eastl::vector<uint8_t> Buffer; auto AppendToBuffer = [&](const void* Data, size_t Count) { const uint8_t* AppendBytes = reinterpret_cast<const uint8_t*>(Data); |