diff options
| author | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
| commit | b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b (patch) | |
| tree | a511dd945c87415fb5389e6579299095e3f3afc8 /src/zenhttp/packageformat.cpp | |
| parent | switched std::vector -> eastl::vector (diff) | |
| download | zen-sb/eastl.tar.xz zen-sb/eastl.zip | |
std::span -> eastl::spansb/eastl
Diffstat (limited to 'src/zenhttp/packageformat.cpp')
| -rw-r--r-- | src/zenhttp/packageformat.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenhttp/packageformat.cpp b/src/zenhttp/packageformat.cpp index b772ba2cf..9d3608656 100644 --- a/src/zenhttp/packageformat.cpp +++ b/src/zenhttp/packageformat.cpp @@ -16,8 +16,8 @@ #include <zencore/testutils.h> #include <zencore/trace.h> +#include <EASTL/span.h> #include <EASTL/vector.h> -#include <span> #include <EASTL/fixed_vector.h> @@ -59,7 +59,7 @@ CompositeBuffer FormatPackageMessageBuffer(const CbPackage& Data, FormatFlags Flags, void* TargetProcessHandle) { auto Vec = FormatPackageMessageInternal(Data, Flags, TargetProcessHandle); - return CompositeBuffer(std::span{begin(Vec), end(Vec)}); + return CompositeBuffer(eastl::span{begin(Vec), end(Vec)}); } static void @@ -190,8 +190,8 @@ FormatPackageMessageInternal(const CbPackage& Data, FormatFlags Flags, void* Tar }); #endif // ZEN_PLATFORM_WINDOWS - const std::span<const CbAttachment>& Attachments = Data.GetAttachments(); - IoBufferVec_t ResponseBuffers; + const eastl::span<const CbAttachment>& Attachments = Data.GetAttachments(); + IoBufferVec_t ResponseBuffers; ResponseBuffers.reserve(2 + Attachments.size()); // TODO: may want to use an additional fudge factor here to avoid growing since each // attachment is likely to consist of several buffers @@ -266,7 +266,7 @@ FormatPackageMessageInternal(const CbPackage& Data, FormatFlags Flags, void* Tar .Flags = CbAttachmentEntry::kIsCompressed, .AttachmentHash = AttachmentHash}; - std::span<const SharedBuffer> Segments = Compressed.GetSegments(); + eastl::span<const SharedBuffer> Segments = Compressed.GetSegments(); ResponseBuffers.reserve(ResponseBuffers.size() + Segments.size() - 1); for (const SharedBuffer& Segment : Segments) { @@ -320,7 +320,7 @@ FormatPackageMessageInternal(const CbPackage& Data, FormatFlags Flags, void* Tar { *AttachmentInfo++ = {.PayloadSize = AttachmentBinary.GetSize(), .Flags = 0, .AttachmentHash = Attachment.GetHash()}; - std::span<const SharedBuffer> Segments = AttachmentBinary.GetSegments(); + eastl::span<const SharedBuffer> Segments = AttachmentBinary.GetSegments(); ResponseBuffers.reserve(ResponseBuffers.size() + Segments.size() - 1); for (const SharedBuffer& Segment : Segments) { |