#include "include/core/SkStream.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkMalloc.h"
#include "src/base/SkAutoMalloc.h"
#include "src/base/SkEndian.h"
#include "src/core/SkFontStream.h"
#include <cstdint>
struct SkSFNTHeader { … };
struct SkTTCFHeader { … };
SkSharedTTHeader;
struct SkSFNTDirEntry { … };
static bool read(SkStream* stream, void* buffer, size_t amount) { … }
static bool skip(SkStream* stream, size_t amount) { … }
static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { … }
struct SfntHeader { … };
int SkFontStream::CountTTCEntries(SkStream* stream) { … }
int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex,
SkFontTableTag tags[]) { … }
size_t SkFontStream::GetTableData(SkStream* stream, int ttcIndex,
SkFontTableTag tag,
size_t offset, size_t length, void* data) { … }