Implement buffer read and write functions in the UIPClient class.

This implements the two functions to read and write data using a buffer. This implementation is definitely not the most efficient and / or fast way to do it, but it works and it is able to act at least as a placeholder until a better solution is done.