Maraiah/source/marathon/map/epnt.rs

19 lines
303 B
Rust
Raw Normal View History

2019-04-01 00:39:47 -07:00
//! `EndPoint` type.
use crate::durandal::err::*;
2019-04-01 01:50:05 -07:00
use super::pnts;
2019-04-01 00:39:47 -07:00
/// Reads an `EPNT` chunk.
2019-04-01 01:50:05 -07:00
pub fn read(b: &[u8]) -> ResultS<(pnts::Point, usize)>
2019-04-01 00:39:47 -07:00
{
read_data! {
endian: BIG, buf: b, size: 16, start: 0, data {
2019-04-01 01:50:05 -07:00
let pnt = pnts::read_o[6; 4];
2019-04-01 00:39:47 -07:00
}
}
Ok((pnt, 16))
}
// EOF