Lines Matching refs:to_write
132 size_t to_write) in blob_overwrite_bytes() argument
135 if (offset + to_write < offset || blob->size < offset + to_write) in blob_overwrite_bytes()
138 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_overwrite_bytes()
141 memcpy(blob->data + offset, bytes, to_write); in blob_overwrite_bytes()
147 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write) in blob_write_bytes() argument
149 if (! grow_to_fit(blob, to_write)) in blob_write_bytes()
152 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_write_bytes()
155 memcpy(blob->data + blob->size, bytes, to_write); in blob_write_bytes()
156 blob->size += to_write; in blob_write_bytes()
162 blob_reserve_bytes(struct blob *blob, size_t to_write) in blob_reserve_bytes() argument
166 if (! grow_to_fit (blob, to_write)) in blob_reserve_bytes()
170 blob->size += to_write; in blob_reserve_bytes()