Module binary_layout::example::icmp_packet
source · Expand description
This module is autogenerated. It defines a layout using the binary_layout crate based on the following definition:
ⓘ
binary_layout!(icmp_packet, BigEndian, {
packet_type: u8,
code: u8,
checksum: u16,
rest_of_header: [u8; 4],
data_section: [u8],
});
Structs§
- Use this as a marker type for using this layout as a nested field within another layout.
Constants§
- Total size of the layout in number of bytes. This can be None if the layout ends with an open ended field like a byte slice.