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