Lines Matching refs:this
116 accessBlobData(this) = nullptr; in TKeymasterBlob()
117 accessBlobSize(this) = 0; in TKeymasterBlob()
121 accessBlobSize(this) = 0; in TKeymasterBlob()
122 accessBlobData(this) = dup_buffer(data, size); in TKeymasterBlob()
123 if (accessBlobData(this)) accessBlobSize(this) = size; in TKeymasterBlob()
127 accessBlobSize(this) = 0; in TKeymasterBlob()
128 accessBlobData(this) = new (std::nothrow) uint8_t[size]; in TKeymasterBlob()
129 if (accessBlobData(this)) accessBlobSize(this) = size; in TKeymasterBlob()
133 accessBlobSize(this) = 0; in TKeymasterBlob()
134 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
135 if (accessBlobData(this)) accessBlobSize(this) = accessBlobSize(&blob); in TKeymasterBlob()
139 accessBlobSize(this) = 0; in TKeymasterBlob()
140 accessBlobData(this) = dup_buffer(data, N); in TKeymasterBlob()
141 if (accessBlobData(this)) accessBlobSize(this) = N; in TKeymasterBlob()
145 accessBlobSize(this) = 0; in TKeymasterBlob()
146 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob)); in TKeymasterBlob()
147 if (accessBlobData(this)) accessBlobSize(this) = accessBlobSize(&blob); in TKeymasterBlob()
151 accessBlobSize(this) = accessBlobSize(&rhs); in TKeymasterBlob()
152 accessBlobData(this) = accessBlobData(&rhs); in TKeymasterBlob()
158 if (this != &blob) {
160 accessBlobData(this) = dup_buffer(accessBlobData(&blob), accessBlobSize(&blob));
161 accessBlobSize(this) = accessBlobSize(&blob);
163 return *this;
167 if (this != &rhs) {
169 accessBlobSize(this) = accessBlobSize(&rhs);
170 accessBlobData(this) = accessBlobData(&rhs);
174 return *this;
179 const uint8_t* begin() const { return accessBlobData(this); } in begin()
180 const uint8_t* end() const { return accessBlobData(this) + accessBlobSize(this); } in end()
182 size_t size() const { return accessBlobSize(this); } in size()
185 if (accessBlobSize(this)) { in Clear()
186 memset_s(const_cast<uint8_t*>(accessBlobData(this)), 0, accessBlobSize(this)); in Clear()
188 delete[] accessBlobData(this); in Clear()
189 accessBlobData(this) = nullptr; in Clear()
190 accessBlobSize(this) = 0; in Clear()
195 accessBlobData(this) = new (std::nothrow) uint8_t[new_size]; in Reset()
196 if (accessBlobData(this)) accessBlobSize(this) = new_size; in Reset()
197 return accessBlobData(this); in Reset()
203 uint8_t* writable_data() { return const_cast<uint8_t*>(accessBlobData(this)); } in writable_data()
206 BlobType tmp = {accessBlobData(this), accessBlobSize(this)}; in release()
207 accessBlobData(this) = nullptr; in release()
208 accessBlobSize(this) = 0; in release()
212 size_t SerializedSize() const { return sizeof(uint32_t) + accessBlobSize(this); } in SerializedSize()
214 return append_size_and_data_to_buf(buf, end, accessBlobData(this), accessBlobSize(this)); in Serialize()
220 if (!copy_size_and_data_from_buf(buf_ptr, end, &accessBlobSize(this), &tmp)) { in Deserialize()
221 accessBlobData(this) = nullptr; in Deserialize()
222 accessBlobSize(this) = 0; in Deserialize()
225 accessBlobData(this) = tmp.release(); in Deserialize()
272 CertificateChain(CertificateChain&& other) : keymaster_cert_chain_t{} { *this = move(other); } in CertificateChain()
278 (keymaster_cert_chain_t&)(*this) = (keymaster_cert_chain_t&)(other);
280 return *this;
333 keymaster_cert_chain_t retval = *this; in release()