Lines Matching refs:block
484 struct SkDynamicMemoryWStream::Block {
485 Block* fNext;
524 Block* block = fHead;
526 while (block != NULL) {
527 Block* next = block->fNext;
528 sk_free(block);
529 block = next;
554 Block* block = (Block*)sk_malloc_throw(sizeof(Block) + size);
555 block->init(size);
556 block->append(buffer, count);
559 fTail->fNext = block;
561 fHead = fTail = block;
562 fTail = block;
575 Block* block = fHead;
576 while (block != NULL) {
577 size_t size = block->written();
580 memcpy(block->start() + offset, buffer, part);
587 block = block->fNext;
596 Block* block = fHead;
597 while (block != NULL) {
598 size_t size = block->written();
601 memcpy(buffer, block->start() + offset, part);
608 block = block->fNext;
618 Block* block = fHead;
620 while (block != NULL) {
621 size_t size = block->written();
622 memcpy(dst, block->start(), size);
624 block = block->fNext;
658 explicit SkBlockMemoryRefCnt(SkDynamicMemoryWStream::Block* head) : fHead(head) { }
661 SkDynamicMemoryWStream::Block* block = fHead;
662 while (block != NULL) {
663 SkDynamicMemoryWStream::Block* next = block->fNext;
664 sk_free(block);
665 block = next;
669 SkDynamicMemoryWStream::Block* const fHead;
674 SkBlockMemoryStream(SkDynamicMemoryWStream::Block* head, size_t size)
734 // If possible, move backward within the current block.
770 SkDynamicMemoryWStream::Block const * fCurrent;