Lines Matching refs:blobPtr

86     if (!blobPtr || blobPtr->blobId != path)  in stat()
91 meta->size = blobPtr->buffer.size(); in stat()
92 meta->blobState = blobPtr->state; in stat()
108 if (blobPtr) in open()
112 blobPtr = std::make_unique<SmbiosBlob>(session, path, flags); in open()
126 if (!blobPtr || blobPtr->sessionId != session) in write()
131 if (!(blobPtr->state & blobs::StateFlags::open_write)) in write()
153 if (newBufferSize > blobPtr->buffer.size()) in write()
155 blobPtr->buffer.resize(newBufferSize); in write()
158 std::memcpy(blobPtr->buffer.data() + offset, data.data(), data.size()); in write()
178 if (!blobPtr || blobPtr->sessionId != session) in commit()
186 if (blobPtr->state & in commit()
193 blobPtr->state &= ~blobs::StateFlags::commit_error; in commit()
202 mdrHdr.dataSize = blobPtr->buffer.size(); in commit()
210 blobPtr->state |= blobs::StateFlags::commit_error; in commit()
221 blobPtr->state |= blobs::StateFlags::commit_error; in commit()
230 smbiosFile.write(reinterpret_cast<char*>(blobPtr->buffer.data()), in commit()
233 blobPtr->state |= blobs::StateFlags::committing; in commit()
240 blobPtr->state |= blobs::StateFlags::commit_error; in commit()
246 blobPtr->state &= ~blobs::StateFlags::committing; in commit()
247 blobPtr->state |= blobs::StateFlags::commit_error; in commit()
252 blobPtr->state &= ~blobs::StateFlags::committing; in commit()
253 blobPtr->state |= blobs::StateFlags::committed; in commit()
260 if (!blobPtr || blobPtr->sessionId != session) in close()
265 blobPtr = nullptr; in close()
271 if (!blobPtr || blobPtr->sessionId != session) in stat()
276 meta->size = blobPtr->buffer.size(); in stat()
277 meta->blobState = blobPtr->state; in stat()