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:
@@ -62,9 +62,7 @@ Java_edu_wpi_first_hal_can_CANJNI_FRCNetCommCANSessionMuxReceiveMessage
|
||||
if (!CheckCANStatus(env, status, *messageIDPtr)) {
|
||||
return nullptr;
|
||||
}
|
||||
return MakeJByteArray(env,
|
||||
std::string_view{reinterpret_cast<const char*>(buffer),
|
||||
static_cast<size_t>(dataSize)});
|
||||
return MakeJByteArray(env, {buffer, static_cast<size_t>(dataSize)});
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user