pub(crate) unsafe fn from_parts(
        data: *mut (),
        len: usize,
        sample_format: SampleFormat,
    ) -> Self {
        Data {
            data,
            len,
            sample_format,
        }
    }
// Internal constructor for host implementations to use.
//
// The following requirements must be met in order for the safety of `Data`'s public API.
//
// - The `data` pointer must point to the first sample in the slice containing all samples.
// - The `len` must describe the length of the buffer as a number of samples in the expected
//   format specified via the `sample_format` argument.
// - The `sample_format` must correctly represent the underlying sample data delivered/expected
//   by the stream.
Internal constructor for host implementations to use.
The following requirements must be met in order for the safety of `Data`'s public API.

The `data` pointer must point to the first sample in the slice containing all samples.
The `len` must describe the length of the buffer as a number of samples in the expected
format specified via the `sample_format` argument.
The `sample_format` must correctly represent the underlying sample data delivered/expected
by the stream.
Internal constructor for host implementations to use . The following requirements must be met in order for the safety of ` Data ` ' s public API . The ` data ` pointer must point to the first sample in the slice containing all samples . The ` len ` must describe the length of the buffer as a number of samples in the expected format specified via the ` sample_format ` argument . The ` sample_format ` must correctly represent the underlying sample data delivered / expected by the stream .
pub(crate) unsafe fn from_parts(
        data: *mut (),
        len: usize,
        sample_format: SampleFormat,
    ) -> Self {
        Data {
            data,
            len,
            sample_format,
        }
    }
pub ( crate ) unsafe fn from_parts ( data : * mut ( ) , len : usize , sample_format : SampleFormat , ) -> Self { Data { data , len , sample_format , } }
Internal constructor for host implementations to use.
Internal constructor for host implementations to use .
data
*mut ()
len
usize
sample_format
SampleFormat
data
*mut ()
len
usize
sample_format
SampleFormat