const int kBytesToRead = 10;Danilo Françoso Tedeschinit: this can remain `constexpr`?
Done
std::optional<size_t> bytes_read = file.Read(0, buffer);Danilo Françoso Tedeschinit: you can keep the `const` from before.
Done
// SAFETY: These are defined from a vector here:
// https://source.chromium.org/chromium/chromium/src/+/main:media/cdm/cdm_adapter.cc;l=384;drc=8bd3d24cc3bdbffe564eeeca112a6744e6766b17
base::span<const uint8_t> init_data_span =
UNSAFE_BUFFERS(base::span(init_data, init_data_size));Danilo Françoso TedeschiIf we move this after the early out I think we could also just make this a vector copy, and std::move it in.
Done
// SAFETY: `response` and `response_size` must be in conformance.
base::span<const uint8_t> response_span =
UNSAFE_BUFFERS(base::span(response, response_size));Danilo Françoso Tedeschishould we just keep this as the vector here?
and then `std::move(response_copy)` into the function? no safer then before.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |