ProtobufParse

(Engine-Level Function)

Description: Load a Protobuf specification from a file.
Returns: A Protobuf Handle value. See comments.
Usage: Script Only.
Function Groups: Protobuf
Related to: ProtobufDecode | ProtobufEncode | ProtobufInstantiate
Format: ProtobufParse(ProtobufFileName[, ErrMsg])
Parameters:  
ProtobufFileName
Required text. Absolute path to the file that defines a Protobuf spec.
ErrMsg
Optional. If provided, this will be set to an array of error messages on failure.
Comments:

The return value is of type #VTypeProtobufHandle if successful, or invalid if there were errors. The handle can be used with ProtobufEncode, ProtobufDecode, and ProtobufInstantiate.

 

The ErrMsg parameter is set to invalid if there were no errors, or an array of one or more errors if there were issues parsing the file specified in the ProtobufFileName parameter. Each error consists of a structure with members file name, line, column, and message.

Example:

See: ProtobufInstantiate