Lines Matching refs:Dir
35 SkDataTable::SkDataTable(const Dir* dir, int count, FreeProc proc, void* ctx) {
40 fU.fDir = dir;
99 size_t bufferSize = count * sizeof(Dir) + dataSize;
102 Dir* dir = (Dir*)buffer;
103 char* elem = (char*)(dir + count);
105 dir[i].fPtr = elem;
106 dir[i].fSize = sizes[i];
111 return new SkDataTable(dir, count, malloc_freeproc, buffer);
162 SkDataTable::Dir* dir = fDir.append();
163 dir->fPtr = dst;
164 dir->fSize = size;
173 // Copy the dir into the heap;
174 void* dir = fHeap->alloc(count * sizeof(SkDataTable::Dir),
176 memcpy(dir, fDir.begin(), count * sizeof(SkDataTable::Dir));
178 SkDataTable* table = new SkDataTable((SkDataTable::Dir*)dir, count, chunkalloc_freeproc, fHeap);