# writegotochunk

Places a goto chunk at the specified time.

### Synopsis

`writegotochunk <stream_time> <destination_time>`

### Description

`Writegotochunk` writes a GOTO control chunk to the stream file. You can specify the time where the GOTO control chunk is to be placed.The destination time specifies the file location in bytes where you want to go to. You should make sure to only jump to the start of a block. This can be done by adding the command markertime, which specifies the stream time you want to jump to.

In effect, this allows branching from the GOTO chunk to the destination time.

Note that weaving with goto chunks is a two step process: For the first pass, put all files and markes in the stream. Then examine the file using dumpstream and determine the position in the file you want to jump to. Use that number as an argument to writegotochunk in the Weaver script and weave the file a second time.

### Arguments

stream_time
  0 to 7FFFFFFF (hex)

destination_time
  0 to 7FFFFFFF (hex)