Lines Matching refs:SkFILEStream
155 SkFILEStream::SkFILEStream(std::shared_ptr<FILE> file, size_t size, in SkFILEStream() function in SkFILEStream
163 SkFILEStream::SkFILEStream(std::shared_ptr<FILE> file, size_t size, size_t offset) in SkFILEStream() function in SkFILEStream
164 : SkFILEStream(std::move(file), size, offset, offset) in SkFILEStream()
167 SkFILEStream::SkFILEStream(FILE* file) in SkFILEStream() function in SkFILEStream
168 : SkFILEStream(std::shared_ptr<FILE>(file, sk_fclose), in SkFILEStream()
174 SkFILEStream::SkFILEStream(const char path[]) in SkFILEStream() function in SkFILEStream
175 : SkFILEStream(path ? sk_fopen(path, kRead_SkFILE_Flag) : nullptr) in SkFILEStream()
178 SkFILEStream::~SkFILEStream() { in ~SkFILEStream()
182 void SkFILEStream::close() { in close()
188 size_t SkFILEStream::read(void* buffer, size_t size) { in read()
203 bool SkFILEStream::isAtEnd() const { in isAtEnd()
210 bool SkFILEStream::rewind() { in rewind()
215 SkStreamAsset* SkFILEStream::onDuplicate() const { in onDuplicate()
216 return new SkFILEStream(fFILE, fSize, fOriginalOffset, fOriginalOffset); in onDuplicate()
219 size_t SkFILEStream::getPosition() const { in getPosition()
224 bool SkFILEStream::seek(size_t position) { in seek()
229 bool SkFILEStream::move(long offset) { in move()
248 SkStreamAsset* SkFILEStream::onFork() const { in onFork()
249 return new SkFILEStream(fFILE, fSize, fOffset, fOriginalOffset); in onFork()
252 size_t SkFILEStream::getLength() const { in getLength()
903 auto stream = skstd::make_unique<SkFILEStream>(path); in MakeFromFile()