summaryrefslogtreecommitdiff
path: root/gr-digital/include/gnuradio/digital/header_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/include/gnuradio/digital/header_buffer.h')
-rw-r--r--gr-digital/include/gnuradio/digital/header_buffer.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gr-digital/include/gnuradio/digital/header_buffer.h b/gr-digital/include/gnuradio/digital/header_buffer.h
index b2d6b56c32..ba6e4ee3cc 100644
--- a/gr-digital/include/gnuradio/digital/header_buffer.h
+++ b/gr-digital/include/gnuradio/digital/header_buffer.h
@@ -71,8 +71,7 @@ namespace digital {
* As simple example of using this class in transmit mode:
*
* \verbatim
- uint8_t* buffer = (uint8_t*)volk_malloc(header_nbytes(),
- volk_get_alignment());
+ volk::vector<uint8_t> buffer(header_nbytes());
header_buffer hdr(buffer);
hdr.add_field64(sync_word, sync_word_len);
@@ -81,8 +80,6 @@ namespace digital {
hdr.add_field8(header_options);
// Do something with the header
-
- volk_free(buffer);
\endverbatim
*
* In this example, the header contains four fields: