Skip to main content

is_artnet_packet

Function is_artnet_packet 

Source
fn is_artnet_packet(data: &[u8]) -> bool
Expand description

Helper function to check if a received byte slice begins with the standard Art-Net header.

§Arguments

  • data - Raw incoming packet byte buffer.

§Returns

true if the packet is at least 10 bytes long and starts with "Art-Net\0".