diff options
author | Tom Rondeau | 2012-12-14 16:00:27 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-14 16:00:27 -0500 |
commit | 8e8ed231cd2469e1a39c5ae6af23ac9b29264af7 (patch) | |
tree | bc7d1cbcf31dda34f05e0170a86753f3c02c8d1a /docs/doxygen/other/metadata.dox | |
parent | 3910c6da3c62232e6593e5fcfe53f5ece933a294 (diff) | |
download | gnuradio-8e8ed231cd2469e1a39c5ae6af23ac9b29264af7.tar.gz gnuradio-8e8ed231cd2469e1a39c5ae6af23ac9b29264af7.tar.bz2 gnuradio-8e8ed231cd2469e1a39c5ae6af23ac9b29264af7.zip |
gruel: Enabling serialize/deserialize for PMT vectors.
Diffstat (limited to 'docs/doxygen/other/metadata.dox')
-rw-r--r-- | docs/doxygen/other/metadata.dox | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/doxygen/other/metadata.dox b/docs/doxygen/other/metadata.dox index 4bc310531..1b3c891a8 100644 --- a/docs/doxygen/other/metadata.dox +++ b/docs/doxygen/other/metadata.dox @@ -301,17 +301,17 @@ file. A QT GUI time sink is used to look at the signal as well. The following shows a simple way of creating extra metadata for a metadata file. This example is just showing how we can insert a date into the metadata to keep track of later. The date in this case is -encoded as day|month|year. +encoded as a vector of uint16 with [day, month, year]. \code from gruel import pmt key = pmt.pmt_intern("date") - val = pmt.pmt_from_uint64(13122012) + val = pmt.pmt_init_u16vector(3, [13,12,2012]) extras = pmt.pmt_make_dict() extras = pmt.pmt_dict_add(extras, key, val) - extras_str = pmt.pmt_serialize_str(extrasa) + extras_str = pmt.pmt_serialize_str(extras) self.sink = gr.file_meta_sink(gr.sizeof_gr_complex, "/tmp/metadat_file.out", samp_rate, 1, |