Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
94fccbe0
Commit
94fccbe0
authored
Apr 21, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e12f544b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
+13
-7
No files found.
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
View file @
94fccbe0
...
...
@@ -27,7 +27,7 @@ public:
{
unsigned
short
rdUShort
=
0
;
if
(
(
stream
!=
NULL
)
&&
(
position
+
2
<
stream
->
size
())
)
if
(
stream
!=
NULL
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)(
&
rdUShort
),
sizeof
(
rdUShort
));
...
...
@@ -42,7 +42,7 @@ public:
{
short
rdShort
=
0
;
if
(
(
stream
!=
NULL
)
&&
(
position
+
2
<
stream
->
size
())
)
if
(
stream
!=
NULL
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)(
&
rdShort
),
sizeof
(
rdShort
));
...
...
@@ -57,7 +57,7 @@ public:
{
int
rdInt
=
0
;
if
(
(
stream
!=
NULL
)
&&
(
position
+
4
<
stream
->
size
())
)
if
(
stream
!=
NULL
)
{
stream
->
seek
(
position
);
stream
->
read
(
(
unsigned
char
*
)
&
rdInt
,
sizeof
(
rdInt
)
);
...
...
@@ -72,7 +72,7 @@ public:
{
int
rdUInt
=
0
;
if
(
(
stream
!=
NULL
)
&&
(
position
+
4
<
stream
->
size
())
)
if
(
stream
!=
NULL
)
{
stream
->
seek
(
position
);
stream
->
read
((
unsigned
char
*
)
&
rdUInt
,
sizeof
(
rdUInt
)
);
...
...
@@ -87,7 +87,7 @@ public:
{
unsigned
char
rdByte
=
0
;
if
(
(
stream
!=
NULL
)
&&
(
position
+
1
<
stream
->
size
())
)
if
(
this
->
stream
!=
NULL
)
{
stream
->
seek
(
position
);
stream
->
read
(
(
unsigned
char
*
)
&
rdByte
,
sizeof
(
rdByte
)
);
...
...
@@ -102,7 +102,8 @@ public:
{
unsigned
char
*
rdBytes
=
NULL
;
if
(
(
stream
!=
NULL
)
&&
(
count
>
0
))
if
(
(
stream
!=
NULL
)
&&
(
count
>
0
)
&&
isResultNeeded
)
{
rdBytes
=
new
unsigned
char
[
count
];
...
...
@@ -114,6 +115,10 @@ public:
position
+=
sizeof
(
unsigned
char
)
*
count
;
}
}
else
{
position
+=
sizeof
(
unsigned
char
)
*
count
;
}
return
rdBytes
;
}
...
...
@@ -221,6 +226,7 @@ public:
private:
POLE
::
uint64
position
;
POLE
::
uint64
position
;
//std::streampos position;
POLE
::
Stream
*
stream
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment