@@ -237,80 +237,3 @@ impl core::fmt::Debug for FunctionCall<'_> {
237237 ds. finish ( )
238238 }
239239}
240- #[ inline]
241- /// Verifies that a buffer of bytes contains a `FunctionCall`
242- /// and returns it.
243- /// Note that verification is still experimental and may not
244- /// catch every error, or be maximally performant. For the
245- /// previous, unchecked, behavior use
246- /// `root_as_function_call_unchecked`.
247- pub fn root_as_function_call ( buf : & [ u8 ] ) -> Result < FunctionCall , flatbuffers:: InvalidFlatbuffer > {
248- flatbuffers:: root :: < FunctionCall > ( buf)
249- }
250- #[ inline]
251- /// Verifies that a buffer of bytes contains a size prefixed
252- /// `FunctionCall` and returns it.
253- /// Note that verification is still experimental and may not
254- /// catch every error, or be maximally performant. For the
255- /// previous, unchecked, behavior use
256- /// `size_prefixed_root_as_function_call_unchecked`.
257- pub fn size_prefixed_root_as_function_call (
258- buf : & [ u8 ] ,
259- ) -> Result < FunctionCall , flatbuffers:: InvalidFlatbuffer > {
260- flatbuffers:: size_prefixed_root :: < FunctionCall > ( buf)
261- }
262- #[ inline]
263- /// Verifies, with the given options, that a buffer of bytes
264- /// contains a `FunctionCall` and returns it.
265- /// Note that verification is still experimental and may not
266- /// catch every error, or be maximally performant. For the
267- /// previous, unchecked, behavior use
268- /// `root_as_function_call_unchecked`.
269- pub fn root_as_function_call_with_opts < ' b , ' o > (
270- opts : & ' o flatbuffers:: VerifierOptions ,
271- buf : & ' b [ u8 ] ,
272- ) -> Result < FunctionCall < ' b > , flatbuffers:: InvalidFlatbuffer > {
273- flatbuffers:: root_with_opts :: < FunctionCall < ' b > > ( opts, buf)
274- }
275- #[ inline]
276- /// Verifies, with the given verifier options, that a buffer of
277- /// bytes contains a size prefixed `FunctionCall` and returns
278- /// it. Note that verification is still experimental and may not
279- /// catch every error, or be maximally performant. For the
280- /// previous, unchecked, behavior use
281- /// `root_as_function_call_unchecked`.
282- pub fn size_prefixed_root_as_function_call_with_opts < ' b , ' o > (
283- opts : & ' o flatbuffers:: VerifierOptions ,
284- buf : & ' b [ u8 ] ,
285- ) -> Result < FunctionCall < ' b > , flatbuffers:: InvalidFlatbuffer > {
286- flatbuffers:: size_prefixed_root_with_opts :: < FunctionCall < ' b > > ( opts, buf)
287- }
288- #[ inline]
289- /// Assumes, without verification, that a buffer of bytes contains a FunctionCall and returns it.
290- /// # Safety
291- /// Callers must trust the given bytes do indeed contain a valid `FunctionCall`.
292- pub unsafe fn root_as_function_call_unchecked ( buf : & [ u8 ] ) -> FunctionCall {
293- flatbuffers:: root_unchecked :: < FunctionCall > ( buf)
294- }
295- #[ inline]
296- /// Assumes, without verification, that a buffer of bytes contains a size prefixed FunctionCall and returns it.
297- /// # Safety
298- /// Callers must trust the given bytes do indeed contain a valid size prefixed `FunctionCall`.
299- pub unsafe fn size_prefixed_root_as_function_call_unchecked ( buf : & [ u8 ] ) -> FunctionCall {
300- flatbuffers:: size_prefixed_root_unchecked :: < FunctionCall > ( buf)
301- }
302- #[ inline]
303- pub fn finish_function_call_buffer < ' a , ' b , A : flatbuffers:: Allocator + ' a > (
304- fbb : & ' b mut flatbuffers:: FlatBufferBuilder < ' a , A > ,
305- root : flatbuffers:: WIPOffset < FunctionCall < ' a > > ,
306- ) {
307- fbb. finish ( root, None ) ;
308- }
309-
310- #[ inline]
311- pub fn finish_size_prefixed_function_call_buffer < ' a , ' b , A : flatbuffers:: Allocator + ' a > (
312- fbb : & ' b mut flatbuffers:: FlatBufferBuilder < ' a , A > ,
313- root : flatbuffers:: WIPOffset < FunctionCall < ' a > > ,
314- ) {
315- fbb. finish_size_prefixed ( root, None ) ;
316- }
0 commit comments