Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
b87ca392
Commit
b87ca392
authored
Apr 14, 2016
by
Martin Schultz
Committed by
Jan Möbius
Apr 14, 2016
Browse files
fixes
#17
by removing the swap of len in string serialization specification
(cherry picked from commit
e7ed1ca1
)
parent
4cfe7578
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/SR_binary_spec.hh
View file @
b87ca392
...
...
@@ -238,8 +238,6 @@ template <> struct binary< std::string > {
{
length_t
len
=
length_t
(
_v
.
size
());
if
(
_swap
)
reverse_byte_order
(
len
);
size_t
bytes
=
binary
<
length_t
>::
store
(
_os
,
len
,
_swap
);
_os
.
write
(
_v
.
data
(),
len
);
return
_os
.
good
()
?
len
+
bytes
:
0
;
...
...
@@ -252,8 +250,6 @@ template <> struct binary< std::string > {
{
length_t
len
;
size_t
bytes
=
binary
<
length_t
>::
restore
(
_is
,
len
,
_swap
);
if
(
_swap
)
reverse_byte_order
(
len
);
_val
.
resize
(
len
);
_is
.
read
(
const_cast
<
char
*>
(
_val
.
data
()),
len
);
...
...
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