diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-07 13:23:07 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-07 13:23:07 -0700 |
commit | 0f4eff49c820a8d2ccb38e191604eb86c81b30af (patch) | |
tree | c669bbfcd10e0911bcb4dcf10dbab1964d3af859 /host/test/vrt_test.cpp | |
parent | 330bb71edbefbaa5a2e6afd1e7d183fb15a0817c (diff) | |
download | uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.tar.gz uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.tar.bz2 uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.zip |
Replaced the vrt pack and unpack with a pack and unpack for big endian and a pack and unpack for little endian.
The vrt handler code was templatized to take the relevant packer/unpacker as an argument.
Diffstat (limited to 'host/test/vrt_test.cpp')
-rw-r--r-- | host/test/vrt_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/test/vrt_test.cpp b/host/test/vrt_test.cpp index 939a61eb4..3e596164c 100644 --- a/host/test/vrt_test.cpp +++ b/host/test/vrt_test.cpp @@ -30,7 +30,7 @@ static void pack_and_unpack( size_t num_packet_words32; //pack metadata into a vrt header - vrt::pack( + vrt::pack_be( metadata, //input header_buff, //output num_header_words32, //output @@ -46,7 +46,7 @@ static void pack_and_unpack( size_t packet_count_out; //unpack the vrt header back into metadata - vrt::unpack( + vrt::unpack_be( metadata_out, //output header_buff, //input num_header_words32_out, //output |