1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2012 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ci#ifndef SkOTTable_loca_DEFINED
9cb93a386Sopenharmony_ci#define SkOTTable_loca_DEFINED
10cb93a386Sopenharmony_ci
11cb93a386Sopenharmony_ci#include "src/core/SkEndian.h"
12cb93a386Sopenharmony_ci#include "src/sfnt/SkOTTableTypes.h"
13cb93a386Sopenharmony_ci
14cb93a386Sopenharmony_ci#pragma pack(push, 1)
15cb93a386Sopenharmony_ci
16cb93a386Sopenharmony_cistruct SkOTTableIndexToLocation {
17cb93a386Sopenharmony_ci    static const SK_OT_CHAR TAG0 = 'l';
18cb93a386Sopenharmony_ci    static const SK_OT_CHAR TAG1 = 'o';
19cb93a386Sopenharmony_ci    static const SK_OT_CHAR TAG2 = 'c';
20cb93a386Sopenharmony_ci    static const SK_OT_CHAR TAG3 = 'a';
21cb93a386Sopenharmony_ci    static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableIndexToLocation>::value;
22cb93a386Sopenharmony_ci
23cb93a386Sopenharmony_ci    union Offsets {
24cb93a386Sopenharmony_ci        SK_OT_USHORT shortOffset[1];
25cb93a386Sopenharmony_ci        SK_OT_ULONG longOffset[1];
26cb93a386Sopenharmony_ci    } offsets;
27cb93a386Sopenharmony_ci};
28cb93a386Sopenharmony_ci
29cb93a386Sopenharmony_ci#pragma pack(pop)
30cb93a386Sopenharmony_ci
31cb93a386Sopenharmony_ci#endif
32