Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/gfx/ots/src/cvar.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright (c) 2018 The OTS Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef OTS_CVAR_H_
6
#define OTS_CVAR_H_
7
8
#include "ots.h"
9
10
namespace ots {
11
12
// -----------------------------------------------------------------------------
13
// OpenTypeCVAR Interface
14
// -----------------------------------------------------------------------------
15
16
class OpenTypeCVAR : public Table {
17
 public:
18
  explicit OpenTypeCVAR(Font* font, uint32_t tag)
19
0
      : Table(font, tag, tag) { }
20
21
  bool Parse(const uint8_t* data, size_t length);
22
  bool Serialize(OTSStream* out);
23
24
 private:
25
  const uint8_t *m_data;
26
  size_t m_length;
27
};
28
29
}  // namespace ots
30
31
#endif  // OTS_CVAR_H_