Coverage Report

Created: 2025-11-16 06:35

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-rs-1.14.1/src/cbs.rs
Line
Count
Source
1
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
// SPDX-License-Identifier: Apache-2.0 OR ISC
3
4
use crate::aws_lc::{CBS_init, CBS};
5
use core::mem::MaybeUninit;
6
7
#[inline]
8
#[allow(non_snake_case)]
9
0
pub fn build_CBS(data: &[u8]) -> CBS {
10
0
    let mut cbs = MaybeUninit::<CBS>::uninit();
11
0
    unsafe { CBS_init(cbs.as_mut_ptr(), data.as_ptr(), data.len()) };
12
0
    unsafe { cbs.assume_init() }
13
0
}