Struct p25::data::payload::Payload
[−]
[src]
pub struct Payload<'a, P: PacketParams> { /* fields omitted */ }
Wraps a buffer of bytes, splitting them over payload blocks.
Methods
impl<'a, P: PacketParams> Payload<'a, P>
[src]
pub fn new(data: &'a [u8]) -> Payload<'a, P>
[src]
Construct a new Payload
over the given data bytes.
pub fn blocks(&self) -> usize
[src]
Total number of blocks in the payload.
pub fn pads(&self) -> usize
[src]
Number of pad bytes in the payload.
ⓘImportant traits for PayloadIter<'a, P>pub fn iter(&self) -> PayloadIter<'a, P>
[src]
ⓘImportant traits for PayloadIter<'a, P>
Construct an iterator over the normal blocks for the payload.
pub fn tail(&self) -> TailBlock<'a, P>
[src]
Get the tail block of the payload.