|
typedef struct
{
unsigned short offSet; // Start offset of idle fragments in Frame
unsigned short size; // free fragment size
} Frag;
vector <Frag> myTbl;
How do I find the maximum value of the fragment in myTbl (fragment table)? In this way, the record I want to write can be compared with the maximum value in the fragment. If it is smaller than the maximum value, it can be put in, otherwise, a new space needs to be opened for storage.
Thank you! :) |
|