Last change
on this file since 106 was
81,
checked in by rosiere, 17 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
454 bytes
|
Line | |
---|
1 | #include "../include/Data.h" |
---|
2 | |
---|
3 | namespace environment { |
---|
4 | namespace data { |
---|
5 | |
---|
6 | bool Data::read (uint32_t address, uint32_t size, char * & data_dest) |
---|
7 | { |
---|
8 | uint32_t num_seg = 0; |
---|
9 | bool res = false; |
---|
10 | |
---|
11 | // Scan all segment |
---|
12 | for (num_seg = 0; num_seg < nb_seg; num_seg ++) |
---|
13 | if (segment[num_seg]->test (address,size) == true) |
---|
14 | { |
---|
15 | segment[num_seg]->read (address,size,data_dest); |
---|
16 | res = true; |
---|
17 | break; |
---|
18 | } |
---|
19 | |
---|
20 | return res; |
---|
21 | } |
---|
22 | |
---|
23 | |
---|
24 | }; |
---|
25 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.