To allow a buffer to correctly represent both memory allocations and files, empty buffers are now allowed by allocating them with size zero. If you only have applications without any exception catching, this will likely not break backwards compatibility. If you are making a library however, taking buffers as input should consider all features that the caller might use.
To allow a buffer to correctly represent both memory allocations and files, empty buffers are now allowed by allocating them with size zero. If you only have applications without any exception catching, this will likely not break backwards compatibility. If you are making a library however, taking buffers as input should consider all features that the caller might use.