aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/packageformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/packageformat.cpp')
-rw-r--r--src/zenhttp/packageformat.cpp12
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)
{