Struct p25::data::params::UnconfirmedParams
[−]
[src]
pub struct UnconfirmedParams;
Params for unconfirmed data packets.
Trait Implementations
impl PacketParams for UnconfirmedParams
[src]
fn block_bytes() -> usize
[src]
Number of data bytes in a normal block.
fn tail_bytes() -> usize
[src]
Number of data bytes in the tail block.
fn max_blocks() -> usize
[src]
Maximum number of blocks in the packet, including the tail block.
fn packet_bytes() -> usize
[src]
Maximum number of data bytes in the packet.
fn blocks(bytes: usize) -> usize
[src]
Calculate the total number of data blocks (normal and tail) needed to hold the given amount of bytes. Read more
fn pads(bytes: usize) -> usize
[src]
Calculate the number of pads needed for the tail block (and possibly second-to-last block) for the given amount of bytes. Read more
fn full_blocks(bytes: usize) -> usize
[src]
Calculate the number of normal data blocks (tail block not included) needed to hold the given amount of bytes. Read more