use std::collections::BTreeMap; use std::env; use asterix_parser::asterix::category::CategoryKey; use asterix_parser::asterix::message::parser::describe_message_attributes; use asterix_parser::asterix::message::parser::parse_message; use asterix_parser::asterix::message::parser::parse_record; use asterix_parser::asterix::uap_json::structures::Attribute; use asterix_parser::asterix::uap_json::structures::DataRecord; use asterix_parser::asterix::uap_json::structures::Edition; use bitvec::prelude::*; use dilib::Container; use asterix_parser::asterix::uap::common::dataitems::get_bitvec_subset_as_msb0; use asterix_parser::asterix::uap::common::dataitems::get_msb_bits; use asterix_parser::asterix::category::CategoryIndex; use asterix_parser::asterix::message::cat048; use asterix_parser::asterix::message::AsterixMessage; use asterix_parser::asterix::uap::providers::Provider; use asterix_parser::asterix::Context; #[test] fn it_parse_cat048_message_02() -> anyhow::Result<()> { let mut container = Container::new(); container.add_singleton(Context::new()?).unwrap(); let asterix_context = container.get::().unwrap(); let cat_key = CategoryKey { index: CategoryIndex::_048, edition: Edition { major: 1, minor: 31 }, provider: Provider::Standard }; assert!(asterix_context.uap_definitions.contains_key(&cat_key), "UAP definitions should contains one CAT048 entry"); let curdir = env::current_dir().unwrap(); println!("Running test from folder: {:?}", curdir.to_str()); // Message octets as retireved from let mut message_bytes: Vec = vec![]; message_bytes.append(&mut vec![0x30, 0x00, 0x30, 0xFD, 0xF7, 0x02, 0x19, 0xC9, 0x35, 0x6D, 0x4D, 0xA0, 0xC5, 0xAF, 0xF1, 0xE0, 0x02, 0x00, 0x05, 0x28, 0x3C, 0x66, 0x0C, 0x10, 0xC2, 0x36, 0xD4, 0x18, 0x20, 0x01, 0xC0, 0x78, 0x00, 0x31, 0xBC, 0x00, 0x00, 0x40, 0x0D, 0xEB, 0x07, 0xB9, 0x58, 0x2E, 0x41, 0x00, 0x20, 0xF5]); let explanatory_message = cat048::get_example_message(); assert_eq!(message_bytes, explanatory_message); // let asterix_context = Context::new()?; let cat_key: CategoryKey = CategoryKey { index: CategoryIndex::_048, edition: Edition { major: 1, minor: 31 }, provider: Provider::Standard }; assert!(asterix_context.uap_definitions.contains_key(&cat_key), "UAP definitions should contains one CAT048 entry"); let uap_048_collection: Vec<_> = asterix_context.uap_definitions.keys() .into_iter() .filter(|x| x.index == CategoryIndex::_048).collect(); // let uap_048_collection = asterix_context.uap_definitions.get(&cat_key).unwrap(); assert_eq!(true, uap_048_collection.len() >= 1, "At least one CAT048 definition should exists"); assert_eq!(true, uap_048_collection.into_iter().any(|x| x.provider == Provider::Standard), "Should have found an UAP definiton for CAT048, provider == Standard"); let cat048_uap_def_opt: Option<(CategoryKey, DataRecord)> = asterix_context.uap_definitions .clone() .into_iter() .find(|x| x.0 == cat_key); assert_eq!(true, cat048_uap_def_opt.is_some(), "Should have found an UAP definiton for CAT048, provider == Standard"); let cat048_uap_definition = cat048_uap_def_opt.unwrap().1; assert_eq!(28, cat048_uap_definition.catalogue.len(), "Should have 28 data item entries"); let debugging: bool = true; let message = parse_message(&cat048_uap_definition, &message_bytes, debugging)?; /* let message = match AsterixMessage::parse(&message_bytes, Provider::Standard, &asterix_context) { Ok(m) => m, Err(e) => panic!("{e}"), }; */ assert_eq!("048", message.code); assert_eq!(Provider::Standard.as_ref(), message.provider); assert_eq!(42, message.attributes_map.len()); // todo: Still not working // assert_attributes(&message); Ok(()) // check_attributes(&message, &message_bytes); //assert_eq!(true, message.code(&CategoryIndex::_048)); } #[test] fn it_parse_cat034_message() -> anyhow::Result<()> { let mut container = Container::new(); container.add_singleton(Context::new()?).unwrap(); let asterix_context = container.get::().unwrap(); let cat_key = CategoryKey { index: CategoryIndex::_034, edition: Edition { major: 1, minor: 29 }, provider: Provider::Standard }; assert!(asterix_context.uap_definitions.contains_key(&cat_key), "UAP definitions should contains one CAT034 entry"); let curdir = env::current_dir().unwrap(); println!("Running test from folder: {:?}", curdir.to_str()); // Message octets as retireved from let mut message_octets: Vec = vec![]; message_octets.append(&mut vec![ 0x22, // CAT034 0x00, 0x10, // LEN: 48 octets 0xf6, // FSPEC 1 0x19, 0x0e, // 010, Data Source Identifier 0x02, // 000, Message Type 0x3a, 0x69,0x2b, // 030, Time of Day 0x40, // 020, Sector Number 0x88, 0x40, 0x40, // 050, System Configuration and Status 0x80, 0x00 // 060, System Processing Mode ]); let cat_key: CategoryKey = CategoryKey { index: CategoryIndex::_034, edition: Edition { major: 1, minor: 29 }, provider: Provider::Standard }; assert!(asterix_context.uap_definitions.contains_key(&cat_key), "UAP definitions should contains one CAT034 entry"); let uap_034_collection: Vec<_> = asterix_context.uap_definitions.keys() .into_iter() .filter(|x| x.index == CategoryIndex::_034).collect(); // let uap_048_collection = asterix_context.uap_definitions.get(&cat_key).unwrap(); assert_eq!(true, uap_034_collection.len() >= 1, "At least one CAT034 definition should exists"); assert_eq!(true, uap_034_collection.into_iter().any(|x| x.provider == Provider::Standard), "Should have found an UAP definiton for CAT034, provider == Standard"); let cat034_uap_def_opt: Option<(CategoryKey, DataRecord)> = asterix_context.uap_definitions .clone() .into_iter() .find(|x| x.0 == cat_key); assert_eq!(true, cat034_uap_def_opt.is_some(), "Should have found an UAP definiton for CAT034, provider == Standard"); let cat034_uap_definition = cat034_uap_def_opt.unwrap().1; assert_eq!(14, cat034_uap_definition.catalogue.len(), "Should have 28 data item entries"); let debugging = true; let message = parse_message(&cat034_uap_definition, &message_octets, debugging)?; /* let message = match AsterixMessage::parse(&message_bytes, Provider::Standard, &asterix_context) { Ok(m) => m, Err(e) => panic!("{e}"), }; */ describe_message_attributes(message.attributes_map.clone()); assert_eq!("034", message.code); assert_eq!(Provider::Standard.as_ref(), message.provider); assert_eq!(17, message.attributes_map.len()); // todo: Still not working // assert_attributes(&message); Ok(()) } #[test] pub(crate) fn it_test_asterix_parse_many_cat048_samples() -> anyhow::Result<()> { let curdir = env::current_dir().unwrap(); println!("Running test from folder: {:?}", curdir.to_str()); let debugging = true; let mut count = 0; for message_octets in get_cat048_samples() { let _message = parse_record(&message_octets, None, None, debugging)?; count += 1; println!("Processed message number: {}", count); } Ok(()) } fn get_cat048_samples() -> Vec> { let cat048_samples: Vec> = vec![ vec![0x30, 0x00, 0x27, 0xf1, 0x09, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x14, 0x20, 0x01, 0xb9, 0xe1, 0x5c, 0xff, 0x69, 0x00, 0xa1, 0x0e, 0xf1, 0x09, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x7d, 0x20, 0x0a, 0x41, 0xef, 0x0c, 0xfd, 0xee, 0x04, 0xb1, 0x0e], vec![0x30, 0x00, 0x5f, 0xf1, 0x08, 0xe8, 0xca, 0x90, 0xbc, 0x5a, 0x20, 0x13, 0xdf, 0x07, 0x3a, 0x01, 0xc1, 0x09, 0xc8, 0xf1, 0x08, 0xe8, 0xca, 0x90, 0xbc, 0x56, 0x20, 0x13, 0x5f, 0x06, 0xb3, 0x01, 0x96, 0x09, 0x8e, 0xf1, 0x08, 0xe8, 0xca, 0x90, 0xbc, 0x76, 0x21, 0x80, 0x38, 0x00, 0x0a, 0xf8, 0x07, 0x72, 0x1a, 0xfe, 0xfd, 0x0a, 0xe8, 0xca, 0x90, 0xbc, 0xa9, 0x46, 0xc8, 0x8a, 0x11, 0xc0, 0x0f, 0xff, 0x0c, 0x80, 0x2a, 0x50, 0x5a, 0xe7, 0x46, 0xfd, 0x0a, 0xe8, 0xca, 0x90, 0xbc, 0xc7, 0x41, 0x80, 0x4d, 0xcc, 0x15, 0xb3, 0x02, 0x18, 0x00, 0x00, 0x13, 0xc0, 0x21, 0x83, 0x46], vec![0x30, 0x00, 0x27, 0xf1, 0x09, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x14, 0x20, 0x01, 0xb9, 0xe1, 0x5c, 0xff, 0x69, 0x00, 0xa1, 0x0e, 0xf1, 0x09, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x7d, 0x20, 0x0a, 0x41, 0xef, 0x0c, 0xfd, 0xee, 0x04, 0xb1, 0x0e], vec![0x30, 0x00, 0x35, 0xff, 0x08, 0xe8, 0x9e, 0x90, 0xbc, 0x24, 0x68, 0x8d, 0x35, 0x10, 0x6a, 0x06, 0xec, 0x05, 0x78, 0xf8, 0x4c, 0x0c, 0xbf, 0x25, 0xaa, 0x1b, 0xaa, 0x40, 0xf5, 0xff, 0x08, 0xe8, 0x9e, 0x90, 0xbc, 0x3a, 0x48, 0x84, 0xea, 0x14, 0x2a, 0x4d, 0xe8, 0x02, 0x78, 0xe0, 0x4c, 0x0c, 0xb6, 0x1f, 0x8e, 0x3a, 0x7d], vec![0x30, 0x00, 0x21, 0xf3, 0x1f, 0x04, 0xe8, 0x91, 0x90, 0xbc, 0x56, 0x20, 0xd9, 0x50, 0xd2, 0x35, 0x18, 0x00, 0x1d, 0x06, 0xc8, 0x9d, 0xc3, 0x2e, 0xdd, 0x09, 0x4b, 0x6f, 0x61, 0x26, 0x80, 0x00, 0x00], vec![0x30, 0x00, 0x33, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbc, 0xd0, 0x48, 0x6f, 0x2a, 0x18, 0xcb, 0x07, 0x64, 0x03, 0xe8, 0xe0, 0x57, 0x0a, 0xc0, 0x1f, 0xc6, 0x2d, 0x9b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbc, 0xdb, 0x48, 0x9d, 0xf1, 0x1e, 0xcc, 0x06, 0xec, 0x05, 0x78, 0xe0, 0x5f, 0x0b, 0xbb, 0x36, 0x1f, 0x39, 0x82], vec![0x30, 0x00, 0x16, 0xf3, 0x01, 0x04, 0xe8, 0x91, 0x90, 0xbc, 0x56, 0x20, 0xd9, 0x50, 0xd2, 0x35, 0x18, 0x00, 0x1d, 0x80, 0x00, 0x00], vec![0x30, 0x00, 0x41, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbc, 0xd0, 0x48, 0x6f, 0x2a, 0x18, 0xcb, 0x07, 0x64, 0x03, 0xe8, 0xe0, 0x57, 0x0a, 0xc0, 0x00, 0x44, 0x1f, 0xc6, 0x2d, 0x9b, 0x04, 0x6c, 0x05, 0x28, 0x40, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbc, 0xdb, 0x48, 0x9d, 0xf1, 0x1e, 0xcc, 0x06, 0xec, 0x05, 0x78, 0xe0, 0x5f, 0x0b, 0xbb, 0x00, 0x79, 0x36, 0x1f, 0x39, 0x82, 0x08, 0xa7, 0x78, 0x48, 0x40], vec![0x30, 0x00, 0x47, 0xff, 0x1f, 0x04, 0xe8, 0x9e, 0x90, 0xbc, 0x24, 0x68, 0x8d, 0x35, 0x10, 0x6a, 0x06, 0xec, 0x05, 0x78, 0xf8, 0x4c, 0x0c, 0xbf, 0x25, 0xaa, 0x00, 0xea, 0x1b, 0xaa, 0x40, 0xf5, 0x08, 0xa2, 0x6d, 0x52, 0x00, 0x80, 0x83, 0xf1, 0xff, 0x1e, 0xe8, 0x9e, 0x90, 0xbc, 0x3a, 0x48, 0x84, 0xea, 0x14, 0x2a, 0x0d, 0xe8, 0x02, 0x78, 0xe0, 0x4c, 0x0c, 0xb6, 0x00, 0xe5, 0x1f, 0x8e, 0x3a, 0x7d, 0x04, 0x4c, 0x36, 0x55, 0x40], vec![0x30, 0x00, 0x17, 0xfe, 0xe8, 0xde, 0x90, 0xbc, 0xd3, 0x60, 0x0d, 0x08, 0xa9, 0x58, 0x08, 0xd2, 0x00, 0xd8, 0xf0, 0x5b, 0x0c, 0xd2, 0x26], vec![0x30, 0x00, 0x27, 0xff, 0x1f, 0x04, 0xe8, 0xde, 0x90, 0xbc, 0xd3, 0x60, 0x0d, 0x08, 0xa9, 0x58, 0x08, 0xd2, 0x00, 0xd8, 0xf0, 0x5b, 0x0c, 0xd2, 0x26, 0x03, 0xc4, 0xfa, 0x77, 0xfc, 0x90, 0x03, 0xa2, 0xef, 0x06, 0x00, 0x80, 0x80, 0x0f], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xb9, 0x90, 0xbc, 0x87, 0x42, 0xbe, 0x19, 0x9c, 0xaa, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x53, 0x09, 0xb4, 0xc2, 0x8a, 0xb7, 0x80], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x31, 0x28, 0x0a, 0x45, 0xf1, 0x6c, 0xfe, 0x34, 0x04, 0xcf], vec![0x30, 0x00, 0x16, 0xfe, 0xe8, 0xde, 0x90, 0xbc, 0xe4, 0x40, 0x73, 0x64, 0xb1, 0xfc, 0x04, 0x00, 0x01, 0x2c, 0xe0, 0x3a, 0x08, 0xaf], vec![0x30, 0x00, 0x20, 0xff, 0x0e, 0xe8, 0xd8, 0x90, 0xbc, 0xb8, 0x48, 0x45, 0x29, 0xe2, 0xd3, 0x0d, 0x9e, 0x01, 0x90, 0xe0, 0x44, 0x09, 0xb6, 0xe9, 0x4e, 0x1a, 0x17, 0x03, 0xd2, 0xe1, 0xaf, 0x40], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xb9, 0x90, 0xbc, 0x87, 0x42, 0xbe, 0x19, 0x9c, 0xaa, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x53, 0x09, 0xb4, 0x00, 0x7a, 0xc2, 0x8a, 0xb7, 0x80, 0x00, 0x08, 0x98, 0xa1, 0x40], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xde, 0x90, 0xbc, 0xe4, 0x40, 0x73, 0x64, 0xb1, 0xfc, 0x04, 0x00, 0x01, 0x2c, 0xe0, 0x3a, 0x08, 0xaf, 0x02, 0x36, 0xc9, 0xb1, 0xec, 0x85, 0x02, 0x78, 0x2e, 0xa3, 0x40], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xd8, 0x90, 0xbc, 0xb8, 0x48, 0x45, 0x29, 0xe2, 0xd3, 0x0d, 0x9e, 0x01, 0x90, 0xe0, 0x44, 0x09, 0xb6, 0x00, 0x03, 0xe9, 0x4e, 0x1a, 0x17, 0x03, 0xd2, 0xe1, 0xaf, 0x40], vec![0x30, 0x00, 0x0f, 0xe1, 0x12, 0xe8, 0xc8, 0x90, 0xbc, 0xdb, 0x08, 0x08, 0x02, 0x21, 0x80], vec![0x30, 0x00, 0x37, 0xff, 0x08, 0xe8, 0xd9, 0x90, 0xbc, 0x2b, 0x60, 0x5c, 0xf0, 0x82, 0xd7, 0x0d, 0xc4, 0x04, 0xb4, 0xf8, 0x41, 0x0a, 0xbc, 0x24, 0xa6, 0xfc, 0xc3, 0xd1, 0xa5, 0xff, 0x08, 0xe8, 0xd9, 0x90, 0xbc, 0x41, 0x60, 0x0f, 0x87, 0x86, 0xb9, 0x0d, 0xce, 0x01, 0x9c, 0xf8, 0x39, 0x09, 0xd3, 0x2e, 0xad, 0xfe, 0xba, 0xf8, 0x58], vec![0x30, 0x00, 0x0f, 0xe1, 0x08, 0xe8, 0xb9, 0x90, 0xbc, 0xc6, 0x00, 0xed, 0x5e, 0x03, 0x8d], vec![0x30, 0x00, 0x23, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x23, 0x28, 0x90, 0xb5, 0x5f, 0x14, 0x34, 0x4e, 0xce, 0x02, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x4d, 0x28, 0x74, 0x30, 0x64, 0x8c, 0x24, 0x40, 0xd2, 0x9a], vec![0x30, 0x00, 0x16, 0xe1, 0x1e, 0xe8, 0xb9, 0x90, 0xbc, 0xc6, 0x00, 0x00, 0xf2, 0xed, 0x5e, 0x03, 0x8d, 0x03, 0xba, 0x8c, 0x64, 0x26], vec![0x30, 0x00, 0x37, 0xf1, 0x1e, 0xe8, 0xc6, 0x90, 0xbb, 0xc3, 0x29, 0x80, 0x38, 0x00, 0x0a, 0xbc, 0x00, 0x06, 0x07, 0x4b, 0x1b, 0x09, 0x00, 0x00, 0x00, 0x00, 0x20, 0xfd, 0x1e, 0xe8, 0xc6, 0x90, 0xbc, 0x15, 0x49, 0x80, 0x4d, 0xcc, 0x15, 0xb3, 0x02, 0x18, 0x00, 0x00, 0x00, 0x07, 0x13, 0xc0, 0x21, 0x83, 0x00, 0x00, 0x15, 0xb3, 0x46], vec![0x30, 0x00, 0x37, 0xf1, 0x1e, 0xe8, 0xc6, 0x90, 0xbb, 0xc3, 0x29, 0x80, 0x38, 0x00, 0x0a, 0xbc, 0x00, 0x06, 0x07, 0x4b, 0x1b, 0x09, 0x00, 0x00, 0x00, 0x00, 0x20, 0xfd, 0x1e, 0xe8, 0xc6, 0x90, 0xbc, 0x15, 0x49, 0x80, 0x4d, 0xcc, 0x15, 0xb3, 0x02, 0x18, 0x00, 0x00, 0x00, 0x07, 0x13, 0xc0, 0x21, 0x83, 0x00, 0x00, 0x15, 0xb3, 0x46], vec![0x30, 0x00, 0x23, 0xf1, 0x08, 0xe8, 0xc7, 0x90, 0xbc, 0x38, 0x20, 0x15, 0x00, 0xfd, 0x54, 0xff, 0x50, 0x0a, 0x7a, 0xf1, 0x08, 0xe8, 0xc7, 0x90, 0xbc, 0x52, 0x20, 0x0c, 0x50, 0x00, 0xb3, 0x00, 0x1b, 0x06, 0x28], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x0a, 0x28, 0x00, 0xd7, 0x14, 0x25, 0x00, 0x33, 0x00, 0x5f], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x0a, 0x28, 0x00, 0xd7, 0x14, 0x25, 0x00, 0x33, 0x00, 0x5f], vec![0x30, 0x00, 0x4d, 0xff, 0x1f, 0x04, 0xe8, 0xd9, 0x90, 0xbc, 0x2b, 0x60, 0x5c, 0xf0, 0x82, 0xd7, 0x0d, 0xc4, 0x04, 0xb4, 0xf8, 0x41, 0x0a, 0xbc, 0x24, 0xa6, 0x00, 0xf0, 0xfc, 0xc3, 0xd1, 0xa5, 0x08, 0x03, 0x82, 0xc4, 0x00, 0x80, 0x83, 0xf6, 0xff, 0x1f, 0x04, 0xe8, 0xd9, 0x90, 0xbc, 0x41, 0x60, 0x0f, 0x87, 0x86, 0xb9, 0x0d, 0xce, 0x01, 0x9c, 0xf8, 0x39, 0x09, 0xd3, 0x2e, 0xad, 0x00, 0x5c, 0xfe, 0xba, 0xf8, 0x58, 0x05, 0x23, 0x8e, 0x1e, 0x02, 0x80, 0x80, 0x0a], vec![0x30, 0x00, 0x1d, 0xff, 0x08, 0xe8, 0x9e, 0x90, 0xbc, 0xaa, 0x68, 0x44, 0x95, 0x26, 0xb8, 0x0d, 0xf9, 0x01, 0x58, 0xf8, 0x4c, 0x0b, 0xbd, 0x00, 0xaa, 0x1b, 0xe6, 0x13, 0xf1], vec![0x30, 0x00, 0x23, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x23, 0x28, 0x90, 0xb5, 0x5f, 0x14, 0x34, 0x4e, 0xce, 0x02, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x4d, 0x28, 0x74, 0x30, 0x64, 0x8c, 0x24, 0x40, 0xd2, 0x9a], vec![0x30, 0x00, 0x28, 0xff, 0x1f, 0x04, 0xe8, 0x9e, 0x90, 0xbc, 0xaa, 0x68, 0x44, 0x95, 0x26, 0xb8, 0x0d, 0xf9, 0x01, 0x58, 0xf8, 0x4c, 0x0b, 0xbd, 0x00, 0xaa, 0x00, 0x62, 0x1b, 0xe6, 0x13, 0xf1, 0x03, 0x7d, 0xae, 0xdf, 0x00, 0x80, 0x83, 0xf4], vec![0x30, 0x00, 0x3e, 0xfe, 0xe8, 0xde, 0x90, 0xbc, 0xf5, 0x60, 0x35, 0xd1, 0xba, 0xbb, 0x0d, 0x14, 0x01, 0x58, 0xf0, 0x5b, 0x0c, 0xbb, 0x26, 0xfe, 0xe8, 0xde, 0x90, 0xbc, 0xf9, 0x40, 0x4f, 0x04, 0xbc, 0xa6, 0x0c, 0xd5, 0x01, 0xb8, 0xe0, 0x63, 0x0d, 0xbb, 0xfe, 0xe8, 0xde, 0x90, 0xbc, 0xf9, 0x60, 0x05, 0x61, 0xbc, 0xa6, 0x0d, 0xa9, 0x00, 0x40, 0xf0, 0x63, 0x0d, 0xd8, 0x26], vec![0x30, 0x00, 0x1f, 0xf3, 0x0f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0x62, 0x20, 0x56, 0xa6, 0x9e, 0xfd, 0x18, 0x00, 0x24, 0xe2, 0x20, 0xe0, 0xa0, 0x00, 0xc8, 0xf3, 0xc9, 0x26, 0x80, 0x80, 0x12], vec![0x30, 0x00, 0x1f, 0xf3, 0x0f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0x62, 0x20, 0x56, 0xa6, 0x9e, 0xfd, 0x18, 0x00, 0x24, 0xe2, 0x20, 0xe0, 0xa0, 0x00, 0xc8, 0xf3, 0xc9, 0x26, 0x80, 0x80, 0x12], vec![0x30, 0x00, 0x17, 0xfe, 0xe8, 0xde, 0x90, 0xbd, 0x0a, 0x60, 0x38, 0x03, 0xc5, 0x3a, 0x0d, 0x65, 0x01, 0xfc, 0xf0, 0x64, 0x0d, 0xc9, 0x26], vec![0x30, 0x00, 0x33, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbc, 0xd0, 0x48, 0x6f, 0x2a, 0x18, 0xcb, 0x07, 0x64, 0x03, 0xe8, 0xe0, 0x57, 0x0a, 0xc0, 0x1f, 0xc6, 0x2d, 0x9b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbc, 0xdb, 0x48, 0x9d, 0xf1, 0x1e, 0xcc, 0x06, 0xec, 0x05, 0x78, 0xe0, 0x5f, 0x0b, 0xbb, 0x36, 0x1f, 0x39, 0x82], vec![0x30, 0x00, 0x23, 0xf1, 0x08, 0xe8, 0xc7, 0x90, 0xbc, 0x38, 0x20, 0x15, 0x00, 0xfd, 0x54, 0xff, 0x50, 0x0a, 0x7a, 0xf1, 0x08, 0xe8, 0xc7, 0x90, 0xbc, 0x52, 0x20, 0x0c, 0x50, 0x00, 0xb3, 0x00, 0x1b, 0x06, 0x28], vec![0x30, 0x00, 0x21, 0xf3, 0x1f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0x62, 0x20, 0x56, 0xa6, 0x9e, 0xfd, 0x18, 0x00, 0x24, 0x01, 0x63, 0xe2, 0x20, 0xe0, 0xa0, 0x00, 0xc8, 0xf3, 0xc9, 0x26, 0x80, 0x80, 0x12], vec![0x30, 0x00, 0x21, 0xf3, 0x1f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0x62, 0x20, 0x56, 0xa6, 0x9e, 0xfd, 0x18, 0x00, 0x24, 0x01, 0x63, 0xe2, 0x20, 0xe0, 0xa0, 0x00, 0xc8, 0xf3, 0xc9, 0x26, 0x80, 0x80, 0x12], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x31, 0x28, 0x0a, 0x45, 0xf1, 0x6c, 0xfe, 0x34, 0x04, 0xcf], vec![0x30, 0x00, 0x41, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbc, 0xd0, 0x48, 0x6f, 0x2a, 0x18, 0xcb, 0x07, 0x64, 0x03, 0xe8, 0xe0, 0x57, 0x0a, 0xc0, 0x00, 0x44, 0x1f, 0xc6, 0x2d, 0x9b, 0x04, 0x6c, 0x05, 0x28, 0x40, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbc, 0xdb, 0x48, 0x9d, 0xf1, 0x1e, 0xcc, 0x06, 0xec, 0x05, 0x78, 0xe0, 0x5f, 0x0b, 0xbb, 0x00, 0x79, 0x36, 0x1f, 0x39, 0x82, 0x08, 0xa7, 0x78, 0x48, 0x40], vec![0x30, 0x00, 0x44, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x4e, 0x28, 0x06, 0x80, 0xf5, 0x23, 0xff, 0x25, 0x03, 0x23, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x74, 0x28, 0x63, 0xd0, 0xf9, 0xec, 0xf8, 0x95, 0x31, 0x5a, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x7b, 0x28, 0x17, 0xe8, 0xfa, 0xea, 0xfe, 0x83, 0x0b, 0xdc, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0xf7, 0x29, 0x80, 0x38, 0x00, 0x0a, 0xe0, 0x07, 0x63, 0x1b, 0x02], vec![0x30, 0x00, 0x6a, 0xff, 0x1f, 0x04, 0xe8, 0xde, 0x90, 0xbc, 0xf5, 0x60, 0x35, 0xd1, 0xba, 0xbb, 0x0d, 0x14, 0x01, 0x58, 0xf0, 0x5b, 0x0c, 0xbb, 0x26, 0x02, 0xd9, 0xe5, 0x51, 0xfc, 0x88, 0x03, 0x25, 0x3c, 0xff, 0x00, 0x80, 0x83, 0xf4, 0xff, 0x1e, 0xe8, 0xde, 0x90, 0xbc, 0xf9, 0x40, 0x4f, 0x04, 0xbc, 0xa6, 0x0c, 0xd5, 0x01, 0xb8, 0xe0, 0x63, 0x0d, 0xbb, 0x02, 0xeb, 0xd8, 0xa0, 0xfc, 0xc1, 0x02, 0xe3, 0x40, 0x1c, 0x40, 0xff, 0x1f, 0x04, 0xe8, 0xde, 0x90, 0xbc, 0xf9, 0x60, 0x05, 0x61, 0xbc, 0xa6, 0x0d, 0xa9, 0x00, 0x40, 0xf0, 0x63, 0x0d, 0xd8, 0x26, 0x03, 0x15, 0xfd, 0x52, 0xff, 0xc7, 0x02, 0x1b, 0x41, 0x71, 0x00, 0x80, 0x80, 0x3b], vec![0x30, 0x00, 0x27, 0xff, 0x1f, 0x04, 0xe8, 0xde, 0x90, 0xbd, 0x0a, 0x60, 0x38, 0x03, 0xc5, 0x3a, 0x0d, 0x65, 0x01, 0xfc, 0xf0, 0x64, 0x0d, 0xc9, 0x26, 0x03, 0xf1, 0xe4, 0x39, 0x03, 0x94, 0x04, 0x85, 0x4d, 0x34, 0x00, 0x80, 0x83, 0xec], vec![0x30, 0x00, 0x16, 0xfe, 0xe8, 0xde, 0x90, 0xbd, 0x21, 0x42, 0x46, 0xcc, 0xd1, 0x40, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x53, 0x0c, 0xb2], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xde, 0x90, 0xbd, 0x21, 0x42, 0x46, 0xcc, 0xd1, 0x40, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x53, 0x0c, 0xb2, 0x03, 0x0e, 0xdf, 0xba, 0x0e, 0x8a, 0x00, 0x0d, 0xa4, 0xea, 0x40], vec![0x30, 0x00, 0x0f, 0xe1, 0x08, 0xe8, 0xb9, 0x90, 0xbc, 0xc6, 0x00, 0xed, 0x5e, 0x03, 0x8d], vec![0x30, 0x00, 0x16, 0xf3, 0x08, 0xe8, 0xdb, 0x90, 0xbc, 0x4d, 0x20, 0x9d, 0xb3, 0x41, 0xb7, 0x18, 0x00, 0xa5, 0x4e, 0xc9, 0xfc, 0xb0], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x02, 0x28, 0x0f, 0xff, 0x13, 0x45, 0x03, 0xa5, 0x07, 0x1f], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x02, 0x28, 0x0f, 0xff, 0x13, 0x45, 0x03, 0xa5, 0x07, 0x1f], vec![0x30, 0x00, 0x16, 0xe1, 0x1e, 0xe8, 0xb9, 0x90, 0xbc, 0xc6, 0x00, 0x00, 0xf2, 0xed, 0x5e, 0x03, 0x8d, 0x03, 0xba, 0x8c, 0x64, 0x26], vec![0x30, 0x00, 0x1d, 0xff, 0x08, 0xe8, 0x9e, 0x90, 0xbc, 0xaa, 0x68, 0x44, 0x95, 0x26, 0xb8, 0x0d, 0xf9, 0x01, 0x58, 0xf8, 0x4c, 0x0b, 0xbd, 0x00, 0xaa, 0x1b, 0xe6, 0x13, 0xf1], vec![0x30, 0x00, 0x21, 0xf3, 0x1f, 0x04, 0xe8, 0xdb, 0x90, 0xbc, 0x4d, 0x20, 0x9d, 0xb3, 0x41, 0xb7, 0x18, 0x00, 0xa5, 0x00, 0x92, 0x4e, 0xc9, 0xfc, 0xb0, 0x0a, 0x02, 0x07, 0x33, 0x26, 0x80, 0x83, 0xf8], vec![0x30, 0x00, 0x28, 0xff, 0x1f, 0x04, 0xe8, 0x9e, 0x90, 0xbc, 0xaa, 0x68, 0x44, 0x95, 0x26, 0xb8, 0x0d, 0xf9, 0x01, 0x58, 0xf8, 0x4c, 0x0b, 0xbd, 0x00, 0xaa, 0x00, 0x62, 0x1b, 0xe6, 0x13, 0xf1, 0x03, 0x7d, 0xae, 0xdf, 0x00, 0x80, 0x83, 0xf4], vec![0x30, 0x00, 0x0f, 0xe1, 0x12, 0xe8, 0xd6, 0x90, 0xbd, 0x51, 0x00, 0x0a, 0x1a, 0x21, 0x80], vec![0x30, 0x00, 0x0f, 0xe1, 0x12, 0xe8, 0xd6, 0x90, 0xbd, 0x51, 0x00, 0x0a, 0x1a, 0x21, 0x80], vec![0x30, 0x00, 0x52, 0xfd, 0x1e, 0xe8, 0xc7, 0x90, 0xbb, 0xfa, 0x60, 0x10, 0xc6, 0xf5, 0x0c, 0x04, 0x00, 0x00, 0x7c, 0x00, 0x03, 0xfd, 0xc6, 0x08, 0x16, 0x02, 0x86, 0x6f, 0x30, 0x06, 0xf1, 0x1e, 0xe8, 0xc7, 0x90, 0xbc, 0xa1, 0x21, 0x80, 0x38, 0x00, 0x0a, 0xe9, 0x01, 0x22, 0x07, 0x69, 0x1b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0xfd, 0x1e, 0xe8, 0xc7, 0x90, 0xbc, 0xf3, 0x41, 0x80, 0x4d, 0xcc, 0x15, 0xb3, 0x02, 0x18, 0x00, 0x00, 0x01, 0x7b, 0x13, 0xc0, 0x21, 0x83, 0x00, 0x00, 0x15, 0xb3, 0x46], vec![0x30, 0x00, 0x44, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x4e, 0x28, 0x06, 0x80, 0xf5, 0x23, 0xff, 0x25, 0x03, 0x23, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x74, 0x28, 0x63, 0xd0, 0xf9, 0xec, 0xf8, 0x95, 0x31, 0x5a, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0x7b, 0x28, 0x17, 0xe8, 0xfa, 0xea, 0xfe, 0x83, 0x0b, 0xdc, 0xf1, 0x08, 0xe8, 0xc8, 0x90, 0xbc, 0xf7, 0x29, 0x80, 0x38, 0x00, 0x0a, 0xe0, 0x07, 0x63, 0x1b, 0x02], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x6e, 0x28, 0x6f, 0x88, 0x68, 0xf5, 0x1d, 0xe2, 0xd0, 0xeb], vec![0x30, 0x00, 0x1d, 0xff, 0x08, 0xe8, 0xd9, 0x90, 0xbc, 0x58, 0x60, 0x41, 0x8a, 0x8a, 0x9b, 0x0d, 0xca, 0x03, 0xcc, 0xf8, 0x39, 0x09, 0xc6, 0x24, 0xaa, 0xf7, 0x8e, 0xe0, 0x56], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc9, 0x90, 0xbc, 0x6e, 0x28, 0x6f, 0x88, 0x68, 0xf5, 0x1d, 0xe2, 0xd0, 0xeb], vec![0x30, 0x00, 0x52, 0xfd, 0x1e, 0xe8, 0xc7, 0x90, 0xbb, 0xfa, 0x60, 0x10, 0xc6, 0xf5, 0x0c, 0x04, 0x00, 0x00, 0x7c, 0x00, 0x03, 0xfd, 0xc6, 0x08, 0x16, 0x02, 0x86, 0x6f, 0x30, 0x06, 0xf1, 0x1e, 0xe8, 0xc7, 0x90, 0xbc, 0xa1, 0x21, 0x80, 0x38, 0x00, 0x0a, 0xe9, 0x01, 0x22, 0x07, 0x69, 0x1b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0xfd, 0x1e, 0xe8, 0xc7, 0x90, 0xbc, 0xf3, 0x41, 0x80, 0x4d, 0xcc, 0x15, 0xb3, 0x02, 0x18, 0x00, 0x00, 0x01, 0x7b, 0x13, 0xc0, 0x21, 0x83, 0x00, 0x00, 0x15, 0xb3, 0x46], vec![0x30, 0x00, 0x35, 0xf1, 0x1f, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x14, 0x20, 0x01, 0xb9, 0xe1, 0x5c, 0x00, 0x07, 0xff, 0x69, 0x00, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0e, 0xf1, 0x1f, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x7d, 0x20, 0x0a, 0x41, 0xef, 0x0c, 0x09, 0x63, 0xfd, 0xee, 0x04, 0xb1, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0e], vec![0x30, 0x00, 0x35, 0xf1, 0x1f, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x14, 0x20, 0x01, 0xb9, 0xe1, 0x5c, 0x00, 0x07, 0xff, 0x69, 0x00, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0e, 0xf1, 0x1f, 0x40, 0xe8, 0xc5, 0x90, 0xbc, 0x7d, 0x20, 0x0a, 0x41, 0xef, 0x0c, 0x09, 0x63, 0xfd, 0xee, 0x04, 0xb1, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0e], vec![0x30, 0x00, 0x28, 0xff, 0x1f, 0x04, 0xe8, 0xd9, 0x90, 0xbc, 0x58, 0x60, 0x41, 0x8a, 0x8a, 0x9b, 0x0d, 0xca, 0x03, 0xcc, 0xf8, 0x39, 0x09, 0xc6, 0x24, 0xaa, 0x00, 0xd4, 0xf7, 0x8e, 0xe0, 0x56, 0x07, 0x72, 0x89, 0xf0, 0x02, 0x80, 0x83, 0xfe], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x5d, 0x28, 0x02, 0x97, 0x1f, 0x70, 0x00, 0xe7, 0x00, 0xee], vec![0x30, 0x00, 0x13, 0xf1, 0x08, 0xe8, 0xc6, 0x90, 0xbc, 0x5d, 0x28, 0x02, 0x97, 0x1f, 0x70, 0x00, 0xe7, 0x00, 0xee], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbd, 0x5c, 0x48, 0xbf, 0x57, 0x5f, 0xf5, 0x09, 0x43, 0x05, 0xa0, 0xe0, 0x4f, 0x09, 0xbb, 0x43, 0xc0, 0xbc, 0x74], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbd, 0x5c, 0x48, 0xbf, 0x57, 0x5f, 0xf5, 0x09, 0x43, 0x05, 0xa0, 0xe0, 0x4f, 0x09, 0xbb, 0x00, 0x1f, 0x43, 0xc0, 0xbc, 0x74, 0x07, 0x6d, 0xcc, 0x46, 0x40], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbd, 0x61, 0x48, 0x46, 0x5a, 0x62, 0x6e, 0x0d, 0x74, 0x04, 0xb8, 0xe0, 0x50, 0x08, 0xc6, 0x17, 0x59, 0xe5, 0xb1], vec![0x30, 0x00, 0x16, 0xf3, 0x08, 0xe8, 0xdb, 0x90, 0xbc, 0x4d, 0x20, 0x9d, 0xb3, 0x41, 0xb7, 0x18, 0x00, 0xa5, 0x4e, 0xc9, 0xfc, 0xb0], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbd, 0x61, 0x48, 0x46, 0x5a, 0x62, 0x6e, 0x0d, 0x74, 0x04, 0xb8, 0xe0, 0x50, 0x08, 0xc6, 0x00, 0x0a, 0x17, 0x59, 0xe5, 0xb1, 0x05, 0x88, 0x69, 0x2d, 0x40], vec![0x30, 0x00, 0x1b, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x63, 0x00, 0x03, 0xd7, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x63, 0x00, 0x03, 0x54, 0x21, 0x80], vec![0x30, 0x00, 0x1b, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x63, 0x00, 0x03, 0xd7, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x63, 0x00, 0x03, 0x54, 0x21, 0x80], vec![0x30, 0x00, 0x0f, 0xe1, 0x12, 0xe8, 0xc9, 0x90, 0xbd, 0x50, 0x08, 0x0a, 0xfd, 0x21, 0x80], vec![0x30, 0x00, 0x21, 0xf3, 0x1f, 0x04, 0xe8, 0xdb, 0x90, 0xbc, 0x4d, 0x20, 0x9d, 0xb3, 0x41, 0xb7, 0x18, 0x00, 0xa5, 0x00, 0x92, 0x4e, 0xc9, 0xfc, 0xb0, 0x0a, 0x02, 0x07, 0x33, 0x26, 0x80, 0x83, 0xf8], vec![0x30, 0x00, 0x1b, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x6a, 0x00, 0x00, 0x56, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x6a, 0x00, 0x05, 0x2e, 0x21, 0x80], vec![0x30, 0x00, 0x1b, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x6a, 0x00, 0x00, 0x56, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc5, 0x90, 0xbd, 0x6a, 0x00, 0x05, 0x2e, 0x21, 0x80], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xa0, 0x90, 0xbc, 0xbd, 0x48, 0xa5, 0xd5, 0xb9, 0xb0, 0x0d, 0x74, 0x84, 0xb4, 0xe0, 0x49, 0x0f, 0xb6, 0xae, 0x19, 0xf3, 0x12], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xa0, 0x90, 0xbc, 0xbd, 0x48, 0xa5, 0xd5, 0xb9, 0xb0, 0x0d, 0x74, 0x84, 0xb4, 0xe0, 0x49, 0x0f, 0xb6, 0x00, 0x5d, 0xae, 0x19, 0xf3, 0x12, 0x06, 0x08, 0x08, 0x70, 0x40], vec![0x30, 0x00, 0x27, 0xe1, 0x12, 0xe8, 0xc8, 0x90, 0xbd, 0x7b, 0x08, 0x06, 0xe3, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc8, 0x90, 0xbd, 0x7b, 0x08, 0x07, 0xb0, 0x21, 0x80, 0xe1, 0x12, 0xe8, 0xc8, 0x90, 0xbd, 0x7b, 0x08, 0x07, 0xde, 0x21, 0x80], vec![0x30, 0x00, 0x0f, 0xe1, 0x12, 0xe8, 0xc9, 0x90, 0xbd, 0x50, 0x08, 0x0a, 0xfd, 0x21, 0x80], vec![0x30, 0x00, 0x26, 0xff, 0x0f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0xd2, 0x60, 0x5c, 0xb7, 0xb4, 0xf9, 0x0d, 0xb9, 0x03, 0x5c, 0xf8, 0x42, 0x0c, 0xbd, 0x22, 0x36, 0xd3, 0x55, 0xf3, 0x9b, 0x05, 0x50, 0x11, 0xb1, 0x00, 0x80, 0x80, 0x08], vec![0x30, 0x00, 0x26, 0xff, 0x0f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0xd2, 0x60, 0x5c, 0xb7, 0xb4, 0xf9, 0x0d, 0xb9, 0x03, 0x5c, 0xf8, 0x42, 0x0c, 0xbd, 0x22, 0x36, 0xd3, 0x55, 0xf3, 0x9b, 0x05, 0x50, 0x11, 0xb1, 0x00, 0x80, 0x80, 0x08], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0x93, 0x90, 0xbd, 0x33, 0x40, 0xa0, 0x34, 0x7f, 0x2b, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x29, 0x06, 0xac, 0x01, 0xb1, 0xaf, 0xec], vec![0x30, 0x00, 0x28, 0xff, 0x1f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0xd2, 0x60, 0x5c, 0xb7, 0xb4, 0xf9, 0x0d, 0xb9, 0x03, 0x5c, 0xf8, 0x42, 0x0c, 0xbd, 0x22, 0x36, 0x00, 0x40, 0xd3, 0x55, 0xf3, 0x9b, 0x05, 0x50, 0x11, 0xb1, 0x00, 0x80, 0x80, 0x08], vec![0x30, 0x00, 0x15, 0xb1, 0x0e, 0xe8, 0xdd, 0x08, 0x75, 0x4a, 0x00, 0x0e, 0x00, 0x15, 0x3a, 0xa5, 0x04, 0x58, 0x30, 0xcb, 0x26], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0x93, 0x90, 0xbd, 0x33, 0x40, 0xa0, 0x34, 0x7f, 0x2b, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x29, 0x06, 0xac, 0x01, 0xb1, 0xaf, 0xec], vec![0x30, 0x00, 0x28, 0xff, 0x1f, 0x04, 0xe8, 0xd7, 0x90, 0xbc, 0xd2, 0x60, 0x5c, 0xb7, 0xb4, 0xf9, 0x0d, 0xb9, 0x03, 0x5c, 0xf8, 0x42, 0x0c, 0xbd, 0x22, 0x36, 0x00, 0x40, 0xd3, 0x55, 0xf3, 0x9b, 0x05, 0x50, 0x11, 0xb1, 0x00, 0x80, 0x80, 0x08], vec![0x30, 0x00, 0x1a, 0xf1, 0x1e, 0xe8, 0xdd, 0x90, 0xbc, 0xe7, 0x08, 0x75, 0x4a, 0x00, 0x0e, 0x00, 0xe7, 0x00, 0x15, 0x3a, 0xa5, 0x04, 0x58, 0x30, 0xcb, 0x26], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0x93, 0x90, 0xbd, 0x33, 0x40, 0xa0, 0x34, 0x7f, 0x2b, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x29, 0x06, 0xac, 0x01, 0xe6, 0x01, 0xb1, 0xaf, 0xec, 0x00, 0xf8, 0x40, 0x00, 0x40], vec![0x30, 0x00, 0x43, 0xff, 0x0e, 0xe8, 0xd8, 0x90, 0xbd, 0x76, 0x4a, 0x3c, 0xe9, 0x44, 0x83, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x44, 0x0a, 0xb1, 0x1e, 0x45, 0xfc, 0xa4, 0x00, 0x06, 0x7e, 0x18, 0x40, 0xff, 0x0f, 0x04, 0xe8, 0xd8, 0x90, 0xbd, 0x71, 0x68, 0x04, 0xb3, 0x41, 0xe5, 0x0d, 0xd4, 0x00, 0x90, 0xf8, 0x44, 0x09, 0xdd, 0x00, 0xa8, 0x02, 0x59, 0xff, 0xe4, 0x03, 0xe9, 0x69, 0xf6, 0x02, 0x80, 0x82, 0x00], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0x93, 0x90, 0xbd, 0x33, 0x40, 0xa0, 0x34, 0x7f, 0x2b, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x29, 0x06, 0xac, 0x01, 0xe6, 0x01, 0xb1, 0xaf, 0xec, 0x00, 0xf8, 0x40, 0x00, 0x40], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbd, 0x70, 0x48, 0x93, 0xf6, 0x69, 0x69, 0x08, 0x9a, 0x04, 0x5c, 0xe0, 0x58, 0x0a, 0xb6, 0x26, 0xf1, 0xc1, 0x19], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbd, 0x70, 0x48, 0x93, 0xf6, 0x69, 0x69, 0x08, 0x9a, 0x04, 0x5c, 0xe0, 0x58, 0x0a, 0xb6, 0x00, 0xf4, 0x26, 0xf1, 0xc1, 0x19, 0x04, 0x4f, 0xeb, 0x29, 0x40], vec![0x30, 0x00, 0x1b, 0xff, 0x08, 0xe8, 0xa4, 0x90, 0xbd, 0x8b, 0x48, 0x39, 0x42, 0x77, 0x0a, 0x0d, 0xad, 0x03, 0xec, 0xe0, 0x57, 0x0a, 0xc8, 0x06, 0x3f, 0xe4, 0x10], vec![0x30, 0x00, 0x37, 0xf1, 0x08, 0xe8, 0xca, 0x90, 0xbc, 0xd5, 0x20, 0x4b, 0x67, 0x17, 0x96, 0x14, 0xa0, 0x1f, 0x8f, 0xf1, 0x09, 0x40, 0xe8, 0xca, 0x90, 0xbc, 0xf1, 0x20, 0xaa, 0x5b, 0x1b, 0x62, 0x35, 0x08, 0x42, 0xa7, 0x06, 0xf1, 0x09, 0x40, 0xe8, 0xca, 0x90, 0xbc, 0xf3, 0x20, 0xaa, 0x87, 0x1b, 0x9e, 0x35, 0x78, 0x42, 0x6a, 0x06], vec![0x30, 0x00, 0x22, 0xff, 0x1e, 0xe8, 0xa4, 0x90, 0xbd, 0x8b, 0x48, 0x39, 0x42, 0x77, 0x0a, 0x0d, 0xad, 0x03, 0xec, 0xe0, 0x57, 0x0a, 0xc8, 0x00, 0xd1, 0x06, 0x3f, 0xe4, 0x10, 0x03, 0x86, 0x6e, 0xee, 0x00], vec![0x30, 0x00, 0x47, 0xff, 0x1e, 0xe8, 0xd8, 0x90, 0xbd, 0x76, 0x4a, 0x3c, 0xe9, 0x44, 0x83, 0x0f, 0xff, 0x3f, 0xd8, 0xe0, 0x44, 0x0a, 0xb1, 0x00, 0x80, 0x1e, 0x45, 0xfc, 0xa4, 0x00, 0x06, 0x7e, 0x18, 0x40, 0xff, 0x1f, 0x04, 0xe8, 0xd8, 0x90, 0xbd, 0x71, 0x68, 0x04, 0xb3, 0x41, 0xe5, 0x0d, 0xd4, 0x00, 0x90, 0xf8, 0x44, 0x09, 0xdd, 0x00, 0xa8, 0x00, 0xc7, 0x02, 0x59, 0xff, 0xe4, 0x03, 0xe9, 0x69, 0xf6, 0x02, 0x80, 0x82, 0x00], ]; cat048_samples } fn _assert_attributes(message: &AsterixMessage) { // I048_010 let attributes = &message.attributes_map; // I048_010 let i048_010_octets = vec![0x19 as u8, 0xC9]; _assert_eq_attribute_bitvec_value(&i048_010_octets, &attributes, "048_I010_SAC", 16, 9); _assert_eq_attribute_bitvec_value(&i048_010_octets, &attributes, "048_I010_SIC", 8, 1); // I048_020 // todo: not sure about bit order, need to check and occasionaly change test code let i048_020_octets = vec![0xA0 as u8]; _assert_eq_attribute_bitvec_value(&i048_020_octets, &attributes, "048_I020_TYP", 8, 6); _assert_eq_attribute_bitvec_value(&i048_020_octets, &attributes, "048_I020_SIM", 5, 5); _assert_eq_attribute_bitvec_value(&i048_020_octets, &attributes, "048_I020_RDP", 4, 4); _assert_eq_attribute_bitvec_value(&i048_020_octets, &attributes, "048_I020_SDP", 3, 3); _assert_eq_attribute_bitvec_value(&i048_020_octets, &attributes, "048_I020_RAB", 2, 2); // I048_140 let i048_140_octets = vec![0x35 as u8, 0x6D, 0x4D]; _assert_eq_attribute_bitvec_value(&i048_140_octets, &attributes, "048_I140_TIME_OF_DAY", 24, 1); // I048_230 let i048_230_octets = vec![0x20 as u8, 0xF5]; _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_COM", 16, 14); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_STAT", 13, 11); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_SI", 10, 10); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_MSSC", 8, 8); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_ARC", 7, 7); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_AIC", 6, 6); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_B1A", 5, 5); _assert_eq_attribute_bitvec_value(&i048_230_octets, &attributes, "048_I230_B1B", 4, 1); // todo: check other attributes? Or an amostrage is good enough } fn _assert_eq_attribute_bitvec_value(octets: &Vec, attributes: &BTreeMap, attr_key: &str, msb_index: usize, lsb_index: usize) { let octets_bits = _get_expected_bits_from_u8_vec(octets); let expected_bits = get_bitvec_subset_as_msb0(&octets_bits, msb_index, lsb_index); let attribute = attributes.get(attr_key).unwrap(); assert_eq!(expected_bits, attribute.bits, "{} bits should match", attr_key); } fn _get_expected_bits_from_u8_vec(vec_u8: &Vec) -> BitVec { // let mut bitvec = (vec_u8).view_bits::().to_bitvec(); let bitvec = get_msb_bits(vec_u8.as_slice()); bitvec }