here are two code snippets i've already posted:
# the number of bytes that have been yielded, increased every chunk
stream_output_offset = 0
# the size of all the chunks: the sum of the sizes of each child node
total_size = len(self)
