Write a varint to a stream

stream_write_varint(stream, value)

Arguments

stream

The stream to write to

value

The value to write