eat_link


Description:

public int eat_link (string chunk, int chunk_pos, int seq_pos, bool is_end_of_chunks)

Parse and consume a link after the 3-char lead [??. Only eats the chunk; does not extract strings. Caller uses returned end offset and calls handle_link(chunk, chunk_pos, seq_pos, end_offset).

Returns:

-1 need more input, 0 no match, >0 byte offset in chunk after the consumed link