Lines Matching defs:Block
37 // override in subclass if you represent a memory block
600 struct SkDynamicMemoryWStream::Block {
601 Block* fNext;
640 Block* block = fHead;
642 while (block != NULL) {
643 Block* next = block->fNext;
644 sk_free(block);
645 block = next;
670 Block* block = (Block*)sk_malloc_throw(sizeof(Block) + size);
671 block->init(size);
672 block->append(buffer, count);
675 fTail->fNext = block;
677 fHead = fTail = block;
678 fTail = block;
691 Block* block = fHead;
692 while (block != NULL) {
693 size_t size = block->written();
696 memcpy(block->start() + offset, buffer, part);
703 block = block->fNext;
712 Block* block = fHead;
713 while (block != NULL) {
714 size_t size = block->written();
717 memcpy(buffer, block->start() + offset, part);
724 block = block->fNext;
734 Block* block = fHead;
736 while (block != NULL) {
737 size_t size = block->written();
738 memcpy(dst, block->start(), size);
740 block = block->fNext;