GNU Radio 3.7.1 C++ API
|
Byte-stream CRC block. More...
#include <crc32_bb.h>
Public Types | |
typedef boost::shared_ptr < crc32_bb > | sptr |
Static Public Member Functions | |
static sptr | make (bool check=false, const std::string &lengthtagname="packet_len") |
Byte-stream CRC block.
Input: stream of bytes, which form a packet. The first byte of the packet has a tag with key "length" and the value being the number of bytes in the packet.
Output: The same bytes as incoming, but trailing a CRC32 of the packet. The tag is re-set to the new length.
static sptr gr::digital::crc32_bb::make | ( | bool | check = false , |
const std::string & | lengthtagname = "packet_len" |
||
) | [static] |
check | Set to true if you want to check CRC, false to create CRC. |
lengthtagname | Length tag key |