Code

streaming: make streaming-write-entry to be more reusable