size_t SkFILEStream::read(void* buffer, size_t size) { if (fFILE) { if (buffer == NULL && size == 0) { // special signature, they want the total size return sk_fgetsize(fFILE); } else { return sk_fread(buffer, size, fFILE); } } return 0; }
size_t SkFILEStream::read(void* buffer, size_t size) { if (fFILE) { return sk_fread(buffer, size, fFILE); } return 0; }