dump


Description:

public int dump (ref Document document)

Emit a YAML document.

The documen object may be generated using the Parser.load() function or the Document.Document() function. The emitter takes the responsibility for the document object and destroys its content after it is emitted. The document object is destroyed even if the function fails.

Parameters:

document

document object.

emitter

An emitter object.

Returns:

1 if the function succeeded, 0 on error.