mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Copy constructor on LaneDescription
This commit is contained in:
parent
2f3415de8c
commit
5ef7347ca3
2 changed files with 10 additions and 0 deletions
|
@ -16,6 +16,15 @@
|
|||
#include "transform.hh"
|
||||
#include "funcdata.hh"
|
||||
|
||||
/// \param op2 is the lane description to copy from
|
||||
LaneDescription::LaneDescription(const LaneDescription &op2)
|
||||
|
||||
{
|
||||
wholeSize = op2.wholeSize;
|
||||
laneSize = op2.laneSize;
|
||||
lanePosition = op2.lanePosition;
|
||||
}
|
||||
|
||||
/// Create lanes that are all the same size
|
||||
/// \param origSize is the size of the whole in bytes
|
||||
/// \param sz is the size of a lane in bytes
|
||||
|
|
|
@ -94,6 +94,7 @@ class LaneDescription {
|
|||
vector<int4> laneSize; ///< Size of lanes in bytes
|
||||
vector<int4> lanePosition; ///< Significance positions of lanes in bytes
|
||||
public:
|
||||
LaneDescription(const LaneDescription &op2); ///< Copy constructor
|
||||
LaneDescription(int4 origSize,int4 sz); ///< Construct uniform lanes
|
||||
LaneDescription(int4 origSize,int4 lo,int4 hi); ///< Construct two lanes of arbitrary size
|
||||
int4 getNumLanes(void) const { return laneSize.size(); } ///< Get the total number of lanes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue