* read binary data from buffer