Welcome to mirror list, hosted at ThFree Co, Russian Federation.

marker.h « bundle « apphost « cli « corehost « installer « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52e185fbe7920d3ec86d850b477365f12bc3bca1 (plain)
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#ifndef __MARKER_H__
#define __MARKER_H__

#include <cstdint>

namespace bundle
{
#pragma pack(push, 1)
    union marker_t
    {
    public:
        uint8_t placeholder[40];
        struct
        {
            int64_t bundle_header_offset;
            uint8_t signature[32];
        } locator;

        static int64_t header_offset();
        static bool is_bundle()
        {
            return header_offset() != 0;
        }
    };
#pragma pack(pop)

}
#endif // __MARKER_H__