@@ -39,7 +39,7 @@ USTATUS FfsBuilder::erase(const UModelIndex & index, UByteArray & erased)
3939 }
4040 }
4141
42- erased = UByteArray (model->entire (index). size ( ), emptyByte);
42+ erased = UByteArray (model->fullSize (index), emptyByte);
4343
4444 return U_SUCCESS;
4545}
@@ -74,7 +74,7 @@ USTATUS FfsBuilder::buildCapsule(const UModelIndex & index, UByteArray & capsule
7474 // No action
7575 if (model->action (index) == Actions::NoAction) {
7676 // Use original item data
77- capsule = model->entire (index);
77+ capsule = model->full (index);
7878 return U_SUCCESS;
7979 }
8080
@@ -124,7 +124,7 @@ USTATUS FfsBuilder::buildCapsule(const UModelIndex & index, UByteArray & capsule
124124
125125 // Check size of reconstructed capsule body, it must remain the same
126126 UINT32 newSize = (UINT32)capsule.size ();
127- UINT32 oldSize = (UINT32) model->body (index). size ( );
127+ UINT32 oldSize = model->bodySize (index);
128128 if (newSize > oldSize) {
129129 msg (usprintf (" buildCapsule: new capsule size %Xh (%u) is bigger than the original %Xh (%u)" , newSize, newSize, oldSize, oldSize), index);
130130 return U_INVALID_CAPSULE;
@@ -154,7 +154,7 @@ USTATUS FfsBuilder::buildIntelImage(const UModelIndex & index, UByteArray & inte
154154
155155 // No action
156156 if (model->action (index) == Actions::NoAction) {
157- intelImage = model->entire (index);
157+ intelImage = model->full (index);
158158 return U_SUCCESS;
159159 }
160160 // Remove
@@ -165,7 +165,7 @@ USTATUS FfsBuilder::buildIntelImage(const UModelIndex & index, UByteArray & inte
165165 // Rebuild
166166 else if (model->action (index) == Actions::Rebuild) {
167167 // First child will always be descriptor for this type of image, and it's read only for now
168- intelImage = model->entire (index.model ()->index (0 , 0 , index));
168+ intelImage = model->full (index.model ()->index (0 , 0 , index));
169169
170170 // Process other regions
171171 for (int i = 1 ; i < model->rowCount (index); i++) {
@@ -179,7 +179,7 @@ USTATUS FfsBuilder::buildIntelImage(const UModelIndex & index, UByteArray & inte
179179 UINT8 type = model->type (currentRegion);
180180 if (type == Types::Padding) {
181181 // Add padding as is
182- intelImage += model->entire (currentRegion);
182+ intelImage += model->full (currentRegion);
183183 continue ;
184184 }
185185
@@ -223,7 +223,7 @@ USTATUS FfsBuilder::buildIntelImage(const UModelIndex & index, UByteArray & inte
223223
224224 // Check size of new image, it must be same as old one
225225 UINT32 newSize = (UINT32)intelImage.size ();
226- UINT32 oldSize = (UINT32) model->body (index). size ( );
226+ UINT32 oldSize = model->bodySize (index);
227227 if (newSize > oldSize) {
228228 msg (usprintf (" buildIntelImage: new image size %Xh (%u) is bigger than the original %Xh (%u)" , newSize, newSize, oldSize, oldSize), index);
229229 return U_INVALID_IMAGE;
@@ -250,7 +250,7 @@ USTATUS FfsBuilder::buildRawArea(const UModelIndex & index, UByteArray & rawArea
250250
251251 // No action required
252252 if (model->action (index) == Actions::NoAction) {
253- rawArea = model->entire (index);
253+ rawArea = model->full (index);
254254 return U_SUCCESS;
255255 }
256256 // Remove
@@ -294,7 +294,7 @@ USTATUS FfsBuilder::buildRawArea(const UModelIndex & index, UByteArray & rawArea
294294
295295 // Check size of new raw area, it must be same as original one
296296 UINT32 newSize = (UINT32)rawArea.size ();
297- UINT32 oldSize = (UINT32) model->body (index). size ( );
297+ UINT32 oldSize = model->bodySize (index);
298298 if (newSize > oldSize) {
299299 msg (usprintf (" buildRawArea: new area size %Xh (%u) is bigger than the original %Xh (%u)" , newSize, newSize, oldSize, oldSize), index);
300300 return U_INVALID_RAW_AREA;
@@ -326,7 +326,7 @@ USTATUS FfsBuilder::buildPadding(const UModelIndex & index, UByteArray & padding
326326
327327 // No action required
328328 if (model->action (index) == Actions::NoAction) {
329- padding = model->entire (index);
329+ padding = model->full (index);
330330 return U_SUCCESS;
331331 }
332332 // Remove
@@ -351,7 +351,7 @@ USTATUS FfsBuilder::buildNonUefiData(const UModelIndex & index, UByteArray & dat
351351
352352 // No action required
353353 if (model->action (index) == Actions::NoAction) {
354- data = model->entire (index);
354+ data = model->full (index);
355355 return U_SUCCESS;
356356 }
357357 // Remove
@@ -377,7 +377,7 @@ USTATUS FfsBuilder::buildFreeSpace(const UModelIndex & index, UByteArray & freeS
377377 return U_INVALID_PARAMETER;
378378
379379 // No actions possible for free space
380- freeSpace = model->entire (index);
380+ freeSpace = model->full (index);
381381 return U_SUCCESS;
382382}
383383
0 commit comments