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