size_t SkFILEStream::getPosition() const { return sk_ftell(fFILE); }
size_t SkFILEWStream::bytesWritten() const { return sk_ftell(fFILE); }
SkFILEStream::SkFILEStream(FILE* file) : SkFILEStream(std::shared_ptr<FILE>(file, sk_fclose), file ? sk_fgetsize(file) : 0, file ? sk_ftell(file) : 0) { }