Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_tools
binary_to_stream/1
Description
binary_to_stream/1 is an Erlang function exported by "age_tools" module.
Converts a binary block into single stream chunk with 4 byte size prefix.
References
•stream_to_binary/1
Parameters
Name
Type
Input
binary()
Input binary sequence.
Result
Value or Type
Returns binary chunk with 4 byte size prefix.
Code Sample
> age_tools:binary_to_stream(<<"Zebra">>). <<0,0,0,5,90,101,98,114,97>>