docs

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

LoadBuffer

Loads a complete TOML document from exact-length ANSI or strict UTF-8 bytes.

Clarion class declaration

LoadBuffer PROCEDURE(STRING pTomlBytes,BYTE pEncoding),LONG

Purpose

Loads a complete TOML document from exact-length ANSI or strict UTF-8 bytes.

Parameters

Parameter Type Description
pTomlBytes STRING Complete TOML document bytes supplied through a Clarion STRING.
pEncoding BYTE ProTOML:EncodingANSI or ProTOML:EncodingUTF8.

Return value

Returns a Clarion BYTE result as described above.

Example (Clarion)

Utf8Bytes STRING(4096)
RetCode   LONG

CODE
RetCode = Toml.LoadBuffer(Utf8Bytes,ProTOML:EncodingUTF8)

Notes

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