|
|
@@ -112,7 +112,7 @@ pub mod minknow {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- impl<'a> flatbuffers::Verifiable for ContentType {
|
|
|
+ impl flatbuffers::Verifiable for ContentType {
|
|
|
#[inline]
|
|
|
fn run_verifier(
|
|
|
v: &mut flatbuffers::Verifier,
|
|
|
@@ -199,7 +199,7 @@ pub mod minknow {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- impl<'a> flatbuffers::Verifiable for Format {
|
|
|
+ impl flatbuffers::Verifiable for Format {
|
|
|
#[inline]
|
|
|
fn run_verifier(
|
|
|
v: &mut flatbuffers::Verifier,
|
|
|
@@ -235,6 +235,14 @@ pub mod minknow {
|
|
|
pub const VT_CONTENT_TYPE: flatbuffers::VOffsetT = 10;
|
|
|
|
|
|
#[inline]
|
|
|
+ /// # Safety
|
|
|
+ ///
|
|
|
+ /// `table` must be a valid FlatBuffers `Footer` table. It is assumed that:
|
|
|
+ /// - `table` was constructed from a buffer containing a well-formed `Footer`.
|
|
|
+ /// - The lifetime `'a` matches the underlying buffer's lifetime.
|
|
|
+ ///
|
|
|
+ /// Calling this with an invalid table may lead to undefined behavior when
|
|
|
+ /// accessing fields through the resulting `Footer`.
|
|
|
pub unsafe fn init_from_table(table: flatbuffers::Table<'a>) -> Self {
|
|
|
EmbeddedFile { _tab: table }
|
|
|
}
|
|
|
@@ -322,7 +330,7 @@ pub mod minknow {
|
|
|
pub format: Format,
|
|
|
pub content_type: ContentType,
|
|
|
}
|
|
|
- impl<'a> Default for EmbeddedFileArgs {
|
|
|
+ impl Default for EmbeddedFileArgs {
|
|
|
#[inline]
|
|
|
fn default() -> Self {
|
|
|
EmbeddedFileArgs {
|
|
|
@@ -413,6 +421,14 @@ pub mod minknow {
|
|
|
pub const VT_CONTENTS: flatbuffers::VOffsetT = 10;
|
|
|
|
|
|
#[inline]
|
|
|
+ /// # Safety
|
|
|
+ ///
|
|
|
+ /// `table` must be a valid FlatBuffers `Footer` table. It is assumed that:
|
|
|
+ /// - `table` was constructed from a buffer containing a well-formed `Footer`.
|
|
|
+ /// - The lifetime `'a` matches the underlying buffer's lifetime.
|
|
|
+ ///
|
|
|
+ /// Calling this with an invalid table may lead to undefined behavior when
|
|
|
+ /// accessing fields through the resulting `Footer`.
|
|
|
pub unsafe fn init_from_table(table: flatbuffers::Table<'a>) -> Self {
|
|
|
Footer { _tab: table }
|
|
|
}
|
|
|
@@ -594,7 +610,7 @@ pub mod minknow {
|
|
|
/// catch every error, or be maximally performant. For the
|
|
|
/// previous, unchecked, behavior use
|
|
|
/// `root_as_footer_unchecked`.
|
|
|
- pub fn root_as_footer(buf: &[u8]) -> Result<Footer, flatbuffers::InvalidFlatbuffer> {
|
|
|
+ pub fn root_as_footer(buf: &[u8]) -> Result<Footer<'_>, flatbuffers::InvalidFlatbuffer> {
|
|
|
flatbuffers::root::<Footer>(buf)
|
|
|
}
|
|
|
#[inline]
|
|
|
@@ -606,7 +622,7 @@ pub mod minknow {
|
|
|
/// `size_prefixed_root_as_footer_unchecked`.
|
|
|
pub fn size_prefixed_root_as_footer(
|
|
|
buf: &[u8],
|
|
|
- ) -> Result<Footer, flatbuffers::InvalidFlatbuffer> {
|
|
|
+ ) -> Result<Footer<'_>, flatbuffers::InvalidFlatbuffer> {
|
|
|
flatbuffers::size_prefixed_root::<Footer>(buf)
|
|
|
}
|
|
|
#[inline]
|
|
|
@@ -639,14 +655,14 @@ pub mod minknow {
|
|
|
/// Assumes, without verification, that a buffer of bytes contains a Footer and returns it.
|
|
|
/// # Safety
|
|
|
/// Callers must trust the given bytes do indeed contain a valid `Footer`.
|
|
|
- pub unsafe fn root_as_footer_unchecked(buf: &[u8]) -> Footer {
|
|
|
+ pub unsafe fn root_as_footer_unchecked(buf: &[u8]) -> Footer<'_> {
|
|
|
flatbuffers::root_unchecked::<Footer>(buf)
|
|
|
}
|
|
|
#[inline]
|
|
|
/// Assumes, without verification, that a buffer of bytes contains a size prefixed Footer and returns it.
|
|
|
/// # Safety
|
|
|
/// Callers must trust the given bytes do indeed contain a valid size prefixed `Footer`.
|
|
|
- pub unsafe fn size_prefixed_root_as_footer_unchecked(buf: &[u8]) -> Footer {
|
|
|
+ pub unsafe fn size_prefixed_root_as_footer_unchecked(buf: &[u8]) -> Footer<'_> {
|
|
|
flatbuffers::size_prefixed_root_unchecked::<Footer>(buf)
|
|
|
}
|
|
|
#[inline]
|