-module(dproto_udp). -include_lib("mmath/include/mmath.hrl"). -include("dproto.hrl"). -export([encode_header/1, encode_points/3]). -ignore_xref([encode_header/1, encode_points/3]). encode_header(Bucket) -> <>. encode_points(Metric, Time, Points) when is_list(Points) -> encode_points(Metric, Time, mmath_bin:from_list(Points)); encode_points(Metric, Time, Points) when is_binary(Metric), is_binary(Points) -> <>.