Lines Matching refs:length
21 void Blob::Init(uint8_t *blob, unsigned int length)
24 this->raw_ = reinterpret_cast<uint8_t *>(malloc(length));
28 this->length_ = length;
29 if (memcpy_s(raw_, length, blob, length) != EOK) {
30 HILOG_FATAL("Blob constructor(length) memcpy_s failed");
66 unsigned int length = static_cast<unsigned int>(end - start);
67 length = blob->length_ > length ? length : blob->length_;
68 this->raw_ = reinterpret_cast<uint8_t *>(malloc(length));
72 this->length_ = length;
78 if (memcpy_s(this->raw_, length, blob->raw_ + start, length) != EOK) {
86 if (memcpy_s(raw_, length, blob->raw_ + blob->length_ + start, length) != EOK) {
116 void Blob::ReadBytes(uint8_t *data, int length)
122 if (memcpy_s(data, length, raw_, length) != EOK) {