Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
1c66bfcb
"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "3b6ebd794b82e02f8d5e1d0b915533bb4c36dbfc"
Commit
1c66bfcb
authored
Jun 17, 2017
by
Guolin Ke
Browse files
Add const to BinMapper::CopyTo
parent
716584f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/LightGBM/bin.h
include/LightGBM/bin.h
+1
-1
src/io/bin.cpp
src/io/bin.cpp
+1
-1
No files found.
include/LightGBM/bin.h
View file @
1c66bfcb
...
...
@@ -143,7 +143,7 @@ public:
* \brief Seirilizing this object to buffer
* \param buffer The destination
*/
void
CopyTo
(
char
*
buffer
);
void
CopyTo
(
char
*
buffer
)
const
;
/*!
* \brief Deserilizing this object from buffer
...
...
src/io/bin.cpp
View file @
1c66bfcb
...
...
@@ -302,7 +302,7 @@ int BinMapper::SizeForSpecificBin(int bin) {
return
size
;
}
void
BinMapper
::
CopyTo
(
char
*
buffer
)
{
void
BinMapper
::
CopyTo
(
char
*
buffer
)
const
{
std
::
memcpy
(
buffer
,
&
num_bin_
,
sizeof
(
num_bin_
));
buffer
+=
sizeof
(
num_bin_
);
std
::
memcpy
(
buffer
,
&
is_trival_
,
sizeof
(
is_trival_
));
...
...
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