diff options
Diffstat (limited to 'zenhttp/httpshared.h')
| -rw-r--r-- | zenhttp/httpshared.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/zenhttp/httpshared.h b/zenhttp/httpshared.h new file mode 100644 index 000000000..dbbebb348 --- /dev/null +++ b/zenhttp/httpshared.h @@ -0,0 +1,32 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <zencore/iohash.h> + +namespace zen { + +class IoBuffer; +class CbPackage; + +struct CbPackageHeader +{ + uint32_t HeaderMagic; + uint32_t AttachmentCount; + uint32_t Reserved1; + uint32_t Reserved2; +}; + +static constinit uint32_t kCbPkgMagic = 0xaa77aacc; + +struct CbAttachmentEntry +{ + uint64_t AttachmentSize; + uint32_t Reserved1; + IoHash AttachmentHash; +}; + +std::vector<IoBuffer> FormatPackageMessage(const CbPackage& Data); +CbPackage ParsePackageMessage(IoBuffer Payload); + +} // namespace zen |