Lines Matching refs:contents
267 if (!space.contents.Resize(request.size)) { in CreateSpace()
271 memset(space.contents.data(), 0, request.size); in CreateSpace()
303 response->size = space_record.persistent.contents.size(); in GetSpaceInfo()
412 Blob& contents = space_record.persistent.contents; in WriteSpace() local
416 if (!sha256_input.Resize(contents.size() + request.buffer.size())) { in WriteSpace()
419 memcpy(sha256_input.data(), contents.data(), contents.size()); in WriteSpace()
420 memcpy(sha256_input.data() + contents.size(), request.buffer.data(), in WriteSpace()
424 crypto::SHA256(sha256_input.data(), sha256_input.size(), contents.data(), in WriteSpace()
425 contents.size()); in WriteSpace()
427 if (contents.size() < request.buffer.size()) { in WriteSpace()
431 memcpy(contents.data(), request.buffer.data(), request.buffer.size()); in WriteSpace()
432 memset(contents.data() + request.buffer.size(), 0x0, in WriteSpace()
433 contents.size() - request.buffer.size()); in WriteSpace()
458 if (!response->buffer.Assign(space_record.persistent.contents.data(), in ReadSpace()
459 space_record.persistent.contents.size())) { in ReadSpace()