Stdio.Buffer, need a way to revisit old positions in the output

2014-10-20 Thread Stephen R. van den Berg
In perusing the Stdio.Buffer for pgsql NG, I find that I need some way to: a. Fill the output buffer. b. Leave a spot for say a 4 byte integer. c. Fill the output buffer some more. d. Revisit spot (b). e. Write out the newly calculated length. f. Return back to the current tip of the buffer. And

Stdio.Buffer, need a way to revisit old positions in the output

2014-10-20 Thread Per Hedbor () @ Pike (-) developers forum
Something along the lines of Buffer sub = b-new_hbuffer(); sub-add... sub-finish(); looks cleaner, I think. -- Per Hedbor