Question.5
A developer needs to pass a unique_ptr-managed buffer to a C function:
auto buf = std::make_unique<uint8_t[]>(64);
hal_uart_transmit(buf.get(), 64); // C function: void hal_uart_transmit(uint8_t*, int)Is buf.get() the correct way to pass it?