dlt-core 0.20.1

Parser and writer for autosar DLT Diagnostic Log and Trace
// Copyright 2021 by Accenture ESR
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#[macro_use]
mod dlt_tests;
mod dlt_parse_tests;
#[cfg(feature = "fibex")]
mod fibex_tests;
#[cfg(feature = "statistics")]
mod statistics_tests;

#[rustfmt::skip]
pub(crate) static DLT_MESSAGE: &[u8] = &[
    0x3D, 0x1E, 0x00, 0xA8, 0x48, 0x46, 0x50, 0x50, 0x00, 0x00, 0x02, 0x48, 0x00, 0x1C, 0x76, 0x49, 
    0x51, 0x08, 0x50, 0x61, 0x72, 0x61, 0x76, 0x63, 0x73, 0x6F, 0x00, 0x82, 0x00, 0x00, 0x1A, 0x00, 
    0x5B, 0x35, 0x38, 0x34, 0x3A, 0x20, 0x53, 0x6F, 0x6D, 0x65, 0x49, 0x70, 0x50, 0x6F, 0x73, 0x69, 
    0x78, 0x43, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x5D, 0x20, 0x00, 0x00, 0x82, 0x00, 0x00, 0x12, 0x00, 
    0x53, 0x65, 0x6E, 0x64, 0x53, 0x6F, 0x6D, 0x65, 0x49, 0x70, 0x4D, 0x65, 0x73, 0x73, 0x61, 0x67, 
    0x65, 0x00, 0x00, 0x82, 0x00, 0x00, 0x02, 0x00, 0x3A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x10, 0x01,
    0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x11, 0x00, 0x3A, 0x20, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6E, 
    0x63, 0x65, 0x5F, 0x69, 0x64, 0x20, 0x30, 0x78, 0x00, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 
    0x82, 0x00, 0x00, 0x17, 0x00, 0x20, 0x6D, 0x65, 0x6D, 0x6F, 0x72, 0x79, 0x20, 0x62, 0x75, 0x66, 
    0x66, 0x65, 0x72, 0x20, 0x6C, 0x65, 0x6E, 0x67, 0x74, 0x68, 0x20, 0x00, 0x44, 0x00, 0x00, 0x00, 
    0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
];

#[rustfmt::skip]
pub(crate) static DLT_MESSAGE_WITH_STORAGE_HEADER: &[u8] = &[
    0x44, 0x4C, 0x54, 0x01, 0x46, 0x93, 0x01, 0x5D, 0x79, 0x39, 0x0E, 0x00, 0x48, 0x46, 0x50, 0x50, 
    0x3D, 0x1E, 0x00, 0xA8, 0x48, 0x46, 0x50, 0x50, 0x00, 0x00, 0x02, 0x48, 0x00, 0x1C, 0x76, 0x49, 
    0x51, 0x08, 0x50, 0x61, 0x72, 0x61, 0x76, 0x63, 0x73, 0x6F, 0x00, 0x82, 0x00, 0x00, 0x1A, 0x00, 
    0x5B, 0x35, 0x38, 0x34, 0x3A, 0x20, 0x53, 0x6F, 0x6D, 0x65, 0x49, 0x70, 0x50, 0x6F, 0x73, 0x69, 
    0x78, 0x43, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x5D, 0x20, 0x00, 0x00, 0x82, 0x00, 0x00, 0x12, 0x00, 
    0x53, 0x65, 0x6E, 0x64, 0x53, 0x6F, 0x6D, 0x65, 0x49, 0x70, 0x4D, 0x65, 0x73, 0x73, 0x61, 0x67, 
    0x65, 0x00, 0x00, 0x82, 0x00, 0x00, 0x02, 0x00, 0x3A, 0x00, 0x23, 0x00, 0x00, 0x00, 0x10, 0x01,
    0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x11, 0x00, 0x3A, 0x20, 0x69, 0x6E, 0x73, 0x74, 0x61, 0x6E, 
    0x63, 0x65, 0x5F, 0x69, 0x64, 0x20, 0x30, 0x78, 0x00, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 
    0x82, 0x00, 0x00, 0x17, 0x00, 0x20, 0x6D, 0x65, 0x6D, 0x6F, 0x72, 0x79, 0x20, 0x62, 0x75, 0x66, 
    0x66, 0x65, 0x72, 0x20, 0x6C, 0x65, 0x6E, 0x67, 0x74, 0x68, 0x20, 0x00, 0x44, 0x00, 0x00, 0x00, 
    0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
];