
  -spec term_to_iovec(Term) -> ext_iovec() when Term :: term().

Since:
  OTP 23.0

  Returns the encoding of Term according to the Erlang external
  term format as ext_iovec().

  This function produce the same encoding as term_to_binary/1, but
  with another return type. The call 
  iolist_to_binary(term_to_iovec(Term)) will produce exactly the
  same result as the call term_to_binary(Term).

  term_to_iovec() is a pure optimization of the functionality 
  term_to_binary() provide. term_to_iovec() can for example refer
  directly to off heap binaries instead of copying the binary data
  into the result.

  See also term_to_binary/1.
