pub fn new(data: &'a pbf::DenseNodes, string_table: &'a pbf::StringTable) -> Self {
        DenseNodeReader {
            data,
            string_table,
            data_idx: 0,
            key_value_idx: 0,
            current: DeltaCodedValues::default(),
        }
    }
/// Constructs a new `DenseNodeReader` from a slice of nodes.
///
/// # Examples
///
/// ```no_run
/// use rosm_pbf_reader::{pbf, DenseNodeReader};
///
/// fn process_primitive_block(block: pbf::PrimitiveBlock) {
///     for group in &block.primitivegroup {
///         if let Some(dense_nodes) = &group.dense {
///             let nodes = DenseNodeReader::new(&dense_nodes, &block.stringtable);
///             for node in nodes {
///                 for (key, value) in node.tags {
///                     println!("{}: {}", key.unwrap(), value.unwrap());
///                 }
///             }
///         }
///     }
/// }
/// ```
Constructs a new `DenseNodeReader` from a slice of nodes.
Constructs a new ` DenseNodeReader ` from a slice of nodes .
pub fn new(data: &'a pbf::DenseNodes, string_table: &'a pbf::StringTable) -> Self {
        DenseNodeReader {
            data,
            string_table,
            data_idx: 0,
            key_value_idx: 0,
            current: DeltaCodedValues::default(),
        }
    }
pub fn new ( data : & ' a pbf :: DenseNodes , string_table : & ' a pbf :: StringTable ) -> Self { DenseNodeReader { data , string_table , data_idx : 0 , key_value_idx : 0 , current : DeltaCodedValues :: default ( ) , } }
Constructs a new `DenseNodeReader` from a slice of nodes.
Constructs a new ` DenseNodeReader ` from a slice of nodes .
data
&'a pbf::DenseNodes
string_table
&'a pbf::StringTable
data
&'a pbf::DenseNodes
string_table
&'a pbf::StringTable
examples
```no_run
use rosm_pbf_reader::{pbf, DenseNodeReader}.

fn process_primitive_block(block: pbf::PrimitiveBlock) {
for group in &block.primitivegroup {
if let Some(dense_nodes) = &group.dense {
let nodes = DenseNodeReader::new(&dense_nodes, &block.stringtable);
for node in nodes {
for (key, value) in node.tags {
println!("{}: {}", key.unwrap(), value.unwrap());
}
}
}
}
}
```
` ` ` no_run use rosm_pbf_reader :: { pbf DenseNodeReader } . fn process_primitive_block ( block : pbf :: PrimitiveBlock ) { for group in &block . primitivegroup { if let Some ( dense_nodes ) = &group . dense { let nodes = DenseNodeReader :: new ( &dense_nodes &block . stringtable ) ; for node in nodes { for ( key value ) in node . tags { println! ( " {} : {} " key . unwrap () value . unwrap () ) ; } } } } } ` ` `