Skip to content
GitLab
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
e7ed1ca1
Commit
e7ed1ca1
authored
Apr 14, 2016
by
Martin Schultz
Browse files
fixes
#17
by removing the swap of len in string serialization specification
parent
6fcad880
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/SR_binary_spec.hh
View file @
e7ed1ca1
...
...
@@ -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
);
...
...
Martin Schultz
@schultz
mentioned in commit
b87ca392
·
Apr 14, 2016
mentioned in commit
b87ca392
mentioned in commit b87ca392d77aadab93f236539dd671dd699ec24e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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