Convert a sequence of path value pairs to a stream of bytes
add a new path value pair
an array of path segments
the value at the corresponding path
The input stream is completed
Convert a sequence of path value pairs to a stream of bytes