mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpiutil] MakeJByteArray: Use span<uint8> instead of string_view (#4446)
This commit is contained in:
@@ -58,9 +58,8 @@ void ConstBufferCallbackStore::performCallback(const char* name,
|
||||
std::fflush(stdout);
|
||||
}
|
||||
|
||||
auto toCallbackArr = MakeJByteArray(
|
||||
env, std::string_view{reinterpret_cast<const char*>(buffer),
|
||||
static_cast<size_t>(length)});
|
||||
auto toCallbackArr =
|
||||
MakeJByteArray(env, {buffer, static_cast<size_t>(length)});
|
||||
|
||||
env->CallVoidMethod(m_call, sim::GetConstBufferCallback(),
|
||||
MakeJString(env, name), toCallbackArr,
|
||||
|
||||
Reference in New Issue
Block a user