| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium 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 CONTENT_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 #include <string> |
| 11 |
| 12 #include "content/common/content_export.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // GetFontTable loads a specified font table from an open SFNT file. |
| 17 // fd: a file descriptor to the SFNT file. The position doesn't matter. |
| 18 // table_tag: the table tag in *big-endian* format, or 0 for the entire font. |
| 19 // offset: offset into the table or entire font where loading should start. |
| 20 // The offset must be between 0 and 1 GB - 1. |
| 21 // output: a buffer of size output_length that gets the data. can be 0, in |
| 22 // which case output_length will be set to the required size in bytes. |
| 23 // output_length: size of output, if it's not 0. |
| 24 // |
| 25 // returns: true on success. |
| 26 CONTENT_EXPORT bool GetFontTable(int fd, |
| 27 uint32_t table_tag, |
| 28 off_t offset, |
| 29 uint8_t* output, |
| 30 size_t* output_length); |
| 31 |
| 32 }; // namespace content |
| 33 |
| 34 #endif // CONTENT_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
| OLD | NEW |