Transform the beginning of a stream/buffer, useful for adding runtimes