Struct las::vlr::Vlr
[−]
[src]
pub struct Vlr { pub reserved: u16, pub user_id: [u8; 16], pub record_id: u16, pub record_length_after_header: u16, pub description: [u8; 32], pub body: Vec<u8>, }
A Variable Length Record.
Fields
reserved: u16
user_id: [u8; 16]
record_id: u16
record_length_after_header: u16
description: [u8; 32]
body: Vec<u8>
Methods
impl Vlr
[src]
fn new<T: Read>(reader: &mut T) -> LasResult<Vlr>
Create a new VLR from a reader.
No special processing is done to the vlr, we just read in the bytes.
fn write_to<W: Write>(&self, writer: &mut W) -> LasResult<()>
Writes the vlr to a writer.
Example
let mut data: Vec<u8> = Vec::new(); let mut cursor = Cursor::new(data); vlr.write_to(&mut cursor);