| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |
Serializes the current document as ANSI or strict UTF-8 bytes into a caller-supplied CSTRING.
SaveBuffer PROCEDURE(*CSTRING pTomlText,BYTE pEncoding),LONG
Serializes the current document as ANSI or strict UTF-8 bytes into a caller-supplied CSTRING.
| Parameter | Type | Description |
|---|---|---|
| pTomlText | *CSTRING | Complete TOML document text. |
| pEncoding | BYTE | ProTOML:EncodingANSI or ProTOML:EncodingUTF8. |
Returns a Clarion BYTE result as described above.
Utf8Bytes CSTRING(8192)
RetCode LONG
CODE
Toml.StartDocument()
Toml.SetString('application.name','PageSnip')
RetCode = Toml.SaveBuffer(Utf8Bytes,ProTOML:EncodingUTF8)
| Home | Getting Started | Browse by Category | Class Methods | Low-Level API |