Lines Matching defs:SkFILEStream
159 SkFILEStream::SkFILEStream(std::shared_ptr<FILE> file, size_t size,
167 SkFILEStream::SkFILEStream(std::shared_ptr<FILE> file, size_t size, size_t offset)
168 : SkFILEStream(std::move(file), size, offset, offset)
171 SkFILEStream::SkFILEStream(FILE* file)
172 : SkFILEStream(std::shared_ptr<FILE>(file, sk_fclose),
178 SkFILEStream::SkFILEStream(const char path[])
179 : SkFILEStream(path ? sk_fopen(path, kRead_SkFILE_Flag) : nullptr)
182 SkFILEStream::~SkFILEStream() {
186 void SkFILEStream::close() {
192 size_t SkFILEStream::read(void* buffer, size_t size) {
207 bool SkFILEStream::isAtEnd() const {
214 bool SkFILEStream::rewind() {
220 SkStreamAsset* SkFILEStream::duplicate() const {
222 return new SkFILEStream(fFILE, fSize, 0, fOriginalOffset);
225 size_t SkFILEStream::getPosition() const {
229 bool SkFILEStream::seek(size_t position) {
234 bool SkFILEStream::move(long offset) {
238 SkStreamAsset* SkFILEStream::fork() const {
239 return new SkFILEStream(fFILE, fSize, fOffset, fOriginalOffset);
242 size_t SkFILEStream::getLength() const {
810 auto stream = skstd::make_unique<SkFILEStream>(path);