Function TRTSERVER_ProtobufSerialize

Function Documentation

TRTSERVER_Error *TRTSERVER_ProtobufSerialize(TRTSERVER_Protobuf *protobuf, const char **base, size_t *byte_size)

Get the base and size of the buffer containing the serialized version of the protobuf.

The buffer is owned by the TRTSERVER_Protobuf object and should not be modified or freed by the caller. The lifetime of the buffer extends only as long as ‘protobuf’ and must not be accessed once ‘protobuf’ is deleted.


a TRTSERVER_Error indicating success or failure.

  • protobuf: The protobuf object.

  • base: Returns the base of the serialized protobuf.

  • byte_size: Returns the size, in bytes, of the serialized protobuf.