Skip to main content

looks_like_cim_dist_header

Function looks_like_cim_dist_header 

Source
pub fn looks_like_cim_dist_header(head: &[u8]) -> bool
Expand description

Whether a document opens like distribution CIM: RDF/XML in a CIM namespace with no md:FullModel header (which marks a CGMES profile) in its first CIM_DIST_HEAD_BYTES. A caller holding only a file’s head can rule it out with this before reading the whole file for looks_like_cim_dist.