Skip to content

Commit

Permalink
standar memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmang committed Feb 8, 2024
1 parent 34f4005 commit 2d923dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/cs/rl.net.native/binding_static_model.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "binding_static_model.h"
#include "model_mgmt.h"
#include "err_constants.h"
#include <iostream>

using namespace rl_net_native;
using namespace reinforcement_learning;
Expand All @@ -18,7 +19,7 @@ int binding_static_model::get_data(reinforcement_learning::model_management::mod
return reinforcement_learning::error_code::static_model_load_error;
}

std::memcpy(buffer, this->weights, this->len);
memcpy(buffer, this->weights, this->len);
data.data_sz(this->len);

return reinforcement_learning::error_code::success;
Expand Down

0 comments on commit 2d923dd

Please sign in to comment.