Merge: Read byte rewrite
authorJean Privat <jean@pryen.org>
Thu, 3 May 2018 13:44:24 +0000 (09:44 -0400)
committerJean Privat <jean@pryen.org>
Thu, 3 May 2018 13:44:24 +0000 (09:44 -0400)
commiteadcb829b18d5f9fe6be664934aca89b5a344ed9
treeff5ece4724d6201133e77d93af978a7babbd0dd5
parent35575c299011cd9c9ccf18ef23381f6d0722a2d1
parent15975d0c322469baae34ad8882d1dbb9f5e4bd4a
Merge: Read byte rewrite

As part of the stream refactor series, this patches cleanup msgpack a bit and introduce a lower-level `read_byte` implementation on which `read_byte(s)` will rely for reading data from a source.

In the future, the lowest-level interface to read bytes, and the only one required for implementing a new stream will be the `raw_read_byte(s)` functions.

A cleanup of the current streams will be needed for this to be used properly, coming in the next few PRs.

Note: The first two commits have already been submitted under #2632, therefore disregard them for this PR.

Pull-Request: #2633
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>