mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
Fixes unused imports in Rust code generator (#8828)
* Fixes unused imports in Rust code generator * Regenerates generated schemas
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// @generated
|
||||
extern crate alloc;
|
||||
extern crate flatbuffers;
|
||||
use alloc::boxed::Box;
|
||||
use alloc::string::{String, ToString};
|
||||
use alloc::vec::Vec;
|
||||
use core::mem;
|
||||
use core::cmp::Ordering;
|
||||
use self::flatbuffers::{EndianScalar, Follow};
|
||||
use super::*;
|
||||
#[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")]
|
||||
pub const ENUM_MIN_OPTIONAL_BYTE: i8 = 0;
|
||||
@@ -47,8 +40,8 @@ impl OptionalByte {
|
||||
}
|
||||
}
|
||||
}
|
||||
impl core::fmt::Debug for OptionalByte {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
|
||||
impl ::core::fmt::Debug for OptionalByte {
|
||||
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
||||
if let Some(name) = self.variant_name() {
|
||||
f.write_str(name)
|
||||
} else {
|
||||
@@ -56,24 +49,24 @@ impl core::fmt::Debug for OptionalByte {
|
||||
}
|
||||
}
|
||||
}
|
||||
impl<'a> flatbuffers::Follow<'a> for OptionalByte {
|
||||
impl<'a> ::flatbuffers::Follow<'a> for OptionalByte {
|
||||
type Inner = Self;
|
||||
#[inline]
|
||||
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
|
||||
let b = unsafe { flatbuffers::read_scalar_at::<i8>(buf, loc) };
|
||||
let b = unsafe { ::flatbuffers::read_scalar_at::<i8>(buf, loc) };
|
||||
Self(b)
|
||||
}
|
||||
}
|
||||
|
||||
impl flatbuffers::Push for OptionalByte {
|
||||
impl ::flatbuffers::Push for OptionalByte {
|
||||
type Output = OptionalByte;
|
||||
#[inline]
|
||||
unsafe fn push(&self, dst: &mut [u8], _written_len: usize) {
|
||||
unsafe { flatbuffers::emplace_scalar::<i8>(dst, self.0); }
|
||||
unsafe { ::flatbuffers::emplace_scalar::<i8>(dst, self.0) };
|
||||
}
|
||||
}
|
||||
|
||||
impl flatbuffers::EndianScalar for OptionalByte {
|
||||
impl ::flatbuffers::EndianScalar for OptionalByte {
|
||||
type Scalar = i8;
|
||||
#[inline]
|
||||
fn to_little_endian(self) -> i8 {
|
||||
@@ -87,14 +80,13 @@ impl flatbuffers::EndianScalar for OptionalByte {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> flatbuffers::Verifiable for OptionalByte {
|
||||
impl<'a> ::flatbuffers::Verifiable for OptionalByte {
|
||||
#[inline]
|
||||
fn run_verifier(
|
||||
v: &mut flatbuffers::Verifier, pos: usize
|
||||
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
|
||||
use self::flatbuffers::Verifiable;
|
||||
v: &mut ::flatbuffers::Verifier, pos: usize
|
||||
) -> Result<(), ::flatbuffers::InvalidFlatbuffer> {
|
||||
i8::run_verifier(v, pos)
|
||||
}
|
||||
}
|
||||
|
||||
impl flatbuffers::SimpleToVerifyInSlice for OptionalByte {}
|
||||
impl ::flatbuffers::SimpleToVerifyInSlice for OptionalByte {}
|
||||
|
||||
@@ -1,80 +1,73 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
// @generated
|
||||
extern crate alloc;
|
||||
extern crate flatbuffers;
|
||||
use alloc::boxed::Box;
|
||||
use alloc::string::{String, ToString};
|
||||
use alloc::vec::Vec;
|
||||
use core::mem;
|
||||
use core::cmp::Ordering;
|
||||
use self::flatbuffers::{EndianScalar, Follow};
|
||||
use super::*;
|
||||
pub enum ScalarStuffOffset {}
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
|
||||
pub struct ScalarStuff<'a> {
|
||||
pub _tab: flatbuffers::Table<'a>,
|
||||
pub _tab: ::flatbuffers::Table<'a>,
|
||||
}
|
||||
|
||||
impl<'a> flatbuffers::Follow<'a> for ScalarStuff<'a> {
|
||||
impl<'a> ::flatbuffers::Follow<'a> for ScalarStuff<'a> {
|
||||
type Inner = ScalarStuff<'a>;
|
||||
#[inline]
|
||||
unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
|
||||
Self { _tab: unsafe { flatbuffers::Table::new(buf, loc) } }
|
||||
Self { _tab: unsafe { ::flatbuffers::Table::new(buf, loc) } }
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> ScalarStuff<'a> {
|
||||
pub const VT_JUST_I8: flatbuffers::VOffsetT = 4;
|
||||
pub const VT_MAYBE_I8: flatbuffers::VOffsetT = 6;
|
||||
pub const VT_DEFAULT_I8: flatbuffers::VOffsetT = 8;
|
||||
pub const VT_JUST_U8: flatbuffers::VOffsetT = 10;
|
||||
pub const VT_MAYBE_U8: flatbuffers::VOffsetT = 12;
|
||||
pub const VT_DEFAULT_U8: flatbuffers::VOffsetT = 14;
|
||||
pub const VT_JUST_I16: flatbuffers::VOffsetT = 16;
|
||||
pub const VT_MAYBE_I16: flatbuffers::VOffsetT = 18;
|
||||
pub const VT_DEFAULT_I16: flatbuffers::VOffsetT = 20;
|
||||
pub const VT_JUST_U16: flatbuffers::VOffsetT = 22;
|
||||
pub const VT_MAYBE_U16: flatbuffers::VOffsetT = 24;
|
||||
pub const VT_DEFAULT_U16: flatbuffers::VOffsetT = 26;
|
||||
pub const VT_JUST_I32: flatbuffers::VOffsetT = 28;
|
||||
pub const VT_MAYBE_I32: flatbuffers::VOffsetT = 30;
|
||||
pub const VT_DEFAULT_I32: flatbuffers::VOffsetT = 32;
|
||||
pub const VT_JUST_U32: flatbuffers::VOffsetT = 34;
|
||||
pub const VT_MAYBE_U32: flatbuffers::VOffsetT = 36;
|
||||
pub const VT_DEFAULT_U32: flatbuffers::VOffsetT = 38;
|
||||
pub const VT_JUST_I64: flatbuffers::VOffsetT = 40;
|
||||
pub const VT_MAYBE_I64: flatbuffers::VOffsetT = 42;
|
||||
pub const VT_DEFAULT_I64: flatbuffers::VOffsetT = 44;
|
||||
pub const VT_JUST_U64: flatbuffers::VOffsetT = 46;
|
||||
pub const VT_MAYBE_U64: flatbuffers::VOffsetT = 48;
|
||||
pub const VT_DEFAULT_U64: flatbuffers::VOffsetT = 50;
|
||||
pub const VT_JUST_F32: flatbuffers::VOffsetT = 52;
|
||||
pub const VT_MAYBE_F32: flatbuffers::VOffsetT = 54;
|
||||
pub const VT_DEFAULT_F32: flatbuffers::VOffsetT = 56;
|
||||
pub const VT_JUST_F64: flatbuffers::VOffsetT = 58;
|
||||
pub const VT_MAYBE_F64: flatbuffers::VOffsetT = 60;
|
||||
pub const VT_DEFAULT_F64: flatbuffers::VOffsetT = 62;
|
||||
pub const VT_JUST_BOOL: flatbuffers::VOffsetT = 64;
|
||||
pub const VT_MAYBE_BOOL: flatbuffers::VOffsetT = 66;
|
||||
pub const VT_DEFAULT_BOOL: flatbuffers::VOffsetT = 68;
|
||||
pub const VT_JUST_ENUM: flatbuffers::VOffsetT = 70;
|
||||
pub const VT_MAYBE_ENUM: flatbuffers::VOffsetT = 72;
|
||||
pub const VT_DEFAULT_ENUM: flatbuffers::VOffsetT = 74;
|
||||
pub const VT_JUST_I8: ::flatbuffers::VOffsetT = 4;
|
||||
pub const VT_MAYBE_I8: ::flatbuffers::VOffsetT = 6;
|
||||
pub const VT_DEFAULT_I8: ::flatbuffers::VOffsetT = 8;
|
||||
pub const VT_JUST_U8: ::flatbuffers::VOffsetT = 10;
|
||||
pub const VT_MAYBE_U8: ::flatbuffers::VOffsetT = 12;
|
||||
pub const VT_DEFAULT_U8: ::flatbuffers::VOffsetT = 14;
|
||||
pub const VT_JUST_I16: ::flatbuffers::VOffsetT = 16;
|
||||
pub const VT_MAYBE_I16: ::flatbuffers::VOffsetT = 18;
|
||||
pub const VT_DEFAULT_I16: ::flatbuffers::VOffsetT = 20;
|
||||
pub const VT_JUST_U16: ::flatbuffers::VOffsetT = 22;
|
||||
pub const VT_MAYBE_U16: ::flatbuffers::VOffsetT = 24;
|
||||
pub const VT_DEFAULT_U16: ::flatbuffers::VOffsetT = 26;
|
||||
pub const VT_JUST_I32: ::flatbuffers::VOffsetT = 28;
|
||||
pub const VT_MAYBE_I32: ::flatbuffers::VOffsetT = 30;
|
||||
pub const VT_DEFAULT_I32: ::flatbuffers::VOffsetT = 32;
|
||||
pub const VT_JUST_U32: ::flatbuffers::VOffsetT = 34;
|
||||
pub const VT_MAYBE_U32: ::flatbuffers::VOffsetT = 36;
|
||||
pub const VT_DEFAULT_U32: ::flatbuffers::VOffsetT = 38;
|
||||
pub const VT_JUST_I64: ::flatbuffers::VOffsetT = 40;
|
||||
pub const VT_MAYBE_I64: ::flatbuffers::VOffsetT = 42;
|
||||
pub const VT_DEFAULT_I64: ::flatbuffers::VOffsetT = 44;
|
||||
pub const VT_JUST_U64: ::flatbuffers::VOffsetT = 46;
|
||||
pub const VT_MAYBE_U64: ::flatbuffers::VOffsetT = 48;
|
||||
pub const VT_DEFAULT_U64: ::flatbuffers::VOffsetT = 50;
|
||||
pub const VT_JUST_F32: ::flatbuffers::VOffsetT = 52;
|
||||
pub const VT_MAYBE_F32: ::flatbuffers::VOffsetT = 54;
|
||||
pub const VT_DEFAULT_F32: ::flatbuffers::VOffsetT = 56;
|
||||
pub const VT_JUST_F64: ::flatbuffers::VOffsetT = 58;
|
||||
pub const VT_MAYBE_F64: ::flatbuffers::VOffsetT = 60;
|
||||
pub const VT_DEFAULT_F64: ::flatbuffers::VOffsetT = 62;
|
||||
pub const VT_JUST_BOOL: ::flatbuffers::VOffsetT = 64;
|
||||
pub const VT_MAYBE_BOOL: ::flatbuffers::VOffsetT = 66;
|
||||
pub const VT_DEFAULT_BOOL: ::flatbuffers::VOffsetT = 68;
|
||||
pub const VT_JUST_ENUM: ::flatbuffers::VOffsetT = 70;
|
||||
pub const VT_MAYBE_ENUM: ::flatbuffers::VOffsetT = 72;
|
||||
pub const VT_DEFAULT_ENUM: ::flatbuffers::VOffsetT = 74;
|
||||
|
||||
pub const fn get_fully_qualified_name() -> &'static str {
|
||||
"optional_scalars.ScalarStuff"
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub unsafe fn init_from_table(table: flatbuffers::Table<'a>) -> Self {
|
||||
pub unsafe fn init_from_table(table: ::flatbuffers::Table<'a>) -> Self {
|
||||
ScalarStuff { _tab: table }
|
||||
}
|
||||
#[allow(unused_mut)]
|
||||
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
|
||||
_fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr, A>,
|
||||
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: ::flatbuffers::Allocator + 'bldr>(
|
||||
_fbb: &'mut_bldr mut ::flatbuffers::FlatBufferBuilder<'bldr, A>,
|
||||
args: &'args ScalarStuffArgs
|
||||
) -> flatbuffers::WIPOffset<ScalarStuff<'bldr>> {
|
||||
) -> ::flatbuffers::WIPOffset<ScalarStuff<'bldr>> {
|
||||
let mut builder = ScalarStuffBuilder::new(_fbb);
|
||||
builder.add_default_f64(args.default_f64);
|
||||
if let Some(x) = args.maybe_f64 { builder.add_maybe_f64(x); }
|
||||
@@ -446,12 +439,11 @@ impl<'a> ScalarStuff<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl flatbuffers::Verifiable for ScalarStuff<'_> {
|
||||
impl ::flatbuffers::Verifiable for ScalarStuff<'_> {
|
||||
#[inline]
|
||||
fn run_verifier(
|
||||
v: &mut flatbuffers::Verifier, pos: usize
|
||||
) -> Result<(), flatbuffers::InvalidFlatbuffer> {
|
||||
use self::flatbuffers::Verifiable;
|
||||
v: &mut ::flatbuffers::Verifier, pos: usize
|
||||
) -> Result<(), ::flatbuffers::InvalidFlatbuffer> {
|
||||
v.visit_table(pos)?
|
||||
.visit_field::<i8>("just_i8", Self::VT_JUST_I8, false)?
|
||||
.visit_field::<i8>("maybe_i8", Self::VT_MAYBE_I8, false)?
|
||||
@@ -575,11 +567,11 @@ impl<'a> Default for ScalarStuffArgs {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ScalarStuffBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
|
||||
fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
|
||||
start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
|
||||
pub struct ScalarStuffBuilder<'a: 'b, 'b, A: ::flatbuffers::Allocator + 'a> {
|
||||
fbb_: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>,
|
||||
start_: ::flatbuffers::WIPOffset<::flatbuffers::TableUnfinishedWIPOffset>,
|
||||
}
|
||||
impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ScalarStuffBuilder<'a, 'b, A> {
|
||||
impl<'a: 'b, 'b, A: ::flatbuffers::Allocator + 'a> ScalarStuffBuilder<'a, 'b, A> {
|
||||
#[inline]
|
||||
pub fn add_just_i8(&mut self, just_i8: i8) {
|
||||
self.fbb_.push_slot::<i8>(ScalarStuff::VT_JUST_I8, just_i8, 0);
|
||||
@@ -725,7 +717,7 @@ impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ScalarStuffBuilder<'a, 'b, A> {
|
||||
self.fbb_.push_slot::<OptionalByte>(ScalarStuff::VT_DEFAULT_ENUM, default_enum, OptionalByte::One);
|
||||
}
|
||||
#[inline]
|
||||
pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>) -> ScalarStuffBuilder<'a, 'b, A> {
|
||||
pub fn new(_fbb: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>) -> ScalarStuffBuilder<'a, 'b, A> {
|
||||
let start = _fbb.start_table();
|
||||
ScalarStuffBuilder {
|
||||
fbb_: _fbb,
|
||||
@@ -733,14 +725,14 @@ impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ScalarStuffBuilder<'a, 'b, A> {
|
||||
}
|
||||
}
|
||||
#[inline]
|
||||
pub fn finish(self) -> flatbuffers::WIPOffset<ScalarStuff<'a>> {
|
||||
pub fn finish(self) -> ::flatbuffers::WIPOffset<ScalarStuff<'a>> {
|
||||
let o = self.fbb_.end_table(self.start_);
|
||||
flatbuffers::WIPOffset::new(o.value())
|
||||
::flatbuffers::WIPOffset::new(o.value())
|
||||
}
|
||||
}
|
||||
|
||||
impl core::fmt::Debug for ScalarStuff<'_> {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
impl ::core::fmt::Debug for ScalarStuff<'_> {
|
||||
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
|
||||
let mut ds = f.debug_struct("ScalarStuff");
|
||||
ds.field("just_i8", &self.just_i8());
|
||||
ds.field("maybe_i8", &self.maybe_i8());
|
||||
@@ -864,10 +856,10 @@ impl Default for ScalarStuffT {
|
||||
}
|
||||
}
|
||||
impl ScalarStuffT {
|
||||
pub fn pack<'b, A: flatbuffers::Allocator + 'b>(
|
||||
pub fn pack<'b, A: ::flatbuffers::Allocator + 'b>(
|
||||
&self,
|
||||
_fbb: &mut flatbuffers::FlatBufferBuilder<'b, A>
|
||||
) -> flatbuffers::WIPOffset<ScalarStuff<'b>> {
|
||||
_fbb: &mut ::flatbuffers::FlatBufferBuilder<'b, A>
|
||||
) -> ::flatbuffers::WIPOffset<ScalarStuff<'b>> {
|
||||
let just_i8 = self.just_i8;
|
||||
let maybe_i8 = self.maybe_i8;
|
||||
let default_i8 = self.default_i8;
|
||||
@@ -951,8 +943,8 @@ impl ScalarStuffT {
|
||||
/// catch every error, or be maximally performant. For the
|
||||
/// previous, unchecked, behavior use
|
||||
/// `root_as_scalar_stuff_unchecked`.
|
||||
pub fn root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>, flatbuffers::InvalidFlatbuffer> {
|
||||
flatbuffers::root::<ScalarStuff>(buf)
|
||||
pub fn root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>, ::flatbuffers::InvalidFlatbuffer> {
|
||||
::flatbuffers::root::<ScalarStuff>(buf)
|
||||
}
|
||||
#[inline]
|
||||
/// Verifies that a buffer of bytes contains a size prefixed
|
||||
@@ -961,8 +953,8 @@ pub fn root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>, flatbuffers::
|
||||
/// catch every error, or be maximally performant. For the
|
||||
/// previous, unchecked, behavior use
|
||||
/// `size_prefixed_root_as_scalar_stuff_unchecked`.
|
||||
pub fn size_prefixed_root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>, flatbuffers::InvalidFlatbuffer> {
|
||||
flatbuffers::size_prefixed_root::<ScalarStuff>(buf)
|
||||
pub fn size_prefixed_root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>, ::flatbuffers::InvalidFlatbuffer> {
|
||||
::flatbuffers::size_prefixed_root::<ScalarStuff>(buf)
|
||||
}
|
||||
#[inline]
|
||||
/// Verifies, with the given options, that a buffer of bytes
|
||||
@@ -972,10 +964,10 @@ pub fn size_prefixed_root_as_scalar_stuff(buf: &[u8]) -> Result<ScalarStuff<'_>,
|
||||
/// previous, unchecked, behavior use
|
||||
/// `root_as_scalar_stuff_unchecked`.
|
||||
pub fn root_as_scalar_stuff_with_opts<'b, 'o>(
|
||||
opts: &'o flatbuffers::VerifierOptions,
|
||||
opts: &'o ::flatbuffers::VerifierOptions,
|
||||
buf: &'b [u8],
|
||||
) -> Result<ScalarStuff<'b>, flatbuffers::InvalidFlatbuffer> {
|
||||
flatbuffers::root_with_opts::<ScalarStuff<'b>>(opts, buf)
|
||||
) -> Result<ScalarStuff<'b>, ::flatbuffers::InvalidFlatbuffer> {
|
||||
::flatbuffers::root_with_opts::<ScalarStuff<'b>>(opts, buf)
|
||||
}
|
||||
#[inline]
|
||||
/// Verifies, with the given verifier options, that a buffer of
|
||||
@@ -985,47 +977,47 @@ pub fn root_as_scalar_stuff_with_opts<'b, 'o>(
|
||||
/// previous, unchecked, behavior use
|
||||
/// `root_as_scalar_stuff_unchecked`.
|
||||
pub fn size_prefixed_root_as_scalar_stuff_with_opts<'b, 'o>(
|
||||
opts: &'o flatbuffers::VerifierOptions,
|
||||
opts: &'o ::flatbuffers::VerifierOptions,
|
||||
buf: &'b [u8],
|
||||
) -> Result<ScalarStuff<'b>, flatbuffers::InvalidFlatbuffer> {
|
||||
flatbuffers::size_prefixed_root_with_opts::<ScalarStuff<'b>>(opts, buf)
|
||||
) -> Result<ScalarStuff<'b>, ::flatbuffers::InvalidFlatbuffer> {
|
||||
::flatbuffers::size_prefixed_root_with_opts::<ScalarStuff<'b>>(opts, buf)
|
||||
}
|
||||
#[inline]
|
||||
/// Assumes, without verification, that a buffer of bytes contains a ScalarStuff and returns it.
|
||||
/// # Safety
|
||||
/// Callers must trust the given bytes do indeed contain a valid `ScalarStuff`.
|
||||
pub unsafe fn root_as_scalar_stuff_unchecked(buf: &[u8]) -> ScalarStuff<'_> {
|
||||
unsafe { flatbuffers::root_unchecked::<ScalarStuff>(buf) }
|
||||
unsafe { ::flatbuffers::root_unchecked::<ScalarStuff>(buf) }
|
||||
}
|
||||
#[inline]
|
||||
/// Assumes, without verification, that a buffer of bytes contains a size prefixed ScalarStuff and returns it.
|
||||
/// # Safety
|
||||
/// Callers must trust the given bytes do indeed contain a valid size prefixed `ScalarStuff`.
|
||||
pub unsafe fn size_prefixed_root_as_scalar_stuff_unchecked(buf: &[u8]) -> ScalarStuff<'_> {
|
||||
unsafe { flatbuffers::size_prefixed_root_unchecked::<ScalarStuff>(buf) }
|
||||
unsafe { ::flatbuffers::size_prefixed_root_unchecked::<ScalarStuff>(buf) }
|
||||
}
|
||||
pub const SCALAR_STUFF_IDENTIFIER: &str = "NULL";
|
||||
|
||||
#[inline]
|
||||
pub fn scalar_stuff_buffer_has_identifier(buf: &[u8]) -> bool {
|
||||
flatbuffers::buffer_has_identifier(buf, SCALAR_STUFF_IDENTIFIER, false)
|
||||
::flatbuffers::buffer_has_identifier(buf, SCALAR_STUFF_IDENTIFIER, false)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn scalar_stuff_size_prefixed_buffer_has_identifier(buf: &[u8]) -> bool {
|
||||
flatbuffers::buffer_has_identifier(buf, SCALAR_STUFF_IDENTIFIER, true)
|
||||
::flatbuffers::buffer_has_identifier(buf, SCALAR_STUFF_IDENTIFIER, true)
|
||||
}
|
||||
|
||||
pub const SCALAR_STUFF_EXTENSION: &str = "mon";
|
||||
|
||||
#[inline]
|
||||
pub fn finish_scalar_stuff_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(
|
||||
fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
|
||||
root: flatbuffers::WIPOffset<ScalarStuff<'a>>) {
|
||||
pub fn finish_scalar_stuff_buffer<'a, 'b, A: ::flatbuffers::Allocator + 'a>(
|
||||
fbb: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>,
|
||||
root: ::flatbuffers::WIPOffset<ScalarStuff<'a>>) {
|
||||
fbb.finish(root, Some(SCALAR_STUFF_IDENTIFIER));
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn finish_size_prefixed_scalar_stuff_buffer<'a, 'b, A: flatbuffers::Allocator + 'a>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>, root: flatbuffers::WIPOffset<ScalarStuff<'a>>) {
|
||||
pub fn finish_size_prefixed_scalar_stuff_buffer<'a, 'b, A: ::flatbuffers::Allocator + 'a>(fbb: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>, root: ::flatbuffers::WIPOffset<ScalarStuff<'a>>) {
|
||||
fbb.finish_size_prefixed(root, Some(SCALAR_STUFF_IDENTIFIER));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user