docs

Home Getting Started Browse by Category Class Methods Low-Level API

SaveBuffer

Serializes the current document as ANSI or strict UTF-8 bytes into a caller-supplied CSTRING.

Clarion class declaration

SaveBuffer PROCEDURE(*CSTRING pTomlText,BYTE pEncoding),LONG

Purpose

Serializes the current document as ANSI or strict UTF-8 bytes into a caller-supplied CSTRING.

Parameters

Parameter Type Description
pTomlText *CSTRING Complete TOML document text.
pEncoding BYTE ProTOML:EncodingANSI or ProTOML:EncodingUTF8.

Return value

Returns a Clarion BYTE result as described above.

Example (Clarion)

Utf8Bytes CSTRING(8192)
RetCode   LONG

CODE
Toml.StartDocument()
Toml.SetString('application.name','PageSnip')
RetCode = Toml.SaveBuffer(Utf8Bytes,ProTOML:EncodingUTF8)

Notes

Home Getting Started Browse by Category Class Methods Low-Level API