mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 04:52:59 +01:00
erlang: msgpack:unpack_all/1 doc.
This commit is contained in:
parent
8a3ac6d9bd
commit
dcbcf5842f
@ -80,6 +80,11 @@ unpack(Bin) when is_binary(Bin) ->
|
|||||||
unpack(Other) ->
|
unpack(Other) ->
|
||||||
{error, {badarg, Other}}.
|
{error, {badarg, Other}}.
|
||||||
|
|
||||||
|
% @doc Decode an msgpack binary into an erlang terms.
|
||||||
|
% It only decodes ALL msgpack packets contained in the binary. No packets should not remain.
|
||||||
|
% Returns {error, {badarg, term()}} if the input is corrupted.
|
||||||
|
% Returns {error, incomplete} if the input is not a full msgpack packet (caller should gather more data and try again).
|
||||||
|
% @spec unpack_all(binary()) -> [msgpack_term()] | {error, incomplete} | {error, {badarg, term()}}
|
||||||
-spec unpack_all(binary()) -> [msgpack_term()] | {error, incomplete} | {error, {badarg, term()}}.
|
-spec unpack_all(binary()) -> [msgpack_term()] | {error, incomplete} | {error, {badarg, term()}}.
|
||||||
unpack_all(Data)->
|
unpack_all(Data)->
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user