Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
uofile05.cpp
Go to the documentation of this file.
1
7
#include <stdio.h>
8
9
#include "../clib/logfacility.h"
10
#include "../pol/uofilei.h"
11
#include "../pol/ustruct.h"
12
13
namespace
Pol
14
{
15
namespace
Core
16
{
17
void
staticsmax
()
18
{
19
unsigned
int
max = 0;
20
USTRUCT_IDX
idxrec
;
21
22
fseek(
sidxfile
, 0, SEEK_SET );
23
for
(
int
xblock = 0; xblock < 6144 / 8; ++xblock )
24
{
25
for
(
int
yblock = 0; yblock < 4096 / 8; ++yblock )
26
{
27
fread( &idxrec,
sizeof
idxrec, 1,
sidxfile
);
28
29
if
( idxrec.
length
!= 0xFFffFFffLu )
30
{
31
if
( idxrec.
length
> max )
32
{
33
max = idxrec.
length
;
34
INFO_PRINT
<<
"Max: "
<< max <<
", X="
<< xblock <<
", Y="
<< yblock <<
"\n"
;
35
}
36
}
37
}
38
}
39
}
40
}
41
}
Pol::Core::staticsmax
void staticsmax()
Definition:
uofile05.cpp:17
Pol::Core::sidxfile
FILE * sidxfile
Definition:
uofile00.cpp:22
Pol::Core::idxrec
USTRUCT_IDX idxrec
Definition:
uofile02.cpp:34
Pol::Core::USTRUCT_IDX
Definition:
ustruct.h:38
INFO_PRINT
#define INFO_PRINT
Definition:
logfacility.h:223
Pol::Core::USTRUCT_IDX::length
u32 length
Definition:
ustruct.h:41
Pol
Definition:
berror.cpp:12
uotool
uofile05.cpp
Generated on Wed Oct 10 2018 02:42:39 for Pol by
1.8.11