readValue

Deserializes a JavaScript value from the buffer and returns it.