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

bundle_marker.h « apphost « cli « corehost « installer « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5065fdac19be88836951f32235fd130e1dcd27d (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
// 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 __BUNDLE_MARKER_H__
#define __BUNDLE_MARKER_H__

#include <cstdint>

#pragma pack(push, 1)
    union bundle_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 // __BUNDLE_MARKER_H__