DataBuf::c_data() returns nullptr when empty + avoid duplication
After the previous commit, I realized that std::vector::data() also returns nullptr when the vector is empty. So I decided to emulate this behavior in DataBuf::c_data(). Anyways, the changes done in the previous commit are valid and allow us to avoid some processing when the DataBuf is empty.main
parent
c3d0100d48
commit
6964f5f9f2
Loading…
Reference in New Issue