Lines Matching refs:storage

46 storage::Status EncodeObject(const Object& object, Blob* blob) {  in EncodeObject()
53 return storage::Status::kStorageError; in EncodeObject()
55 return storage::Status::kSuccess; in EncodeObject()
67 storage::Status DecodeObject(const Blob& blob, Object* object) { in DecodeObject()
74 return storage::Status::kStorageError; in DecodeObject()
76 return storage::Status::kSuccess; in DecodeObject()
99 storage::Status LoadHeader(NvramHeader* header) { in LoadHeader()
101 storage::Status status = storage::LoadHeader(&blob); in LoadHeader()
102 if (status != storage::Status::kSuccess) { in LoadHeader()
108 storage::Status StoreHeader(const NvramHeader& header) { in StoreHeader()
110 storage::Status status = EncodeObject<kHeaderMagic>(header, &blob); in StoreHeader()
111 if (status != storage::Status::kSuccess) { in StoreHeader()
114 return storage::StoreHeader(blob); in StoreHeader()
117 storage::Status LoadSpace(uint32_t index, NvramSpace* space) { in LoadSpace()
119 storage::Status status = storage::LoadSpace(index, &blob); in LoadSpace()
120 if (status != storage::Status::kSuccess) { in LoadSpace()
126 storage::Status StoreSpace(uint32_t index, const NvramSpace& space) { in StoreSpace()
128 storage::Status status = EncodeObject<kSpaceMagic>(space, &blob); in StoreSpace()
129 if (status != storage::Status::kSuccess) { in StoreSpace()
132 return storage::StoreSpace(index, blob); in StoreSpace()
135 storage::Status DeleteSpace(uint32_t index) { in DeleteSpace()
136 return storage::DeleteSpace(index); in DeleteSpace()