From 0f4eff49c820a8d2ccb38e191604eb86c81b30af Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 7 Jun 2010 13:23:07 -0700 Subject: 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. --- host/test/vrt_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/test/vrt_test.cpp') 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 -- cgit v1.2.3