Reads until a 0 byte and returns all data before it as newly allocated buffer containing the data.
See Implementation
Reads until a 0 byte and returns all data before it as newly allocated buffer containing the data.