blob: dbbebb3486d416c9fffa74cc22a52ec8fde4f59a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|