def _rocFlatten(self, tmpl):
    '\n        Converts roc template to serialized data.\n        Datatype = bytes\n        '
    buffer_size = roc.new_size_t()
    roc.roc_flattened_bytes(tmpl, buffer_size)
    buffer_size_int = roc.size_t_value(buffer_size)
    roc_buffer_src = roc.new_uint8_t_array(buffer_size_int)
    roc.roc_flatten(tmpl, roc_buffer_src)
    native_buffer = roc.cdata(roc_buffer_src, buffer_size_int)
    roc.delete_size_t(buffer_size)
    roc.delete_uint8_t_array(roc_buffer_src)
    return native_buffer
Converts roc template to serialized data.
Datatype = bytes
def _rocFlatten(self, tmpl):
    '\n        Converts roc template to serialized data.\n        Datatype = bytes\n        '
    buffer_size = roc.new_size_t()
    roc.roc_flattened_bytes(tmpl, buffer_size)
    buffer_size_int = roc.size_t_value(buffer_size)
    roc_buffer_src = roc.new_uint8_t_array(buffer_size_int)
    roc.roc_flatten(tmpl, roc_buffer_src)
    native_buffer = roc.cdata(roc_buffer_src, buffer_size_int)
    roc.delete_size_t(buffer_size)
    roc.delete_uint8_t_array(roc_buffer_src)
    return native_buffer