Converts an 8-bit buffer to a 16-bit buffer in place. On error, returns null and frees the original buffer.
See Implementation
Converts an 8-bit buffer to a 16-bit buffer in place. On error, returns null and frees the original buffer.