diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c98759c6..f880d9967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,6 +383,7 @@ foreach(target -Wunused-result -Wconversion -Wno-sign-conversion>) + target_compile_options(${target} PRIVATE -Wno-misleading-indentation) elseif(CMAKE_C_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") target_compile_options(${target} diff --git a/dev/update_fbs.sh b/dev/update_fbs.sh index e6f7fdb7b..787e13c68 100755 --- a/dev/update_fbs.sh +++ b/dev/update_fbs.sh @@ -16,7 +16,8 @@ # under the License. # get the .fbs files from the arrow repo -mkdir format && cd format +mkdir -p format && cd format + curl -L https://github.com/apache/arrow/raw/main/format/Schema.fbs --output Schema.fbs curl -L https://github.com/apache/arrow/raw/main/format/Tensor.fbs --output Tensor.fbs curl -L https://github.com/apache/arrow/raw/main/format/SparseTensor.fbs --output SparseTensor.fbs @@ -24,7 +25,7 @@ curl -L https://github.com/apache/arrow/raw/main/format/Message.fbs --output Mes curl -L https://github.com/apache/arrow/raw/main/format/File.fbs --output File.fbs # compile using flatcc -flatcc --common --reader --builder --verifier --recursive --outfile ../src/nanoarrow/nanoarrow_ipc_flatcc_generated.h *.fbs +flatcc --common --reader --builder --verifier --recursive --outfile ../../src/nanoarrow/ipc/flatcc_generated.h *.fbs # clean up cd .. diff --git a/dev/update_vendored_flatcc.sh b/dev/update_vendored_flatcc.sh index f68e3141e..716e5f971 100755 --- a/dev/update_vendored_flatcc.sh +++ b/dev/update_vendored_flatcc.sh @@ -15,64 +15,61 @@ # specific language governing permissions and limitations # under the License. -# Download a flatcc release -curl -L https://github.com/dvidelabs/flatcc/archive/refs/tags/v0.6.1.zip --output flatcc-src.zip -unzip flatcc-src.zip -d flatcc-src -FLATCC_SRC_DIR=flatcc-src/`ls flatcc-src` +REPO=`git rev-parse --show-toplevel` +if [ -z "$REPO" ] +then exit 1 +fi + +# Download flatcc +git clone https://github.com/dvidelabs/flatcc.git +git -C flatcc checkout bf4f67a16d85541e474f1d67b8fb64913ba72bc7 # Remove previous vendored flatcc -rm -rf ../thirdparty/flatcc +rm -rf $REPO/thirdparty/flatcc # Create the folders we need to exist -mkdir -p ../thirdparty/flatcc/src/runtime -mkdir -p ../thirdparty/flatcc/include/flatcc/portable +mkdir -p $REPO/thirdparty/flatcc/src/runtime +mkdir -p $REPO/thirdparty/flatcc/include/flatcc/portable # The only part of the runtime we need -cp $FLATCC_SRC_DIR/src/runtime/emitter.c \ - $FLATCC_SRC_DIR/src/runtime/builder.c \ - $FLATCC_SRC_DIR/src/runtime/verifier.c \ - $FLATCC_SRC_DIR/src/runtime/refmap.c \ - ../thirdparty/flatcc/src/runtime/ +cp flatcc/src/runtime/emitter.c \ + flatcc/src/runtime/builder.c \ + flatcc/src/runtime/verifier.c \ + flatcc/src/runtime/refmap.c \ + $REPO/thirdparty/flatcc/src/runtime/ # We also need the headers for those sources. makedepend # can get those for us in topological order. -pushd $FLATCC_SRC_DIR/include # List object dependencies (warns that it can't find system headers, which is OK) # This list is in topological order and could be used for a single-file include; # however, this approach is easier to support alongside a previous installation # of the flatcc runtime. -makedepend -s#: -f- -- -I. -DFLATCC_PORTABLE -- 2>/dev/null \ - ../src/runtime/emitter.c \ - ../src/runtime/builder.c \ - ../src/runtime/verifier.c \ - ../src/runtime/refmap.c \ - ../src/nanoarrow/nanoarrow_ipc.c | \ +makedepend -s#: -f- -- -Iflatcc/include -I$REPO/src -DFLATCC_PORTABLE -- 2>/dev/null \ + `ls $REPO/thirdparty/flatcc/src/runtime/*.c` `ls $REPO/src/nanoarrow/ipc/*.c` | \ # Remove the '.o: ' prefix sed 's/[^:]*: *//' | \ # Spaces to new lines sed 's/ /\n/' | \ + # Remove system headers + sed '/^\//d' | \ # Only unique lines (but don't sort to preserve topological order) awk '!x[$0]++' | \ + # Remove anything having to do with nanoarrow + sed '/nanoarrow/d' | \ # Remove blank lines - sed '/^$/d' | \ - # Or anything having to do with nanoarrow - sed '/nanoarrow/d' > ../../../flatcc-headers.txt + sed '/^$/d' > flatcc-headers.txt -popd +cat flatcc-headers.txt # Copy the headers we need. Using loops because cp --parents is not portable. -for file in $(cat flatcc-headers.txt | sed /portable/d); do - cp "$FLATCC_SRC_DIR/include/$file" ../thirdparty/flatcc/include/flatcc -done -for file in $(cat flatcc-headers.txt | sed -n /portable/p); do - cp "$FLATCC_SRC_DIR/include/$file" ../thirdparty/flatcc/include/flatcc/portable; +for file in $(cat flatcc-headers.txt); do + cp "$file" "$REPO/thirdparty/$file" done # And the license -cp $FLATCC_SRC_DIR/LICENSE ../thirdparty/flatcc +cp flatcc/LICENSE $REPO/thirdparty/flatcc/LICENSE # clean up -rm -rf flatcc-src -rm flatcc-src.zip +rm -rf flatcc rm flatcc-headers.txt diff --git a/src/nanoarrow/ipc/encoder.c b/src/nanoarrow/ipc/encoder.c index 890fe65eb..13b72c74c 100644 --- a/src/nanoarrow/ipc/encoder.c +++ b/src/nanoarrow/ipc/encoder.c @@ -428,13 +428,13 @@ static ArrowErrorCode ArrowIpcEncodeSchema(flatcc_builder_t* builder, &ns(Schema_fields_push_end), error)); FLATCC_RETURN_UNLESS_0(Schema_fields_end(builder), error); + FLATCC_RETURN_UNLESS_0(Schema_custom_metadata_start(builder), error); if (schema->metadata) { - FLATCC_RETURN_UNLESS_0(Schema_custom_metadata_start(builder), error); NANOARROW_RETURN_NOT_OK( ArrowIpcEncodeMetadata(builder, schema, &ns(Schema_custom_metadata_push_start), &ns(Schema_custom_metadata_push_end), error)); - FLATCC_RETURN_UNLESS_0(Schema_custom_metadata_end(builder), error); } + FLATCC_RETURN_UNLESS_0(Schema_custom_metadata_end(builder), error); FLATCC_RETURN_UNLESS_0(Schema_features_start(builder), error); FLATCC_RETURN_UNLESS_0(Schema_features_end(builder), error); diff --git a/src/nanoarrow/ipc/flatcc_generated.h b/src/nanoarrow/ipc/flatcc_generated.h index 8237e99b9..a78a73f80 100644 --- a/src/nanoarrow/ipc/flatcc_generated.h +++ b/src/nanoarrow/ipc/flatcc_generated.h @@ -1,7 +1,7 @@ #ifndef FLATBUFFERS_COMMON_READER_H #define FLATBUFFERS_COMMON_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ /* Common FlatBuffers read functionality for C. */ @@ -189,7 +189,7 @@ static inline int N ## _ ## NK ## _is_present(N ## _table_t t__tmp)\ __## NS ## field_present(ID, t__tmp)\ static inline T ## _union_t N ## _ ## NK ## _union(N ## _table_t t__tmp)\ { T ## _union_t u__tmp = { 0, 0 }; u__tmp.type = N ## _ ## NK ## _type_get(t__tmp);\ - if (u__tmp.type == 0) { return u__tmp; } u__tmp.value = N ## _ ## NK ## _get(t__tmp); return u__tmp; }\ + if (u__tmp.type == 0) return u__tmp; u__tmp.value = N ## _ ## NK ## _get(t__tmp); return u__tmp; }\ static inline NS ## string_t N ## _ ## NK ## _as_string(N ## _table_t t__tmp)\ { return NS ## string_cast_from_generic(N ## _ ## NK ## _get(t__tmp)); }\ @@ -200,7 +200,7 @@ static inline T ## _union_t T ## _union_vec_at(T ## _union_vec_t uv__tmp, size_t { T ## _union_t u__tmp = { 0, 0 }; size_t n__tmp = NS ## vec_len(uv__tmp.type);\ FLATCC_ASSERT(n__tmp > (i__tmp) && "index out of range"); u__tmp.type = uv__tmp.type[i__tmp];\ /* Unknown type is treated as NONE for schema evolution. */\ - if (u__tmp.type == 0) { return u__tmp; }\ + if (u__tmp.type == 0) return u__tmp;\ u__tmp.value = NS ## generic_vec_at(uv__tmp.value, i__tmp); return u__tmp; }\ static inline NS ## string_t T ## _union_vec_at_as_string(T ## _union_vec_t uv__tmp, size_t i__tmp)\ { return (NS ## string_t) NS ## generic_vec_at_as_string(uv__tmp.value, i__tmp); }\ @@ -579,7 +579,7 @@ static inline N ## _ ## K ## t N ## _as_typed_root(const void *buffer__tmp)\ #ifndef FLATBUFFERS_COMMON_BUILDER_H #define FLATBUFFERS_COMMON_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ /* Common FlatBuffers build functionality for C. */ @@ -810,7 +810,7 @@ static inline N ## _union_vec_ref_t N ## _vec_clone(NS ## builder_t *B, N ##_uni _uvref.type = flatcc_builder_refmap_find(B, vec.type); _uvref.value = flatcc_builder_refmap_find(B, vec.value);\ _len = N ## _union_vec_len(vec); if (_uvref.type == 0) {\ _uvref.type = flatcc_builder_refmap_insert(B, vec.type, (flatcc_builder_create_type_vector(B, vec.type, _len))); }\ - if (_uvref.type == 0) { return _ret; } if (_uvref.value == 0) {\ + if (_uvref.type == 0) return _ret; if (_uvref.value == 0) {\ if (flatcc_builder_start_offset_vector(B)) return _ret;\ for (_i = 0; _i < _len; ++_i) { _uref = N ## _clone(B, N ## _union_vec_at(vec, _i));\ if (!_uref.value || !(flatcc_builder_offset_vector_push(B, _uref.value))) return _ret; }\ @@ -915,11 +915,11 @@ __flatbuffers_build_offset_vector(NS, NS ## string) static inline T *N ## _array_copy(T *p, const T *p2, size_t n)\ { memcpy(p, p2, n * sizeof(T)); return p; }\ static inline T *N ## _array_copy_from_pe(T *p, const T *p2, size_t n)\ -{ size_t i; if (NS ## is_native_pe()) { memcpy(p, p2, n * sizeof(T)); } else\ - { for (i = 0; i < n; ++i) { N ## _copy_from_pe(&p[i], &p2[i]); } } return p; }\ +{ size_t i; if (NS ## is_native_pe()) memcpy(p, p2, n * sizeof(T)); else\ + for (i = 0; i < n; ++i) N ## _copy_from_pe(&p[i], &p2[i]); return p; }\ static inline T *N ## _array_copy_to_pe(T *p, const T *p2, size_t n)\ -{ size_t i; if (NS ## is_native_pe()) { memcpy(p, p2, n * sizeof(T)); } else\ - { for (i = 0; i < n; ++i) { N ## _copy_to_pe(&p[i], &p2[i]); } } return p; } +{ size_t i; if (NS ## is_native_pe()) memcpy(p, p2, n * sizeof(T)); else\ + for (i = 0; i < n; ++i) N ## _copy_to_pe(&p[i], &p2[i]); return p; } #define __flatbuffers_define_scalar_primitives(NS, N, T)\ static inline T *N ## _from_pe(T *p) { return __ ## NS ## from_pe(p, N); }\ static inline T *N ## _to_pe(T *p) { return __ ## NS ## to_pe(p, N); }\ @@ -1264,7 +1264,7 @@ __flatbuffers_build_buffer(flatbuffers_) #ifndef SCHEMA_READER_H #define SCHEMA_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -1303,6 +1303,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_ typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_table_t; +typedef struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_table_t; +typedef struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; @@ -1339,6 +1347,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arro typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_table_t; +typedef struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; @@ -1439,6 +1455,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeList_file_extension #define org_apache_arrow_flatbuf_LargeList_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_ListView_file_identifier +#define org_apache_arrow_flatbuf_ListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_ListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_ListView_identifier +#define org_apache_arrow_flatbuf_ListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_ListView_type_hash ((flatbuffers_thash_t)0x23d37919) +#define org_apache_arrow_flatbuf_ListView_type_identifier "\x19\x79\xd3\x23" +#ifndef org_apache_arrow_flatbuf_ListView_file_extension +#define org_apache_arrow_flatbuf_ListView_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeListView_file_identifier +#define org_apache_arrow_flatbuf_LargeListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeListView_identifier +#define org_apache_arrow_flatbuf_LargeListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeListView_type_hash ((flatbuffers_thash_t)0x28efac02) +#define org_apache_arrow_flatbuf_LargeListView_type_identifier "\x02\xac\xef\x28" +#ifndef org_apache_arrow_flatbuf_LargeListView_file_extension +#define org_apache_arrow_flatbuf_LargeListView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier #define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 #endif @@ -1547,6 +1587,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension #define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_Utf8View_file_identifier +#define org_apache_arrow_flatbuf_Utf8View_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8View_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8View_identifier +#define org_apache_arrow_flatbuf_Utf8View_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8View_type_hash ((flatbuffers_thash_t)0xab7692) +#define org_apache_arrow_flatbuf_Utf8View_type_identifier "\x92\x76\xab\x00" +#ifndef org_apache_arrow_flatbuf_Utf8View_file_extension +#define org_apache_arrow_flatbuf_Utf8View_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_BinaryView_file_identifier +#define org_apache_arrow_flatbuf_BinaryView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_BinaryView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BinaryView_identifier +#define org_apache_arrow_flatbuf_BinaryView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_BinaryView_type_hash ((flatbuffers_thash_t)0x18c52428) +#define org_apache_arrow_flatbuf_BinaryView_type_identifier "\x28\x24\xc5\x18" +#ifndef org_apache_arrow_flatbuf_BinaryView_file_extension +#define org_apache_arrow_flatbuf_BinaryView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier #define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 #endif @@ -2041,6 +2105,29 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) +/** Represents the same logical types that List can, but contains offsets and + * sizes allowing for writes in any order and sharing of child values among + * list values. */ +struct org_apache_arrow_flatbuf_ListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_ListView_vec_len(org_apache_arrow_flatbuf_ListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_ListView_table_t org_apache_arrow_flatbuf_ListView_vec_at(org_apache_arrow_flatbuf_ListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_ListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_ListView) + + +/** Same as ListView, but with 64-bit offsets and sizes, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeListView_vec_len(org_apache_arrow_flatbuf_LargeListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeListView_table_t org_apache_arrow_flatbuf_LargeListView_vec_at(org_apache_arrow_flatbuf_LargeListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeListView) + + struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) @@ -2166,6 +2253,38 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) +/** Logically the same as Utf8, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_Utf8View_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8View_vec_len(org_apache_arrow_flatbuf_Utf8View_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8View_table_t org_apache_arrow_flatbuf_Utf8View_vec_at(org_apache_arrow_flatbuf_Utf8View_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8View_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8View) + + +/** Logically the same as Binary, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_BinaryView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BinaryView_vec_len(org_apache_arrow_flatbuf_BinaryView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BinaryView_table_t org_apache_arrow_flatbuf_BinaryView_vec_at(org_apache_arrow_flatbuf_BinaryView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BinaryView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BinaryView) + + struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) @@ -2360,7 +2479,7 @@ __flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, fl * no indication of how to map this information to a physical point in time. * Naive date-times must be handled with care because of this missing * information, and also because daylight saving time (DST) may make - * some values ambiguous or non-existent. A naive date-time may be + * some values ambiguous or nonexistent. A naive date-time may be * stored as a struct with Date and Time fields. However, it may also be * encoded into a Timestamp column with an empty timezone. The timestamp * values should be computed "as if" the timezone of the date-time values @@ -2438,6 +2557,10 @@ __flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) #define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) #define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) #define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +#define org_apache_arrow_flatbuf_Type_BinaryView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(23)) +#define org_apache_arrow_flatbuf_Type_Utf8View ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(24)) +#define org_apache_arrow_flatbuf_Type_ListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(25)) +#define org_apache_arrow_flatbuf_Type_LargeListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(26)) static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) { @@ -2465,6 +2588,10 @@ static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arr case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; + case org_apache_arrow_flatbuf_Type_BinaryView: return "BinaryView"; + case org_apache_arrow_flatbuf_Type_Utf8View: return "Utf8View"; + case org_apache_arrow_flatbuf_Type_ListView: return "ListView"; + case org_apache_arrow_flatbuf_Type_LargeListView: return "LargeListView"; default: return ""; } } @@ -2495,6 +2622,10 @@ static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_f case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; case org_apache_arrow_flatbuf_Type_LargeList: return 1; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; + case org_apache_arrow_flatbuf_Type_BinaryView: return 1; + case org_apache_arrow_flatbuf_Type_Utf8View: return 1; + case org_apache_arrow_flatbuf_Type_ListView: return 1; + case org_apache_arrow_flatbuf_Type_LargeListView: return 1; default: return 0; } } @@ -2586,7 +2717,7 @@ __flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, #ifndef SCHEMA_BUILDER_H #define SCHEMA_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -2677,6 +2808,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_ListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_ListView_ref_t; +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_ListView, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeListView_ref_t; +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); @@ -2722,6 +2863,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8View_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8View_ref_t; +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BinaryView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BinaryView_ref_t; +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); @@ -2807,6 +2958,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, or static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) +#define __org_apache_arrow_flatbuf_ListView_formal_args +#define __org_apache_arrow_flatbuf_ListView_call_args +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_ListView, org_apache_arrow_flatbuf_ListView_file_identifier, org_apache_arrow_flatbuf_ListView_type_identifier) + +#define __org_apache_arrow_flatbuf_LargeListView_formal_args +#define __org_apache_arrow_flatbuf_LargeListView_call_args +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, org_apache_arrow_flatbuf_LargeListView_file_identifier, org_apache_arrow_flatbuf_LargeListView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); @@ -2852,6 +3013,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) +#define __org_apache_arrow_flatbuf_Utf8View_formal_args +#define __org_apache_arrow_flatbuf_Utf8View_call_args +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, org_apache_arrow_flatbuf_Utf8View_file_identifier, org_apache_arrow_flatbuf_Utf8View_type_identifier) + +#define __org_apache_arrow_flatbuf_BinaryView_formal_args +#define __org_apache_arrow_flatbuf_BinaryView_call_args +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, org_apache_arrow_flatbuf_BinaryView_file_identifier, org_apache_arrow_flatbuf_BinaryView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); @@ -2965,6 +3136,14 @@ static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_BinaryView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8View; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_ListView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeListView; uref.value = ref; return uref; } __flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) @@ -2992,6 +3171,10 @@ static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_c case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); + case 23: return org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_clone(B, (org_apache_arrow_flatbuf_BinaryView_table_t)u.value)); + case 24: return org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_clone(B, (org_apache_arrow_flatbuf_Utf8View_table_t)u.value)); + case 25: return org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_clone(B, (org_apache_arrow_flatbuf_ListView_table_t)u.value)); + case 26: return org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_clone(B, (org_apache_arrow_flatbuf_LargeListView_table_t)u.value)); default: return org_apache_arrow_flatbuf_Type_as_NONE(); } } @@ -3068,6 +3251,42 @@ static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeLi __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); } + +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args) +{ + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_ListView_end(B); +} + +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_ListView_end(B)); +} + + +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeListView_end(B); +} + +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeListView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) @@ -3251,6 +3470,42 @@ static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_Large __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); } + +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8View_end(B); +} + +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8View_end(B)); +} + + +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args) +{ + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_BinaryView_end(B); +} + +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BinaryView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) @@ -3525,6 +3780,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) @@ -3594,7 +3853,7 @@ static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clo #ifndef SCHEMA_VERIFIER_H #define SCHEMA_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -3606,6 +3865,8 @@ static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -3615,6 +3876,8 @@ static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -3654,6 +3917,10 @@ static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_de case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ + case 23: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_BinaryView_verify_table); /* BinaryView */ + case 24: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8View_verify_table); /* Utf8View */ + case 25: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_ListView_verify_table); /* ListView */ + case 26: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeListView_verify_table); /* LargeListView */ default: return flatcc_verify_ok; } } @@ -3663,21 +3930,41 @@ static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); +} + static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3688,21 +3975,41 @@ static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3713,21 +4020,41 @@ static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3738,21 +4065,41 @@ static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3763,21 +4110,131 @@ static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} + static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -3790,21 +4247,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -3817,21 +4294,41 @@ static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, s return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); +} + static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -3845,21 +4342,41 @@ static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); +} + static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -3873,21 +4390,41 @@ static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, s return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); +} + static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -3900,14 +4437,29 @@ static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) @@ -3915,6 +4467,11 @@ static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_typ return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3925,21 +4482,41 @@ static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); } +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); } +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3950,21 +4527,41 @@ static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); } +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); +} + static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); } +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); +} + static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -3975,21 +4572,41 @@ static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -4000,21 +4617,131 @@ static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); +} + +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} + static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4027,21 +4754,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -4052,21 +4799,41 @@ static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -4077,21 +4844,41 @@ static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4106,21 +4893,41 @@ static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4133,21 +4940,41 @@ static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); +} + static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4161,21 +4988,41 @@ static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} + static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4189,21 +5036,41 @@ static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4216,21 +5083,41 @@ static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4243,21 +5130,41 @@ static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4271,21 +5178,41 @@ static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4301,21 +5228,41 @@ static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(con return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4333,21 +5280,41 @@ static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4363,27 +5330,47 @@ static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* SCHEMA_VERIFIER_H */ #ifndef FILE_READER_H #define FILE_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -4488,7 +5475,7 @@ __flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_Footer, custom_met #ifndef FILE_BUILDER_H #define FILE_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FILE_READER_H #include "File_reader.h" @@ -4580,7 +5567,7 @@ static org_apache_arrow_flatbuf_Footer_ref_t org_apache_arrow_flatbuf_Footer_clo #ifndef FILE_VERIFIER_H #define FILE_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FILE_READER_H #include "File_reader.h" @@ -4598,21 +5585,41 @@ static inline int org_apache_arrow_flatbuf_Block_verify_as_root(const void *buf, return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Block_identifier, 24, 8); } +static inline int org_apache_arrow_flatbuf_Block_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Block_identifier, 24, 8); +} + static inline int org_apache_arrow_flatbuf_Block_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Block_type_hash, 24, 8); } +static inline int org_apache_arrow_flatbuf_Block_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Block_type_hash, 24, 8); +} + static inline int org_apache_arrow_flatbuf_Block_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 24, 8); } +static inline int org_apache_arrow_flatbuf_Block_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 24, 8); +} + static inline int org_apache_arrow_flatbuf_Block_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_struct_as_root(buf, bufsiz, fid, 24, 8); } +static inline int org_apache_arrow_flatbuf_Block_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 24, 8); +} + static int org_apache_arrow_flatbuf_Footer_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -4629,27 +5636,47 @@ static inline int org_apache_arrow_flatbuf_Footer_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Footer_identifier, &org_apache_arrow_flatbuf_Footer_verify_table); } +static inline int org_apache_arrow_flatbuf_Footer_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Footer_identifier, &org_apache_arrow_flatbuf_Footer_verify_table); +} + static inline int org_apache_arrow_flatbuf_Footer_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Footer_type_identifier, &org_apache_arrow_flatbuf_Footer_verify_table); } +static inline int org_apache_arrow_flatbuf_Footer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Footer_type_identifier, &org_apache_arrow_flatbuf_Footer_verify_table); +} + static inline int org_apache_arrow_flatbuf_Footer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Footer_verify_table); } +static inline int org_apache_arrow_flatbuf_Footer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Footer_verify_table); +} + static inline int org_apache_arrow_flatbuf_Footer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Footer_verify_table); } +static inline int org_apache_arrow_flatbuf_Footer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Footer_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* FILE_VERIFIER_H */ #ifndef SCHEMA_READER_H #define SCHEMA_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -4688,6 +5715,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_ typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_table_t; +typedef struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_table_t; +typedef struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; @@ -4724,6 +5759,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arro typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_table_t; +typedef struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; @@ -4824,6 +5867,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeList_file_extension #define org_apache_arrow_flatbuf_LargeList_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_ListView_file_identifier +#define org_apache_arrow_flatbuf_ListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_ListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_ListView_identifier +#define org_apache_arrow_flatbuf_ListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_ListView_type_hash ((flatbuffers_thash_t)0x23d37919) +#define org_apache_arrow_flatbuf_ListView_type_identifier "\x19\x79\xd3\x23" +#ifndef org_apache_arrow_flatbuf_ListView_file_extension +#define org_apache_arrow_flatbuf_ListView_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeListView_file_identifier +#define org_apache_arrow_flatbuf_LargeListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeListView_identifier +#define org_apache_arrow_flatbuf_LargeListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeListView_type_hash ((flatbuffers_thash_t)0x28efac02) +#define org_apache_arrow_flatbuf_LargeListView_type_identifier "\x02\xac\xef\x28" +#ifndef org_apache_arrow_flatbuf_LargeListView_file_extension +#define org_apache_arrow_flatbuf_LargeListView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier #define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 #endif @@ -4932,6 +5999,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension #define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_Utf8View_file_identifier +#define org_apache_arrow_flatbuf_Utf8View_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8View_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8View_identifier +#define org_apache_arrow_flatbuf_Utf8View_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8View_type_hash ((flatbuffers_thash_t)0xab7692) +#define org_apache_arrow_flatbuf_Utf8View_type_identifier "\x92\x76\xab\x00" +#ifndef org_apache_arrow_flatbuf_Utf8View_file_extension +#define org_apache_arrow_flatbuf_Utf8View_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_BinaryView_file_identifier +#define org_apache_arrow_flatbuf_BinaryView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_BinaryView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BinaryView_identifier +#define org_apache_arrow_flatbuf_BinaryView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_BinaryView_type_hash ((flatbuffers_thash_t)0x18c52428) +#define org_apache_arrow_flatbuf_BinaryView_type_identifier "\x28\x24\xc5\x18" +#ifndef org_apache_arrow_flatbuf_BinaryView_file_extension +#define org_apache_arrow_flatbuf_BinaryView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier #define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 #endif @@ -5426,6 +6517,29 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) +/** Represents the same logical types that List can, but contains offsets and + * sizes allowing for writes in any order and sharing of child values among + * list values. */ +struct org_apache_arrow_flatbuf_ListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_ListView_vec_len(org_apache_arrow_flatbuf_ListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_ListView_table_t org_apache_arrow_flatbuf_ListView_vec_at(org_apache_arrow_flatbuf_ListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_ListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_ListView) + + +/** Same as ListView, but with 64-bit offsets and sizes, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeListView_vec_len(org_apache_arrow_flatbuf_LargeListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeListView_table_t org_apache_arrow_flatbuf_LargeListView_vec_at(org_apache_arrow_flatbuf_LargeListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeListView) + + struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) @@ -5551,6 +6665,38 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) +/** Logically the same as Utf8, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_Utf8View_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8View_vec_len(org_apache_arrow_flatbuf_Utf8View_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8View_table_t org_apache_arrow_flatbuf_Utf8View_vec_at(org_apache_arrow_flatbuf_Utf8View_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8View_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8View) + + +/** Logically the same as Binary, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_BinaryView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BinaryView_vec_len(org_apache_arrow_flatbuf_BinaryView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BinaryView_table_t org_apache_arrow_flatbuf_BinaryView_vec_at(org_apache_arrow_flatbuf_BinaryView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BinaryView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BinaryView) + + struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) @@ -5745,7 +6891,7 @@ __flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, fl * no indication of how to map this information to a physical point in time. * Naive date-times must be handled with care because of this missing * information, and also because daylight saving time (DST) may make - * some values ambiguous or non-existent. A naive date-time may be + * some values ambiguous or nonexistent. A naive date-time may be * stored as a struct with Date and Time fields. However, it may also be * encoded into a Timestamp column with an empty timezone. The timestamp * values should be computed "as if" the timezone of the date-time values @@ -5823,6 +6969,10 @@ __flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) #define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) #define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) #define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +#define org_apache_arrow_flatbuf_Type_BinaryView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(23)) +#define org_apache_arrow_flatbuf_Type_Utf8View ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(24)) +#define org_apache_arrow_flatbuf_Type_ListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(25)) +#define org_apache_arrow_flatbuf_Type_LargeListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(26)) static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) { @@ -5850,6 +7000,10 @@ static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arr case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; + case org_apache_arrow_flatbuf_Type_BinaryView: return "BinaryView"; + case org_apache_arrow_flatbuf_Type_Utf8View: return "Utf8View"; + case org_apache_arrow_flatbuf_Type_ListView: return "ListView"; + case org_apache_arrow_flatbuf_Type_LargeListView: return "LargeListView"; default: return ""; } } @@ -5880,6 +7034,10 @@ static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_f case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; case org_apache_arrow_flatbuf_Type_LargeList: return 1; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; + case org_apache_arrow_flatbuf_Type_BinaryView: return 1; + case org_apache_arrow_flatbuf_Type_Utf8View: return 1; + case org_apache_arrow_flatbuf_Type_ListView: return 1; + case org_apache_arrow_flatbuf_Type_LargeListView: return 1; default: return 0; } } @@ -5971,7 +7129,7 @@ __flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, #ifndef SCHEMA_BUILDER_H #define SCHEMA_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -6062,6 +7220,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_ListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_ListView_ref_t; +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_ListView, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeListView_ref_t; +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); @@ -6107,6 +7275,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8View_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8View_ref_t; +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BinaryView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BinaryView_ref_t; +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); @@ -6192,6 +7370,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, or static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) +#define __org_apache_arrow_flatbuf_ListView_formal_args +#define __org_apache_arrow_flatbuf_ListView_call_args +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_ListView, org_apache_arrow_flatbuf_ListView_file_identifier, org_apache_arrow_flatbuf_ListView_type_identifier) + +#define __org_apache_arrow_flatbuf_LargeListView_formal_args +#define __org_apache_arrow_flatbuf_LargeListView_call_args +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, org_apache_arrow_flatbuf_LargeListView_file_identifier, org_apache_arrow_flatbuf_LargeListView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); @@ -6237,6 +7425,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) +#define __org_apache_arrow_flatbuf_Utf8View_formal_args +#define __org_apache_arrow_flatbuf_Utf8View_call_args +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, org_apache_arrow_flatbuf_Utf8View_file_identifier, org_apache_arrow_flatbuf_Utf8View_type_identifier) + +#define __org_apache_arrow_flatbuf_BinaryView_formal_args +#define __org_apache_arrow_flatbuf_BinaryView_call_args +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, org_apache_arrow_flatbuf_BinaryView_file_identifier, org_apache_arrow_flatbuf_BinaryView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); @@ -6350,6 +7548,14 @@ static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_BinaryView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8View; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_ListView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeListView; uref.value = ref; return uref; } __flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) @@ -6377,6 +7583,10 @@ static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_c case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); + case 23: return org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_clone(B, (org_apache_arrow_flatbuf_BinaryView_table_t)u.value)); + case 24: return org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_clone(B, (org_apache_arrow_flatbuf_Utf8View_table_t)u.value)); + case 25: return org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_clone(B, (org_apache_arrow_flatbuf_ListView_table_t)u.value)); + case 26: return org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_clone(B, (org_apache_arrow_flatbuf_LargeListView_table_t)u.value)); default: return org_apache_arrow_flatbuf_Type_as_NONE(); } } @@ -6453,6 +7663,42 @@ static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeLi __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); } + +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args) +{ + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_ListView_end(B); +} + +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_ListView_end(B)); +} + + +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeListView_end(B); +} + +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeListView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) @@ -6636,6 +7882,42 @@ static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_Large __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); } + +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8View_end(B); +} + +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8View_end(B)); +} + + +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args) +{ + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_BinaryView_end(B); +} + +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BinaryView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) @@ -6910,6 +8192,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) @@ -6979,7 +8265,7 @@ static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clo #ifndef SCHEMA_VERIFIER_H #define SCHEMA_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -6991,6 +8277,8 @@ static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -7000,6 +8288,8 @@ static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -7039,6 +8329,10 @@ static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_de case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ + case 23: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_BinaryView_verify_table); /* BinaryView */ + case 24: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8View_verify_table); /* Utf8View */ + case 25: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_ListView_verify_table); /* ListView */ + case 26: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeListView_verify_table); /* LargeListView */ default: return flatcc_verify_ok; } } @@ -7048,21 +8342,41 @@ static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); +} + static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -7073,21 +8387,41 @@ static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -7098,21 +8432,41 @@ static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); } +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -7123,21 +8477,41 @@ static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -7148,1690 +8522,1271 @@ static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* listSize */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 1, 1) /* keysSorted */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* mode */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 1, 0, 4, 4, INT64_C(1073741823)) /* typeIds */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* bitWidth */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 1, 1) /* is_signed */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) +static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* listSize */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 1, 1) /* keysSorted */)) return ret; + return flatcc_verify_ok; } -static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } -static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* mode */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 1, 0, 4, 4, INT64_C(1073741823)) /* typeIds */)) return ret; + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } -static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } -static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* byteWidth */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* bitWidth */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 1, 1) /* is_signed */)) return ret; + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } -static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* precision */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 4, 4) /* scale */)) return ret; - if ((ret = flatcc_verify_field(td, 2, 4, 4) /* bitWidth */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) +static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 4, 4) /* bitWidth */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); + return flatcc_verify_ok; } -static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; - if ((ret = flatcc_verify_string_field(td, 1, 0) /* timezone */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); } -static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_size(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - int ret; - if ((ret = flatcc_verify_string_field(td, 0, 0) /* key */)) return ret; - if ((ret = flatcc_verify_string_field(td, 1, 0) /* value */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 8, 8) /* id */)) return ret; - if ((ret = flatcc_verify_table_field(td, 1, 0, &org_apache_arrow_flatbuf_Int_verify_table) /* indexType */)) return ret; - if ((ret = flatcc_verify_field(td, 2, 1, 1) /* isOrdered */)) return ret; - if ((ret = flatcc_verify_field(td, 3, 2, 2) /* dictionaryKind */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td) { - int ret; - if ((ret = flatcc_verify_string_field(td, 0, 0) /* name */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 1, 1) /* nullable */)) return ret; - if ((ret = flatcc_verify_union_field(td, 3, 0, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; - if ((ret = flatcc_verify_table_field(td, 4, 0, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table) /* dictionary */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 5, 0, &org_apache_arrow_flatbuf_Field_verify_table) /* children */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 6, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* endianness */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 1, 0, &org_apache_arrow_flatbuf_Field_verify_table) /* fields */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 2, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 3, 0, 8, 8, INT64_C(536870911)) /* features */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); + return flatcc_verify_ok; } -#include "flatcc/flatcc_epilogue.h" -#endif /* SCHEMA_VERIFIER_H */ -#ifndef TENSOR_READER_H -#define TENSOR_READER_H +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} -#ifndef FLATBUFFERS_COMMON_READER_H -#include "flatbuffers_common_reader.h" -#endif -#ifndef SCHEMA_READER_H -#include "Schema_reader.h" -#endif -#include "flatcc/flatcc_flatbuffers.h" -#ifndef __alignas_is_defined -#include -#endif -#include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier -#define flatbuffers_identifier 0 -#endif -#ifndef flatbuffers_extension -#define flatbuffers_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} -typedef const struct org_apache_arrow_flatbuf_TensorDim_table *org_apache_arrow_flatbuf_TensorDim_table_t; -typedef struct org_apache_arrow_flatbuf_TensorDim_table *org_apache_arrow_flatbuf_TensorDim_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_TensorDim_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_TensorDim_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Tensor_table *org_apache_arrow_flatbuf_Tensor_table_t; -typedef struct org_apache_arrow_flatbuf_Tensor_table *org_apache_arrow_flatbuf_Tensor_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Tensor_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Tensor_mutable_vec_t; -#ifndef org_apache_arrow_flatbuf_TensorDim_file_identifier -#define org_apache_arrow_flatbuf_TensorDim_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_TensorDim_file_identifier */ -#ifndef org_apache_arrow_flatbuf_TensorDim_identifier -#define org_apache_arrow_flatbuf_TensorDim_identifier 0 -#endif -#define org_apache_arrow_flatbuf_TensorDim_type_hash ((flatbuffers_thash_t)0xbc6d7b25) -#define org_apache_arrow_flatbuf_TensorDim_type_identifier "\x25\x7b\x6d\xbc" -#ifndef org_apache_arrow_flatbuf_TensorDim_file_extension -#define org_apache_arrow_flatbuf_TensorDim_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_Tensor_file_identifier -#define org_apache_arrow_flatbuf_Tensor_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Tensor_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Tensor_identifier -#define org_apache_arrow_flatbuf_Tensor_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Tensor_type_hash ((flatbuffers_thash_t)0x1764df19) -#define org_apache_arrow_flatbuf_Tensor_type_identifier "\x19\xdf\x64\x17" -#ifndef org_apache_arrow_flatbuf_Tensor_file_extension -#define org_apache_arrow_flatbuf_Tensor_file_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} -/** ---------------------------------------------------------------------- - * Data structures for dense tensors - * Shape data for a single axis in a tensor */ -struct org_apache_arrow_flatbuf_TensorDim_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_TensorDim_vec_len(org_apache_arrow_flatbuf_TensorDim_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_TensorDim_table_t org_apache_arrow_flatbuf_TensorDim_vec_at(org_apache_arrow_flatbuf_TensorDim_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_TensorDim_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_TensorDim) +static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* byteWidth */)) return ret; + return flatcc_verify_ok; +} -/** Length of dimension */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_TensorDim, size, flatbuffers_int64, int64_t, INT64_C(0)) -/** Name of the dimension, optional */ -__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_TensorDim, name, 0) +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -struct org_apache_arrow_flatbuf_Tensor_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_Tensor_vec_len(org_apache_arrow_flatbuf_Tensor_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Tensor_table_t org_apache_arrow_flatbuf_Tensor_vec_at(org_apache_arrow_flatbuf_Tensor_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Tensor_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Tensor) +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -/** The type of data contained in a value cell. Currently only fixed-width - * value types are supported, no strings or nested types */ -__flatbuffers_define_union_field(flatbuffers_, 1, org_apache_arrow_flatbuf_Tensor, type, org_apache_arrow_flatbuf_Type, 1) -/** The dimensions of the tensor, optionally named */ -__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_Tensor, shape, org_apache_arrow_flatbuf_TensorDim_vec_t, 1) -/** Non-negative byte offsets to advance one value cell along each dimension - * If omitted, default to row-major order (C-like). */ -__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Tensor, strides, flatbuffers_int64_vec_t, 0) -/** The location and size of the tensor's data */ -__flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_Tensor, data, org_apache_arrow_flatbuf_Buffer_struct_t, 1) +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -#include "flatcc/flatcc_epilogue.h" -#endif /* TENSOR_READER_H */ -#ifndef TENSOR_BUILDER_H -#define TENSOR_BUILDER_H +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -#ifndef TENSOR_READER_H -#include "Tensor_reader.h" -#endif -#ifndef FLATBUFFERS_COMMON_BUILDER_H -#include "flatbuffers_common_builder.h" -#endif -#ifndef SCHEMA_BUILDER_H -#include "Schema_builder.h" -#endif -#include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier -#define flatbuffers_identifier 0 -#endif -#ifndef flatbuffers_extension -#define flatbuffers_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_TensorDim_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_TensorDim_ref_t; -static org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_TensorDim_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_TensorDim, 2) +static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Tensor_required[] = { 1, 2, 4, 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Tensor_ref_t; -static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Tensor_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Tensor, 5) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} -#define __org_apache_arrow_flatbuf_TensorDim_formal_args , int64_t v0, flatbuffers_string_ref_t v1 -#define __org_apache_arrow_flatbuf_TensorDim_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_TensorDim_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_TensorDim_file_identifier, org_apache_arrow_flatbuf_TensorDim_type_identifier) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} -#define __org_apache_arrow_flatbuf_Tensor_formal_args , org_apache_arrow_flatbuf_Type_union_ref_t v1, org_apache_arrow_flatbuf_TensorDim_vec_ref_t v2, flatbuffers_int64_vec_ref_t v3, org_apache_arrow_flatbuf_Buffer_t *v4 -#define __org_apache_arrow_flatbuf_Tensor_call_args , v1, v2, v3, v4 -static inline org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Tensor_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Tensor, org_apache_arrow_flatbuf_Tensor_file_identifier, org_apache_arrow_flatbuf_Tensor_type_identifier) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_TensorDim_size, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_TensorDim) -__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_TensorDim_name, org_apache_arrow_flatbuf_TensorDim) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} -static inline org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_TensorDim_formal_args) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - if (org_apache_arrow_flatbuf_TensorDim_start(B) - || org_apache_arrow_flatbuf_TensorDim_size_add(B, v0) - || org_apache_arrow_flatbuf_TensorDim_name_add(B, v1)) { - return 0; - } - return org_apache_arrow_flatbuf_TensorDim_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } -static org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_TensorDim_table_t t) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_TensorDim_start(B) - || org_apache_arrow_flatbuf_TensorDim_size_pick(B, t) - || org_apache_arrow_flatbuf_TensorDim_name_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_TensorDim_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } -__flatbuffers_build_union_field(1, flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Tensor) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) -__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Tensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_Tensor) -__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Tensor_strides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_Tensor) -__flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_Tensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Tensor) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); +} -static inline org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Tensor_formal_args) +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Tensor_start(B) - || org_apache_arrow_flatbuf_Tensor_data_add(B, v4) - || org_apache_arrow_flatbuf_Tensor_type_add_value(B, v1) - || org_apache_arrow_flatbuf_Tensor_shape_add(B, v2) - || org_apache_arrow_flatbuf_Tensor_strides_add(B, v3) - || org_apache_arrow_flatbuf_Tensor_type_add_type(B, v1.type)) { - return 0; - } - return org_apache_arrow_flatbuf_Tensor_end(B); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); } -static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Tensor_table_t t) +static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Tensor_start(B) - || org_apache_arrow_flatbuf_Tensor_data_pick(B, t) - || org_apache_arrow_flatbuf_Tensor_type_pick(B, t) - || org_apache_arrow_flatbuf_Tensor_shape_pick(B, t) - || org_apache_arrow_flatbuf_Tensor_strides_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Tensor_end(B)); + return flatcc_verify_ok; } -#include "flatcc/flatcc_epilogue.h" -#endif /* TENSOR_BUILDER_H */ -#ifndef TENSOR_VERIFIER_H -#define TENSOR_VERIFIER_H +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} -#ifndef TENSOR_READER_H -#include "Tensor_reader.h" -#endif -#include "flatcc/flatcc_verifier.h" -#ifndef SCHEMA_VERIFIER_H -#include "Schema_verifier.h" -#endif -#include "flatcc/flatcc_prologue.h" +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} -static int org_apache_arrow_flatbuf_TensorDim_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td); +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} -static int org_apache_arrow_flatbuf_TensorDim_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + +static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; - if ((ret = flatcc_verify_field(td, 0, 8, 8) /* size */)) return ret; - if ((ret = flatcc_verify_string_field(td, 1, 0) /* name */)) return ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* precision */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 4, 4) /* scale */)) return ret; + if ((ret = flatcc_verify_field(td, 2, 4, 4) /* bitWidth */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_union_field(td, 1, 1, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 2, 1, &org_apache_arrow_flatbuf_TensorDim_verify_table) /* shape */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 3, 0, 8, 8, INT64_C(536870911)) /* strides */)) return ret; - if ((ret = flatcc_verify_field(td, 4, 16, 8) /* data */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } -static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; + return flatcc_verify_ok; } -#include "flatcc/flatcc_epilogue.h" -#endif /* TENSOR_VERIFIER_H */ -#ifndef SPARSETENSOR_READER_H -#define SPARSETENSOR_READER_H +static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} -#ifndef FLATBUFFERS_COMMON_READER_H -#include "flatbuffers_common_reader.h" -#endif -#ifndef TENSOR_READER_H -#include "Tensor_reader.h" -#endif -#include "flatcc/flatcc_flatbuffers.h" -#ifndef __alignas_is_defined -#include -#endif -#include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier -#define flatbuffers_identifier 0 -#endif -#ifndef flatbuffers_extension -#define flatbuffers_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} -typedef const struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table *org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t; -typedef struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table *org_apache_arrow_flatbuf_SparseTensorIndexCOO_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCOO_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t; -typedef struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table *org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t; -typedef struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table *org_apache_arrow_flatbuf_SparseTensorIndexCSF_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCSF_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_SparseTensor_table *org_apache_arrow_flatbuf_SparseTensor_table_t; -typedef struct org_apache_arrow_flatbuf_SparseTensor_table *org_apache_arrow_flatbuf_SparseTensor_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensor_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensor_mutable_vec_t; -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier -#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier */ -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier -#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier 0 -#endif -#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_hash ((flatbuffers_thash_t)0x3b31385a) -#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier "\x5a\x38\x31\x3b" -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_extension -#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier -#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier */ -#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier -#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier 0 -#endif -#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_hash ((flatbuffers_thash_t)0xec57ea87) -#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier "\x87\xea\x57\xec" -#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_extension -#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier -#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier */ -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier -#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier 0 -#endif -#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_hash ((flatbuffers_thash_t)0xf44edda9) -#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier "\xa9\xdd\x4e\xf4" -#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_extension -#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_SparseTensor_file_identifier -#define org_apache_arrow_flatbuf_SparseTensor_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_SparseTensor_file_identifier */ -#ifndef org_apache_arrow_flatbuf_SparseTensor_identifier -#define org_apache_arrow_flatbuf_SparseTensor_identifier 0 -#endif -#define org_apache_arrow_flatbuf_SparseTensor_type_hash ((flatbuffers_thash_t)0xae6f7239) -#define org_apache_arrow_flatbuf_SparseTensor_type_identifier "\x39\x72\x6f\xae" -#ifndef org_apache_arrow_flatbuf_SparseTensor_file_extension -#define org_apache_arrow_flatbuf_SparseTensor_file_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} -typedef int16_t org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, 16) -#define org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row ((org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column ((org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t)INT16_C(1)) +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} -static inline const char *org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_name(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t value) +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - switch (value) { - case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row: return "Row"; - case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column: return "Column"; - default: return ""; - } + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_is_known_value(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t value) +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - switch (value) { - case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row: return 1; - case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column: return 1; - default: return 0; - } + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } +static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 4, 4) /* bitWidth */)) return ret; + return flatcc_verify_ok; +} +static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} -/** ---------------------------------------------------------------------- - * EXPERIMENTAL: Data structures for sparse tensors - * Coordinate (COO) format of sparse tensor index. - * - * COO's index list are represented as a NxM matrix, - * where N is the number of non-zero values, - * and M is the number of dimensions of a sparse tensor. - * - * indicesBuffer stores the location and size of the data of this indices - * matrix. The value type and the stride of the indices matrix is - * specified in indicesType and indicesStrides fields. - * - * For example, let X be a 2x3x4x5 tensor, and it has the following - * 6 non-zero values: - * ```text - * X[0, 1, 2, 0] := 1 - * X[1, 1, 2, 3] := 2 - * X[0, 2, 1, 0] := 3 - * X[0, 1, 3, 0] := 4 - * X[0, 1, 2, 1] := 5 - * X[1, 2, 0, 4] := 6 - * ``` - * In COO format, the index matrix of X is the following 4x6 matrix: - * ```text - * [[0, 0, 0, 0, 1, 1], - * [1, 1, 1, 2, 1, 2], - * [2, 2, 3, 1, 2, 0], - * [0, 1, 0, 0, 3, 4]] - * ``` - * When isCanonical is true, the indices is sorted in lexicographical order - * (row-major order), and it does not have duplicated entries. Otherwise, - * the indices may not be sorted, or may have duplicated entries. */ -struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table { uint8_t unused__; }; - -static inline size_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_len(org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensorIndexCOO) - -/** The type of values in indicesBuffer */ -__flatbuffers_define_table_field(0, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) -/** Non-negative byte offsets to advance one value cell along each dimension - * If omitted, default to row-major order (C-like). */ -__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesStrides, flatbuffers_int64_vec_t, 0) -/** The location and size of the indices matrix's data */ -__flatbuffers_define_struct_field(2, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) -/** This flag is true if and only if the indices matrix is sorted in - * row-major order, and does not have duplicated entries. - * This sort order is the same as of Tensorflow's SparseTensor, - * but it is inverse order of SciPy's canonical coo_matrix - * (SciPy employs column-major order for its coo_matrix). */ -__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_SparseTensorIndexCOO, isCanonical, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} -/** Compressed Sparse format, that is matrix-specific. */ -struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_len(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_at(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} -/** Which axis, row or column, is compressed */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, compressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, INT16_C(0)) -/** The type of values in indptrBuffer */ -__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indptrType, org_apache_arrow_flatbuf_Int_table_t, 1) -/** indptrBuffer stores the location and size of indptr array that - * represents the range of the rows. - * The i-th row spans from `indptr[i]` to `indptr[i+1]` in the data. - * The length of this array is 1 + (the number of rows), and the type - * of index value is long. - * - * For example, let X be the following 6x4 matrix: - * ```text - * X := [[0, 1, 2, 0], - * [0, 0, 3, 0], - * [0, 4, 0, 5], - * [0, 0, 0, 0], - * [6, 0, 7, 8], - * [0, 9, 0, 0]]. - * ``` - * The array of non-zero values in X is: - * ```text - * values(X) = [1, 2, 3, 4, 5, 6, 7, 8, 9]. - * ``` - * And the indptr of X is: - * ```text - * indptr(X) = [0, 2, 3, 5, 5, 8, 10]. - * ``` */ -__flatbuffers_define_struct_field(2, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indptrBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) -/** The type of values in indicesBuffer */ -__flatbuffers_define_table_field(3, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) -/** indicesBuffer stores the location and size of the array that - * contains the column indices of the corresponding non-zero values. - * The type of index value is long. - * - * For example, the indices of the above X is: - * ```text - * indices(X) = [1, 2, 2, 1, 3, 0, 2, 3, 1]. - * ``` - * Note that the indices are sorted in lexicographical order for each row. */ -__flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indicesBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} -/** Compressed Sparse Fiber (CSF) sparse tensor index. */ -struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_len(org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensorIndexCSF) +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} -/** CSF is a generalization of compressed sparse row (CSR) index. - * See [smith2017knl](http://shaden.io/pub-files/smith2017knl.pdf) - * - * CSF index recursively compresses each dimension of a tensor into a set - * of prefix trees. Each path from a root to leaf forms one tensor - * non-zero index. CSF is implemented with two arrays of buffers and one - * arrays of integers. - * - * For example, let X be a 2x3x4x5 tensor and let it have the following - * 8 non-zero values: - * ```text - * X[0, 0, 0, 1] := 1 - * X[0, 0, 0, 2] := 2 - * X[0, 1, 0, 0] := 3 - * X[0, 1, 0, 2] := 4 - * X[0, 1, 1, 0] := 5 - * X[1, 1, 1, 0] := 6 - * X[1, 1, 1, 1] := 7 - * X[1, 1, 1, 2] := 8 - * ``` - * As a prefix tree this would be represented as: - * ```text - * 0 1 - * / \ | - * 0 1 1 - * / / \ | - * 0 0 1 1 - * /| /| | /| | - * 1 2 0 2 0 0 1 2 - * ``` - * The type of values in indptrBuffers */ -__flatbuffers_define_table_field(0, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indptrType, org_apache_arrow_flatbuf_Int_table_t, 1) -/** indptrBuffers stores the sparsity structure. - * Each two consecutive dimensions in a tensor correspond to a buffer in - * indptrBuffers. A pair of consecutive values at `indptrBuffers[dim][i]` - * and `indptrBuffers[dim][i + 1]` signify a range of nodes in - * `indicesBuffers[dim + 1]` who are children of `indicesBuffers[dim][i]` node. - * - * For example, the indptrBuffers for the above X is: - * ```text - * indptrBuffer(X) = [ - * [0, 2, 3], - * [0, 1, 3, 4], - * [0, 2, 4, 5, 8] - * ]. - * ``` */ -__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indptrBuffers, org_apache_arrow_flatbuf_Buffer_vec_t, 1) -/** The type of values in indicesBuffers */ -__flatbuffers_define_table_field(2, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) -/** indicesBuffers stores values of nodes. - * Each tensor dimension corresponds to a buffer in indicesBuffers. - * For example, the indicesBuffers for the above X is: - * ```text - * indicesBuffer(X) = [ - * [0, 1], - * [0, 1, 1], - * [0, 0, 1, 1], - * [1, 2, 0, 2, 0, 0, 1, 2] - * ]. - * ``` */ -__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indicesBuffers, org_apache_arrow_flatbuf_Buffer_vec_t, 1) -/** axisOrder stores the sequence in which dimensions were traversed to - * produce the prefix tree. - * For example, the axisOrder for the above X is: - * ```text - * axisOrder(X) = [0, 1, 2, 3]. - * ``` */ -__flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_SparseTensorIndexCSF, axisOrder, flatbuffers_int32_vec_t, 1) -typedef uint8_t org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_SparseTensorIndex, org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t, 8) -__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndex) -#define org_apache_arrow_flatbuf_SparseTensorIndex_NONE ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(0)) -#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(1)) -#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(2)) -#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(3)) +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} -static inline const char *org_apache_arrow_flatbuf_SparseTensorIndex_type_name(org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t type) +static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) { - switch (type) { - case org_apache_arrow_flatbuf_SparseTensorIndex_NONE: return "NONE"; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO: return "SparseTensorIndexCOO"; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX: return "SparseMatrixIndexCSX"; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF: return "SparseTensorIndexCSF"; - default: return ""; - } + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; + if ((ret = flatcc_verify_string_field(td, 1, 0) /* timezone */)) return ret; + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_SparseTensorIndex_is_known_type(org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t type) +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void *buf, size_t bufsiz) { - switch (type) { - case org_apache_arrow_flatbuf_SparseTensorIndex_NONE: return 1; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO: return 1; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX: return 1; - case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF: return 1; - default: return 0; - } + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -struct org_apache_arrow_flatbuf_SparseTensor_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_SparseTensor_vec_len(org_apache_arrow_flatbuf_SparseTensor_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_SparseTensor_table_t org_apache_arrow_flatbuf_SparseTensor_vec_at(org_apache_arrow_flatbuf_SparseTensor_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensor_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensor) +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -/** The type of data contained in a value cell. - * Currently only fixed-width value types are supported, - * no strings or nested types. */ -__flatbuffers_define_union_field(flatbuffers_, 1, org_apache_arrow_flatbuf_SparseTensor, type, org_apache_arrow_flatbuf_Type, 1) -/** The dimensions of the tensor, optionally named. */ -__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_SparseTensor, shape, org_apache_arrow_flatbuf_TensorDim_vec_t, 1) -/** The number of non-zero values in a sparse tensor. */ -__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_SparseTensor, non_zero_length, flatbuffers_int64, int64_t, INT64_C(0)) -/** Sparse tensor index */ -__flatbuffers_define_union_field(flatbuffers_, 5, org_apache_arrow_flatbuf_SparseTensor, sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, 1) -/** The location and size of the tensor's data */ -__flatbuffers_define_struct_field(6, org_apache_arrow_flatbuf_SparseTensor, data, org_apache_arrow_flatbuf_Buffer_struct_t, 1) +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -#include "flatcc/flatcc_epilogue.h" -#endif /* SPARSETENSOR_READER_H */ -#ifndef SPARSETENSOR_BUILDER_H -#define SPARSETENSOR_BUILDER_H - -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -#ifndef SPARSETENSOR_READER_H -#include "SparseTensor_reader.h" -#endif -#ifndef FLATBUFFERS_COMMON_BUILDER_H -#include "flatbuffers_common_builder.h" -#endif -#ifndef TENSOR_BUILDER_H -#include "Tensor_builder.h" -#endif -#include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier -#define flatbuffers_identifier 0 -#endif -#ifndef flatbuffers_extension -#define flatbuffers_extension "bin" -#endif +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} -#define __org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_formal_args , org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t v0 -#define __org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t) +static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; + return flatcc_verify_ok; +} -typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t; -typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_union_vec_ref_t; -static org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndex_union_t t); +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensorIndexCOO_required[] = { 0, 2, 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t; -static org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO, 4) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_required[] = { 1, 2, 3, 4, 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t; -static org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, 5) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensorIndexCSF_required[] = { 0, 1, 2, 3, 4, 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t; -static org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF, 5) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensor_required[] = { 1, 2, 5, 6, 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensor_ref_t; -static org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensor_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor, 7) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} -#define __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args , org_apache_arrow_flatbuf_Int_ref_t v0, flatbuffers_int64_vec_ref_t v1, org_apache_arrow_flatbuf_Buffer_t *v2, flatbuffers_bool_t v3 -#define __org_apache_arrow_flatbuf_SparseTensorIndexCOO_call_args , v0, v1, v2, v3 -static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO, org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} -#define __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args ,\ - org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t v0, org_apache_arrow_flatbuf_Int_ref_t v1, org_apache_arrow_flatbuf_Buffer_t *v2, org_apache_arrow_flatbuf_Int_ref_t v3, org_apache_arrow_flatbuf_Buffer_t *v4 -#define __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_call_args ,\ - v0, v1, v2, v3, v4 -static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} -#define __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args ,\ - org_apache_arrow_flatbuf_Int_ref_t v0, org_apache_arrow_flatbuf_Buffer_vec_ref_t v1, org_apache_arrow_flatbuf_Int_ref_t v2, org_apache_arrow_flatbuf_Buffer_vec_ref_t v3, flatbuffers_int32_vec_ref_t v4 -#define __org_apache_arrow_flatbuf_SparseTensorIndexCSF_call_args ,\ - v0, v1, v2, v3, v4 -static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF, org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier) +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} -#define __org_apache_arrow_flatbuf_SparseTensor_formal_args ,\ - org_apache_arrow_flatbuf_Type_union_ref_t v1, org_apache_arrow_flatbuf_TensorDim_vec_ref_t v2, int64_t v3, org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t v5, org_apache_arrow_flatbuf_Buffer_t *v6 -#define __org_apache_arrow_flatbuf_SparseTensor_call_args ,\ - v1, v2, v3, v5, v6 -static inline org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensor_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor, org_apache_arrow_flatbuf_SparseTensor_file_identifier, org_apache_arrow_flatbuf_SparseTensor_type_identifier) +static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* unit */)) return ret; + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_NONE(void) -{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_NONE; uref.value = 0; return uref; } -static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCOO(org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t ref) -{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseMatrixIndexCSX(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t ref) -{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCSF(org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t ref) -{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF; uref.value = ref; return uref; } -__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndex) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} -static org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndex_union_t u) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_size(const void *buf, size_t bufsiz) { - switch (u.type) { - case 1: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCOO(org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(B, (org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t)u.value)); - case 2: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseMatrixIndexCSX(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(B, (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t)u.value)); - case 3: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCSF(org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(B, (org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t)u.value)); - default: return org_apache_arrow_flatbuf_SparseTensorIndex_as_NONE(); - } + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } -__flatbuffers_build_table_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCOO) -__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_SparseTensorIndexCOO) -__flatbuffers_build_struct_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseTensorIndexCOO) -__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_SparseTensorIndexCOO) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} -static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_SparseTensorIndexCOO_start(B) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer_add(B, v2) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType_add(B, v0) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides_add(B, v1) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical_add(B, v3)) { - return 0; - } - return org_apache_arrow_flatbuf_SparseTensorIndexCOO_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } -static org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t t) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_SparseTensorIndexCOO_start(B) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensorIndexCOO_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -__flatbuffers_build_struct_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -__flatbuffers_build_table_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -__flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); +} -static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_start(B) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer_add(B, v2) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer_add(B, v4) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType_add(B, v1) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType_add(B, v3) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_SparseMatrixIndexCSX_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } -static org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t t) +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_start(B) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer_pick(B, t) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer_pick(B, t) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType_pick(B, t) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType_pick(B, t) - || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } -__flatbuffers_build_table_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCSF) -__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) -__flatbuffers_build_table_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCSF) -__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) -__flatbuffers_build_vector_field(4, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder, flatbuffers_int32, int32_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_string_field(td, 0, 0) /* key */)) return ret; + if ((ret = flatcc_verify_string_field(td, 1, 0) /* value */)) return ret; + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_SparseTensorIndexCSF_start(B) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType_add(B, v0) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers_add(B, v1) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType_add(B, v2) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers_add(B, v3) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder_add(B, v4)) { - return 0; - } - return org_apache_arrow_flatbuf_SparseTensorIndexCSF_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } -static org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t t) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_SparseTensorIndexCSF_start(B) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensorIndexCSF_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } -__flatbuffers_build_union_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_SparseTensor) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) -__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_SparseTensor) -__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_non_zero_length, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_SparseTensor) -__flatbuffers_build_union_field(5, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, org_apache_arrow_flatbuf_SparseTensor) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseTensorIndexCOO, org_apache_arrow_flatbuf_SparseTensorIndexCOO) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseMatrixIndexCSX, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseTensorIndexCSF, org_apache_arrow_flatbuf_SparseTensorIndexCSF) -__flatbuffers_build_struct_field(6, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseTensor) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} -static inline org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensor_formal_args) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_SparseTensor_start(B) - || org_apache_arrow_flatbuf_SparseTensor_non_zero_length_add(B, v3) - || org_apache_arrow_flatbuf_SparseTensor_data_add(B, v6) - || org_apache_arrow_flatbuf_SparseTensor_type_add_value(B, v1) - || org_apache_arrow_flatbuf_SparseTensor_shape_add(B, v2) - || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_add_value(B, v5) - || org_apache_arrow_flatbuf_SparseTensor_type_add_type(B, v1.type) - || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_add_type(B, v5.type)) { - return 0; - } - return org_apache_arrow_flatbuf_SparseTensor_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } -static org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensor_table_t t) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_SparseTensor_start(B) - || org_apache_arrow_flatbuf_SparseTensor_non_zero_length_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensor_data_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensor_type_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensor_shape_pick(B, t) - || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensor_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); } -#include "flatcc/flatcc_epilogue.h" -#endif /* SPARSETENSOR_BUILDER_H */ -#ifndef SPARSETENSOR_VERIFIER_H -#define SPARSETENSOR_VERIFIER_H - -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ - -#ifndef SPARSETENSOR_READER_H -#include "SparseTensor_reader.h" -#endif -#include "flatcc/flatcc_verifier.h" -#ifndef TENSOR_VERIFIER_H -#include "Tensor_verifier.h" -#endif -#include "flatcc/flatcc_prologue.h" +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} -static int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_SparseTensor_verify_table(flatcc_table_verifier_descriptor_t *td); +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} -static int org_apache_arrow_flatbuf_SparseTensorIndex_union_verifier(flatcc_union_verifier_descriptor_t *ud) +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - switch (ud->type) { - case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); /* SparseTensorIndexCOO */ - case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); /* SparseMatrixIndexCSX */ - case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); /* SparseTensorIndexCSF */ - default: return flatcc_verify_ok; - } + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); } -static int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table(flatcc_table_verifier_descriptor_t *td) +static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; - if ((ret = flatcc_verify_table_field(td, 0, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 1, 0, 8, 8, INT64_C(536870911)) /* indicesStrides */)) return ret; - if ((ret = flatcc_verify_field(td, 2, 16, 8) /* indicesBuffer */)) return ret; - if ((ret = flatcc_verify_field(td, 3, 1, 1) /* isCanonical */)) return ret; + if ((ret = flatcc_verify_field(td, 0, 8, 8) /* id */)) return ret; + if ((ret = flatcc_verify_table_field(td, 1, 0, &org_apache_arrow_flatbuf_Int_verify_table) /* indexType */)) return ret; + if ((ret = flatcc_verify_field(td, 2, 1, 1) /* isOrdered */)) return ret; + if ((ret = flatcc_verify_field(td, 3, 2, 2) /* dictionaryKind */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* compressedAxis */)) return ret; - if ((ret = flatcc_verify_table_field(td, 1, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indptrType */)) return ret; - if ((ret = flatcc_verify_field(td, 2, 16, 8) /* indptrBuffer */)) return ret; - if ((ret = flatcc_verify_table_field(td, 3, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; - if ((ret = flatcc_verify_field(td, 4, 16, 8) /* indicesBuffer */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); + int ret; + if ((ret = flatcc_verify_string_field(td, 0, 0) /* name */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 1, 1) /* nullable */)) return ret; + if ((ret = flatcc_verify_union_field(td, 3, 0, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; + if ((ret = flatcc_verify_table_field(td, 4, 0, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table) /* dictionary */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 5, 0, &org_apache_arrow_flatbuf_Field_verify_table) /* children */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 6, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; + return flatcc_verify_ok; } -static int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_table_field(td, 0, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indptrType */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 1, 1, 16, 8, INT64_C(268435455)) /* indptrBuffers */)) return ret; - if ((ret = flatcc_verify_table_field(td, 2, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 3, 1, 16, 8, INT64_C(268435455)) /* indicesBuffers */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 4, 1, 4, 4, INT64_C(1073741823)) /* axisOrder */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); } -static int org_apache_arrow_flatbuf_SparseTensor_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + +static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; - if ((ret = flatcc_verify_union_field(td, 1, 1, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 2, 1, &org_apache_arrow_flatbuf_TensorDim_verify_table) /* shape */)) return ret; - if ((ret = flatcc_verify_field(td, 3, 8, 8) /* non_zero_length */)) return ret; - if ((ret = flatcc_verify_union_field(td, 5, 1, &org_apache_arrow_flatbuf_SparseTensorIndex_union_verifier) /* sparseIndex */)) return ret; - if ((ret = flatcc_verify_field(td, 6, 16, 8) /* data */)) return ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* endianness */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 1, 0, &org_apache_arrow_flatbuf_Field_verify_table) /* fields */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 2, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 3, 0, 8, 8, INT64_C(536870911)) /* features */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_type_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensor_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } -static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensor_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); } #include "flatcc/flatcc_epilogue.h" -#endif /* SPARSETENSOR_VERIFIER_H */ -#ifndef MESSAGE_READER_H -#define MESSAGE_READER_H +#endif /* SCHEMA_VERIFIER_H */ +#ifndef TENSOR_READER_H +#define TENSOR_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" #endif -#ifndef TENSOR_READER_H -#include "Tensor_reader.h" -#endif -#ifndef SPARSETENSOR_READER_H -#include "SparseTensor_reader.h" -#endif #ifndef SCHEMA_READER_H #include "Schema_reader.h" #endif @@ -8847,319 +9802,336 @@ static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type #define flatbuffers_extension "bin" #endif -typedef struct org_apache_arrow_flatbuf_FieldNode org_apache_arrow_flatbuf_FieldNode_t; -typedef const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_struct_t; -typedef org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_mutable_struct_t; -typedef const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_vec_t; -typedef org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_BodyCompression_table *org_apache_arrow_flatbuf_BodyCompression_table_t; -typedef struct org_apache_arrow_flatbuf_BodyCompression_table *org_apache_arrow_flatbuf_BodyCompression_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BodyCompression_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BodyCompression_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_RecordBatch_table *org_apache_arrow_flatbuf_RecordBatch_table_t; -typedef struct org_apache_arrow_flatbuf_RecordBatch_table *org_apache_arrow_flatbuf_RecordBatch_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RecordBatch_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RecordBatch_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_DictionaryBatch_table *org_apache_arrow_flatbuf_DictionaryBatch_table_t; -typedef struct org_apache_arrow_flatbuf_DictionaryBatch_table *org_apache_arrow_flatbuf_DictionaryBatch_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryBatch_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryBatch_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Message_table *org_apache_arrow_flatbuf_Message_table_t; -typedef struct org_apache_arrow_flatbuf_Message_table *org_apache_arrow_flatbuf_Message_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Message_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Message_mutable_vec_t; -#ifndef org_apache_arrow_flatbuf_FieldNode_file_identifier -#define org_apache_arrow_flatbuf_FieldNode_file_identifier 0 +typedef const struct org_apache_arrow_flatbuf_TensorDim_table *org_apache_arrow_flatbuf_TensorDim_table_t; +typedef struct org_apache_arrow_flatbuf_TensorDim_table *org_apache_arrow_flatbuf_TensorDim_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_TensorDim_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_TensorDim_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Tensor_table *org_apache_arrow_flatbuf_Tensor_table_t; +typedef struct org_apache_arrow_flatbuf_Tensor_table *org_apache_arrow_flatbuf_Tensor_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Tensor_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Tensor_mutable_vec_t; +#ifndef org_apache_arrow_flatbuf_TensorDim_file_identifier +#define org_apache_arrow_flatbuf_TensorDim_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_FieldNode_file_identifier */ -#ifndef org_apache_arrow_flatbuf_FieldNode_identifier -#define org_apache_arrow_flatbuf_FieldNode_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_TensorDim_file_identifier */ +#ifndef org_apache_arrow_flatbuf_TensorDim_identifier +#define org_apache_arrow_flatbuf_TensorDim_identifier 0 #endif -#define org_apache_arrow_flatbuf_FieldNode_type_hash ((flatbuffers_thash_t)0x931857b8) -#define org_apache_arrow_flatbuf_FieldNode_type_identifier "\xb8\x57\x18\x93" -#ifndef org_apache_arrow_flatbuf_FieldNode_file_extension -#define org_apache_arrow_flatbuf_FieldNode_file_extension "bin" +#define org_apache_arrow_flatbuf_TensorDim_type_hash ((flatbuffers_thash_t)0xbc6d7b25) +#define org_apache_arrow_flatbuf_TensorDim_type_identifier "\x25\x7b\x6d\xbc" +#ifndef org_apache_arrow_flatbuf_TensorDim_file_extension +#define org_apache_arrow_flatbuf_TensorDim_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_BodyCompression_file_identifier -#define org_apache_arrow_flatbuf_BodyCompression_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_Tensor_file_identifier +#define org_apache_arrow_flatbuf_Tensor_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_BodyCompression_file_identifier */ -#ifndef org_apache_arrow_flatbuf_BodyCompression_identifier -#define org_apache_arrow_flatbuf_BodyCompression_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_Tensor_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Tensor_identifier +#define org_apache_arrow_flatbuf_Tensor_identifier 0 #endif -#define org_apache_arrow_flatbuf_BodyCompression_type_hash ((flatbuffers_thash_t)0xbc821116) -#define org_apache_arrow_flatbuf_BodyCompression_type_identifier "\x16\x11\x82\xbc" -#ifndef org_apache_arrow_flatbuf_BodyCompression_file_extension -#define org_apache_arrow_flatbuf_BodyCompression_file_extension "bin" +#define org_apache_arrow_flatbuf_Tensor_type_hash ((flatbuffers_thash_t)0x1764df19) +#define org_apache_arrow_flatbuf_Tensor_type_identifier "\x19\xdf\x64\x17" +#ifndef org_apache_arrow_flatbuf_Tensor_file_extension +#define org_apache_arrow_flatbuf_Tensor_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_RecordBatch_file_identifier -#define org_apache_arrow_flatbuf_RecordBatch_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_RecordBatch_file_identifier */ -#ifndef org_apache_arrow_flatbuf_RecordBatch_identifier -#define org_apache_arrow_flatbuf_RecordBatch_identifier 0 -#endif -#define org_apache_arrow_flatbuf_RecordBatch_type_hash ((flatbuffers_thash_t)0x43c558b) -#define org_apache_arrow_flatbuf_RecordBatch_type_identifier "\x8b\x55\x3c\x04" -#ifndef org_apache_arrow_flatbuf_RecordBatch_file_extension -#define org_apache_arrow_flatbuf_RecordBatch_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_DictionaryBatch_file_identifier -#define org_apache_arrow_flatbuf_DictionaryBatch_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_DictionaryBatch_file_identifier */ -#ifndef org_apache_arrow_flatbuf_DictionaryBatch_identifier -#define org_apache_arrow_flatbuf_DictionaryBatch_identifier 0 + + + +/** ---------------------------------------------------------------------- + * Data structures for dense tensors + * Shape data for a single axis in a tensor */ +struct org_apache_arrow_flatbuf_TensorDim_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_TensorDim_vec_len(org_apache_arrow_flatbuf_TensorDim_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_TensorDim_table_t org_apache_arrow_flatbuf_TensorDim_vec_at(org_apache_arrow_flatbuf_TensorDim_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_TensorDim_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_TensorDim) + +/** Length of dimension */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_TensorDim, size, flatbuffers_int64, int64_t, INT64_C(0)) +/** Name of the dimension, optional */ +__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_TensorDim, name, 0) + +struct org_apache_arrow_flatbuf_Tensor_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Tensor_vec_len(org_apache_arrow_flatbuf_Tensor_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Tensor_table_t org_apache_arrow_flatbuf_Tensor_vec_at(org_apache_arrow_flatbuf_Tensor_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Tensor_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Tensor) + +/** The type of data contained in a value cell. Currently only fixed-width + * value types are supported, no strings or nested types */ +__flatbuffers_define_union_field(flatbuffers_, 1, org_apache_arrow_flatbuf_Tensor, type, org_apache_arrow_flatbuf_Type, 1) +/** The dimensions of the tensor, optionally named */ +__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_Tensor, shape, org_apache_arrow_flatbuf_TensorDim_vec_t, 1) +/** Non-negative byte offsets to advance one value cell along each dimension + * If omitted, default to row-major order (C-like). */ +__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Tensor, strides, flatbuffers_int64_vec_t, 0) +/** The location and size of the tensor's data */ +__flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_Tensor, data, org_apache_arrow_flatbuf_Buffer_struct_t, 1) + + +#include "flatcc/flatcc_epilogue.h" +#endif /* TENSOR_READER_H */ +#ifndef TENSOR_BUILDER_H +#define TENSOR_BUILDER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef TENSOR_READER_H +#include "Tensor_reader.h" #endif -#define org_apache_arrow_flatbuf_DictionaryBatch_type_hash ((flatbuffers_thash_t)0x5c6da7bc) -#define org_apache_arrow_flatbuf_DictionaryBatch_type_identifier "\xbc\xa7\x6d\x5c" -#ifndef org_apache_arrow_flatbuf_DictionaryBatch_file_extension -#define org_apache_arrow_flatbuf_DictionaryBatch_file_extension "bin" +#ifndef FLATBUFFERS_COMMON_BUILDER_H +#include "flatbuffers_common_builder.h" #endif -#ifndef org_apache_arrow_flatbuf_Message_file_identifier -#define org_apache_arrow_flatbuf_Message_file_identifier 0 +#ifndef SCHEMA_BUILDER_H +#include "Schema_builder.h" #endif -/* deprecated, use org_apache_arrow_flatbuf_Message_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Message_identifier -#define org_apache_arrow_flatbuf_Message_identifier 0 +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier +#define flatbuffers_identifier 0 #endif -#define org_apache_arrow_flatbuf_Message_type_hash ((flatbuffers_thash_t)0xc3efd227) -#define org_apache_arrow_flatbuf_Message_type_identifier "\x27\xd2\xef\xc3" -#ifndef org_apache_arrow_flatbuf_Message_file_extension -#define org_apache_arrow_flatbuf_Message_file_extension "bin" +#ifndef flatbuffers_extension +#define flatbuffers_extension "bin" #endif -typedef int8_t org_apache_arrow_flatbuf_CompressionType_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, 8) -#define org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME ((org_apache_arrow_flatbuf_CompressionType_enum_t)INT8_C(0)) -#define org_apache_arrow_flatbuf_CompressionType_ZSTD ((org_apache_arrow_flatbuf_CompressionType_enum_t)INT8_C(1)) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_TensorDim_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_TensorDim_ref_t; +static org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_TensorDim_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_TensorDim, 2) -static inline const char *org_apache_arrow_flatbuf_CompressionType_name(org_apache_arrow_flatbuf_CompressionType_enum_t value) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Tensor_required[] = { 1, 2, 4, 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Tensor_ref_t; +static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Tensor_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Tensor, 5) + +#define __org_apache_arrow_flatbuf_TensorDim_formal_args , int64_t v0, flatbuffers_string_ref_t v1 +#define __org_apache_arrow_flatbuf_TensorDim_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_TensorDim_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_TensorDim_file_identifier, org_apache_arrow_flatbuf_TensorDim_type_identifier) + +#define __org_apache_arrow_flatbuf_Tensor_formal_args , org_apache_arrow_flatbuf_Type_union_ref_t v1, org_apache_arrow_flatbuf_TensorDim_vec_ref_t v2, flatbuffers_int64_vec_ref_t v3, org_apache_arrow_flatbuf_Buffer_t *v4 +#define __org_apache_arrow_flatbuf_Tensor_call_args , v1, v2, v3, v4 +static inline org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Tensor_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Tensor, org_apache_arrow_flatbuf_Tensor_file_identifier, org_apache_arrow_flatbuf_Tensor_type_identifier) + +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_TensorDim_size, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_TensorDim) +__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_TensorDim_name, org_apache_arrow_flatbuf_TensorDim) + +static inline org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_TensorDim_formal_args) { - switch (value) { - case org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME: return "LZ4_FRAME"; - case org_apache_arrow_flatbuf_CompressionType_ZSTD: return "ZSTD"; - default: return ""; + if (org_apache_arrow_flatbuf_TensorDim_start(B) + || org_apache_arrow_flatbuf_TensorDim_size_add(B, v0) + || org_apache_arrow_flatbuf_TensorDim_name_add(B, v1)) { + return 0; } + return org_apache_arrow_flatbuf_TensorDim_end(B); } -static inline int org_apache_arrow_flatbuf_CompressionType_is_known_value(org_apache_arrow_flatbuf_CompressionType_enum_t value) +static org_apache_arrow_flatbuf_TensorDim_ref_t org_apache_arrow_flatbuf_TensorDim_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_TensorDim_table_t t) { - switch (value) { - case org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME: return 1; - case org_apache_arrow_flatbuf_CompressionType_ZSTD: return 1; - default: return 0; + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_TensorDim_start(B) + || org_apache_arrow_flatbuf_TensorDim_size_pick(B, t) + || org_apache_arrow_flatbuf_TensorDim_name_pick(B, t)) { + return 0; } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_TensorDim_end(B)); } -/** Provided for forward compatibility in case we need to support different - * strategies for compressing the IPC message body (like whole-body - * compression rather than buffer-level) in the future */ -typedef int8_t org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, 8) -/** Each constituent buffer is first compressed with the indicated - * compressor, and then written with the uncompressed length in the first 8 - * bytes as a 64-bit little-endian signed integer followed by the compressed - * buffer bytes (and then padding as required by the protocol). The - * uncompressed length may be set to -1 to indicate that the data that - * follows is not compressed, which can be useful for cases where - * compression does not yield appreciable savings. */ -#define org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER ((org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t)INT8_C(0)) +__flatbuffers_build_union_field(1, flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Tensor) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) +__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Tensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_Tensor) +__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Tensor_strides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_Tensor) +__flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_Tensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Tensor) -static inline const char *org_apache_arrow_flatbuf_BodyCompressionMethod_name(org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t value) +static inline org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Tensor_formal_args) { - switch (value) { - case org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER: return "BUFFER"; - default: return ""; + if (org_apache_arrow_flatbuf_Tensor_start(B) + || org_apache_arrow_flatbuf_Tensor_data_add(B, v4) + || org_apache_arrow_flatbuf_Tensor_type_add_value(B, v1) + || org_apache_arrow_flatbuf_Tensor_shape_add(B, v2) + || org_apache_arrow_flatbuf_Tensor_strides_add(B, v3) + || org_apache_arrow_flatbuf_Tensor_type_add_type(B, v1.type)) { + return 0; } + return org_apache_arrow_flatbuf_Tensor_end(B); } -static inline int org_apache_arrow_flatbuf_BodyCompressionMethod_is_known_value(org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t value) +static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Tensor_table_t t) { - switch (value) { - case org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER: return 1; - default: return 0; + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Tensor_start(B) + || org_apache_arrow_flatbuf_Tensor_data_pick(B, t) + || org_apache_arrow_flatbuf_Tensor_type_pick(B, t) + || org_apache_arrow_flatbuf_Tensor_shape_pick(B, t) + || org_apache_arrow_flatbuf_Tensor_strides_pick(B, t)) { + return 0; } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Tensor_end(B)); } +#include "flatcc/flatcc_epilogue.h" +#endif /* TENSOR_BUILDER_H */ +#ifndef TENSOR_VERIFIER_H +#define TENSOR_VERIFIER_H -/** ---------------------------------------------------------------------- - * Data structures for describing a table row batch (a collection of - * equal-length Arrow arrays) - * Metadata about a field at some level of a nested type tree (but not - * its children). - * - * For example, a List with values `[[1, 2, 3], null, [4], [5, 6], null]` - * would have {length: 5, null_count: 2} for its List node, and {length: 6, - * null_count: 0} for its Int16 node, as separate FieldNode structs */ -struct org_apache_arrow_flatbuf_FieldNode { - /** The number of value slots in the Arrow array at this level of a nested - * tree */ - alignas(8) int64_t length; - /** The number of observed nulls. Fields with null_count == 0 may choose not - * to write their physical validity bitmap out as a materialized buffer, - * instead setting the length of the bitmap buffer to 0. */ - alignas(8) int64_t null_count; -}; -static_assert(sizeof(org_apache_arrow_flatbuf_FieldNode_t) == 16, "struct size mismatch"); - -static inline const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode__const_ptr_add(const org_apache_arrow_flatbuf_FieldNode_t *p, size_t i) { return p + i; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode__ptr_add(org_apache_arrow_flatbuf_FieldNode_t *p, size_t i) { return p + i; } -static inline org_apache_arrow_flatbuf_FieldNode_struct_t org_apache_arrow_flatbuf_FieldNode_vec_at(org_apache_arrow_flatbuf_FieldNode_vec_t vec, size_t i) -__flatbuffers_struct_vec_at(vec, i) -static inline size_t org_apache_arrow_flatbuf_FieldNode__size(void) { return 16; } -static inline size_t org_apache_arrow_flatbuf_FieldNode_vec_len(org_apache_arrow_flatbuf_FieldNode_vec_t vec) -__flatbuffers_vec_len(vec) -__flatbuffers_struct_as_root(org_apache_arrow_flatbuf_FieldNode) +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ -__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_FieldNode, length, flatbuffers_int64, int64_t) -__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_FieldNode, null_count, flatbuffers_int64, int64_t) +#ifndef TENSOR_READER_H +#include "Tensor_reader.h" +#endif +#include "flatcc/flatcc_verifier.h" +#ifndef SCHEMA_VERIFIER_H +#include "Schema_verifier.h" +#endif +#include "flatcc/flatcc_prologue.h" +static int org_apache_arrow_flatbuf_TensorDim_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td); -/** Optional compression for the memory buffers constituting IPC message - * bodies. Intended for use with RecordBatch but could be used for other - * message types */ -struct org_apache_arrow_flatbuf_BodyCompression_table { uint8_t unused__; }; +static int org_apache_arrow_flatbuf_TensorDim_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 8, 8) /* size */)) return ret; + if ((ret = flatcc_verify_string_field(td, 1, 0) /* name */)) return ret; + return flatcc_verify_ok; +} -static inline size_t org_apache_arrow_flatbuf_BodyCompression_vec_len(org_apache_arrow_flatbuf_BodyCompression_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_BodyCompression_table_t org_apache_arrow_flatbuf_BodyCompression_vec_at(org_apache_arrow_flatbuf_BodyCompression_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BodyCompression_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BodyCompression) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -/** Compressor library. - * For LZ4_FRAME, each compressed buffer must consist of a single frame. */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_BodyCompression, codec, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, INT8_C(0)) -/** Indicates the way the record batch body was compressed */ -__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_BodyCompression, method, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, INT8_C(0)) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -/** A data header describing the shared memory layout of a "record" or "row" - * batch. Some systems call this a "row batch" internally and others a "record - * batch". */ -struct org_apache_arrow_flatbuf_RecordBatch_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_RecordBatch_vec_len(org_apache_arrow_flatbuf_RecordBatch_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_RecordBatch_table_t org_apache_arrow_flatbuf_RecordBatch_vec_at(org_apache_arrow_flatbuf_RecordBatch_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_RecordBatch_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_RecordBatch) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -/** number of records / rows. The arrays in the batch should all have this - * length */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_RecordBatch, length, flatbuffers_int64, int64_t, INT64_C(0)) -/** Nodes correspond to the pre-ordered flattened logical schema */ -__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_RecordBatch, nodes, org_apache_arrow_flatbuf_FieldNode_vec_t, 0) -/** Buffers correspond to the pre-ordered flattened buffer tree - * - * The number of buffers appended to this list depends on the schema. For - * example, most primitive arrays will have 2 buffers, 1 for the validity - * bitmap and 1 for the values. For struct arrays, there will only be a - * single buffer for the validity (nulls) bitmap */ -__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_RecordBatch, buffers, org_apache_arrow_flatbuf_Buffer_vec_t, 0) -/** Optional compression of the message body */ -__flatbuffers_define_table_field(3, org_apache_arrow_flatbuf_RecordBatch, compression, org_apache_arrow_flatbuf_BodyCompression_table_t, 0) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -/** For sending dictionary encoding information. Any Field can be - * dictionary-encoded, but in this case none of its children may be - * dictionary-encoded. - * There is one vector / column per dictionary, but that vector / column - * may be spread across multiple dictionary batches by using the isDelta - * flag */ -struct org_apache_arrow_flatbuf_DictionaryBatch_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_DictionaryBatch_vec_len(org_apache_arrow_flatbuf_DictionaryBatch_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_DictionaryBatch_table_t org_apache_arrow_flatbuf_DictionaryBatch_vec_at(org_apache_arrow_flatbuf_DictionaryBatch_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_DictionaryBatch_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_DictionaryBatch) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_DictionaryBatch, id, flatbuffers_int64, int64_t, INT64_C(0)) -__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_DictionaryBatch, data, org_apache_arrow_flatbuf_RecordBatch_table_t, 0) -/** If isDelta is true the values in the dictionary are to be appended to a - * dictionary with the indicated id. If isDelta is false this dictionary - * should replace the existing dictionary. */ -__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_DictionaryBatch, isDelta, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) -/** ---------------------------------------------------------------------- - * The root Message type - * This union enables us to easily send different message types without - * redundant storage, and in the future we can easily add new message types. - * - * Arrow implementations do not need to implement all of the message types, - * which may include experimental metadata types. For maximum compatibility, - * it is best to send data using RecordBatch */ -typedef uint8_t org_apache_arrow_flatbuf_MessageHeader_union_type_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_MessageHeader, org_apache_arrow_flatbuf_MessageHeader_union_type_t, 8) -__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_MessageHeader) -#define org_apache_arrow_flatbuf_MessageHeader_NONE ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(0)) -#define org_apache_arrow_flatbuf_MessageHeader_Schema ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(1)) -#define org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(2)) -#define org_apache_arrow_flatbuf_MessageHeader_RecordBatch ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(3)) -#define org_apache_arrow_flatbuf_MessageHeader_Tensor ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(4)) -#define org_apache_arrow_flatbuf_MessageHeader_SparseTensor ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(5)) +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} -static inline const char *org_apache_arrow_flatbuf_MessageHeader_type_name(org_apache_arrow_flatbuf_MessageHeader_union_type_t type) +static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td) { - switch (type) { - case org_apache_arrow_flatbuf_MessageHeader_NONE: return "NONE"; - case org_apache_arrow_flatbuf_MessageHeader_Schema: return "Schema"; - case org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch: return "DictionaryBatch"; - case org_apache_arrow_flatbuf_MessageHeader_RecordBatch: return "RecordBatch"; - case org_apache_arrow_flatbuf_MessageHeader_Tensor: return "Tensor"; - case org_apache_arrow_flatbuf_MessageHeader_SparseTensor: return "SparseTensor"; - default: return ""; - } + int ret; + if ((ret = flatcc_verify_union_field(td, 1, 1, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 2, 1, &org_apache_arrow_flatbuf_TensorDim_verify_table) /* shape */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 3, 0, 8, 8, INT64_C(536870911)) /* strides */)) return ret; + if ((ret = flatcc_verify_field(td, 4, 16, 8) /* data */)) return ret; + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_MessageHeader_is_known_type(org_apache_arrow_flatbuf_MessageHeader_union_type_t type) +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root(const void *buf, size_t bufsiz) { - switch (type) { - case org_apache_arrow_flatbuf_MessageHeader_NONE: return 1; - case org_apache_arrow_flatbuf_MessageHeader_Schema: return 1; - case org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch: return 1; - case org_apache_arrow_flatbuf_MessageHeader_RecordBatch: return 1; - case org_apache_arrow_flatbuf_MessageHeader_Tensor: return 1; - case org_apache_arrow_flatbuf_MessageHeader_SparseTensor: return 1; - default: return 0; - } + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} -struct org_apache_arrow_flatbuf_Message_table { uint8_t unused__; }; +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} -static inline size_t org_apache_arrow_flatbuf_Message_vec_len(org_apache_arrow_flatbuf_Message_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Message_table_t org_apache_arrow_flatbuf_Message_vec_at(org_apache_arrow_flatbuf_Message_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Message_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Message) +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Message, version, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, INT16_C(0)) -__flatbuffers_define_union_field(flatbuffers_, 2, org_apache_arrow_flatbuf_Message, header, org_apache_arrow_flatbuf_MessageHeader, 0) -__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_Message, bodyLength, flatbuffers_int64, int64_t, INT64_C(0)) -__flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_Message, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); +} +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); +} #include "flatcc/flatcc_epilogue.h" -#endif /* MESSAGE_READER_H */ -#ifndef MESSAGE_BUILDER_H -#define MESSAGE_BUILDER_H +#endif /* TENSOR_VERIFIER_H */ +#ifndef SPARSETENSOR_READER_H +#define SPARSETENSOR_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ -#ifndef MESSAGE_READER_H -#include "Message_reader.h" -#endif -#ifndef FLATBUFFERS_COMMON_BUILDER_H -#include "flatbuffers_common_builder.h" -#endif -#ifndef TENSOR_BUILDER_H -#include "Tensor_builder.h" +#ifndef FLATBUFFERS_COMMON_READER_H +#include "flatbuffers_common_reader.h" #endif -#ifndef SPARSETENSOR_BUILDER_H -#include "SparseTensor_builder.h" +#ifndef TENSOR_READER_H +#include "Tensor_reader.h" #endif -#ifndef SCHEMA_BUILDER_H -#include "Schema_builder.h" +#include "flatcc/flatcc_flatbuffers.h" +#ifndef __alignas_is_defined +#include #endif #include "flatcc/flatcc_prologue.h" #ifndef flatbuffers_identifier @@ -9169,3153 +10141,5171 @@ __flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_Message, custom_me #define flatbuffers_extension "bin" #endif -#define __org_apache_arrow_flatbuf_CompressionType_formal_args , org_apache_arrow_flatbuf_CompressionType_enum_t v0 -#define __org_apache_arrow_flatbuf_CompressionType_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t) -#define __org_apache_arrow_flatbuf_BodyCompressionMethod_formal_args , org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t v0 -#define __org_apache_arrow_flatbuf_BodyCompressionMethod_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t) - -#define __org_apache_arrow_flatbuf_FieldNode_formal_args , int64_t v0, int64_t v1 -#define __org_apache_arrow_flatbuf_FieldNode_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) -{ p->length = v0; p->null_count = v1; - return p; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) -{ p->length = p2->length; p->null_count = p2->null_count; - return p; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign_to_pe(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) -{ flatbuffers_int64_assign_to_pe(&p->length, v0); flatbuffers_int64_assign_to_pe(&p->null_count, v1); - return p; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy_to_pe(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) -{ flatbuffers_int64_copy_to_pe(&p->length, &p2->length); flatbuffers_int64_copy_to_pe(&p->null_count, &p2->null_count); - return p; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign_from_pe(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) -{ flatbuffers_int64_assign_from_pe(&p->length, v0); flatbuffers_int64_assign_from_pe(&p->null_count, v1); - return p; } -static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy_from_pe(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) -{ flatbuffers_int64_copy_from_pe(&p->length, &p2->length); flatbuffers_int64_copy_from_pe(&p->null_count, &p2->null_count); - return p; } -__flatbuffers_build_struct(flatbuffers_, org_apache_arrow_flatbuf_FieldNode, 16, 8, org_apache_arrow_flatbuf_FieldNode_file_identifier, org_apache_arrow_flatbuf_FieldNode_type_identifier) -__flatbuffers_define_fixed_array_primitives(flatbuffers_, org_apache_arrow_flatbuf_FieldNode, org_apache_arrow_flatbuf_FieldNode_t) - -typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_MessageHeader_union_ref_t; -typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_MessageHeader_union_vec_ref_t; -static org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_MessageHeader_union_t t); - -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BodyCompression_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BodyCompression_ref_t; -static org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BodyCompression_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BodyCompression, 2) - -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_RecordBatch_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_RecordBatch_ref_t; -static org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RecordBatch_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_RecordBatch, 4) - -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_DictionaryBatch_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_DictionaryBatch_ref_t; -static org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryBatch_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch, 3) - -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Message_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Message_ref_t; -static org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Message_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Message, 5) - -#define __org_apache_arrow_flatbuf_BodyCompression_formal_args , org_apache_arrow_flatbuf_CompressionType_enum_t v0, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t v1 -#define __org_apache_arrow_flatbuf_BodyCompression_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BodyCompression_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BodyCompression, org_apache_arrow_flatbuf_BodyCompression_file_identifier, org_apache_arrow_flatbuf_BodyCompression_type_identifier) - -#define __org_apache_arrow_flatbuf_RecordBatch_formal_args , int64_t v0, org_apache_arrow_flatbuf_FieldNode_vec_ref_t v1, org_apache_arrow_flatbuf_Buffer_vec_ref_t v2, org_apache_arrow_flatbuf_BodyCompression_ref_t v3 -#define __org_apache_arrow_flatbuf_RecordBatch_call_args , v0, v1, v2, v3 -static inline org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RecordBatch_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_RecordBatch, org_apache_arrow_flatbuf_RecordBatch_file_identifier, org_apache_arrow_flatbuf_RecordBatch_type_identifier) - -#define __org_apache_arrow_flatbuf_DictionaryBatch_formal_args , int64_t v0, org_apache_arrow_flatbuf_RecordBatch_ref_t v1, flatbuffers_bool_t v2 -#define __org_apache_arrow_flatbuf_DictionaryBatch_call_args , v0, v1, v2 -static inline org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryBatch_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch, org_apache_arrow_flatbuf_DictionaryBatch_file_identifier, org_apache_arrow_flatbuf_DictionaryBatch_type_identifier) - -#define __org_apache_arrow_flatbuf_Message_formal_args , org_apache_arrow_flatbuf_MetadataVersion_enum_t v0, org_apache_arrow_flatbuf_MessageHeader_union_ref_t v2, int64_t v3, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v4 -#define __org_apache_arrow_flatbuf_Message_call_args , v0, v2, v3, v4 -static inline org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Message_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Message, org_apache_arrow_flatbuf_Message_file_identifier, org_apache_arrow_flatbuf_Message_type_identifier) -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_NONE(void) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_NONE; uref.value = 0; return uref; } -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_Schema(org_apache_arrow_flatbuf_Schema_ref_t ref) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_Schema; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_DictionaryBatch(org_apache_arrow_flatbuf_DictionaryBatch_ref_t ref) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_RecordBatch(org_apache_arrow_flatbuf_RecordBatch_ref_t ref) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_RecordBatch; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_Tensor(org_apache_arrow_flatbuf_Tensor_ref_t ref) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_Tensor; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_SparseTensor(org_apache_arrow_flatbuf_SparseTensor_ref_t ref) -{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_SparseTensor; uref.value = ref; return uref; } -__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_MessageHeader) - -static org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_MessageHeader_union_t u) -{ - switch (u.type) { - case 1: return org_apache_arrow_flatbuf_MessageHeader_as_Schema(org_apache_arrow_flatbuf_Schema_clone(B, (org_apache_arrow_flatbuf_Schema_table_t)u.value)); - case 2: return org_apache_arrow_flatbuf_MessageHeader_as_DictionaryBatch(org_apache_arrow_flatbuf_DictionaryBatch_clone(B, (org_apache_arrow_flatbuf_DictionaryBatch_table_t)u.value)); - case 3: return org_apache_arrow_flatbuf_MessageHeader_as_RecordBatch(org_apache_arrow_flatbuf_RecordBatch_clone(B, (org_apache_arrow_flatbuf_RecordBatch_table_t)u.value)); - case 4: return org_apache_arrow_flatbuf_MessageHeader_as_Tensor(org_apache_arrow_flatbuf_Tensor_clone(B, (org_apache_arrow_flatbuf_Tensor_table_t)u.value)); - case 5: return org_apache_arrow_flatbuf_MessageHeader_as_SparseTensor(org_apache_arrow_flatbuf_SparseTensor_clone(B, (org_apache_arrow_flatbuf_SparseTensor_table_t)u.value)); - default: return org_apache_arrow_flatbuf_MessageHeader_as_NONE(); - } -} - -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_BodyCompression_codec, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, 1, 1, INT8_C(0), org_apache_arrow_flatbuf_BodyCompression) -__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_BodyCompression_method, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, 1, 1, INT8_C(0), org_apache_arrow_flatbuf_BodyCompression) - -static inline org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BodyCompression_formal_args) -{ - if (org_apache_arrow_flatbuf_BodyCompression_start(B) - || org_apache_arrow_flatbuf_BodyCompression_codec_add(B, v0) - || org_apache_arrow_flatbuf_BodyCompression_method_add(B, v1)) { - return 0; - } - return org_apache_arrow_flatbuf_BodyCompression_end(B); -} - -static org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BodyCompression_table_t t) -{ - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_BodyCompression_start(B) - || org_apache_arrow_flatbuf_BodyCompression_codec_pick(B, t) - || org_apache_arrow_flatbuf_BodyCompression_method_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BodyCompression_end(B)); -} +typedef const struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table *org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t; +typedef struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table *org_apache_arrow_flatbuf_SparseTensorIndexCOO_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCOO_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t; +typedef struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseMatrixIndexCSX_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table *org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t; +typedef struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table *org_apache_arrow_flatbuf_SparseTensorIndexCSF_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensorIndexCSF_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_SparseTensor_table *org_apache_arrow_flatbuf_SparseTensor_table_t; +typedef struct org_apache_arrow_flatbuf_SparseTensor_table *org_apache_arrow_flatbuf_SparseTensor_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensor_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_SparseTensor_mutable_vec_t; +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier +#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier */ +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier +#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier 0 +#endif +#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_hash ((flatbuffers_thash_t)0x3b31385a) +#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier "\x5a\x38\x31\x3b" +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_extension +#define org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier +#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier */ +#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier +#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier 0 +#endif +#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_hash ((flatbuffers_thash_t)0xec57ea87) +#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier "\x87\xea\x57\xec" +#ifndef org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_extension +#define org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier +#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier */ +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier +#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier 0 +#endif +#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_hash ((flatbuffers_thash_t)0xf44edda9) +#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier "\xa9\xdd\x4e\xf4" +#ifndef org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_extension +#define org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_SparseTensor_file_identifier +#define org_apache_arrow_flatbuf_SparseTensor_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_SparseTensor_file_identifier */ +#ifndef org_apache_arrow_flatbuf_SparseTensor_identifier +#define org_apache_arrow_flatbuf_SparseTensor_identifier 0 +#endif +#define org_apache_arrow_flatbuf_SparseTensor_type_hash ((flatbuffers_thash_t)0xae6f7239) +#define org_apache_arrow_flatbuf_SparseTensor_type_identifier "\x39\x72\x6f\xae" +#ifndef org_apache_arrow_flatbuf_SparseTensor_file_extension +#define org_apache_arrow_flatbuf_SparseTensor_file_extension "bin" +#endif -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_length, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_RecordBatch) -__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_nodes, org_apache_arrow_flatbuf_FieldNode, org_apache_arrow_flatbuf_FieldNode_t, org_apache_arrow_flatbuf_RecordBatch) -__flatbuffers_build_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_buffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_RecordBatch) -__flatbuffers_build_table_field(3, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_compression, org_apache_arrow_flatbuf_BodyCompression, org_apache_arrow_flatbuf_RecordBatch) +typedef int16_t org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, 16) +#define org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row ((org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column ((org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t)INT16_C(1)) -static inline org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RecordBatch_formal_args) +static inline const char *org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_name(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t value) { - if (org_apache_arrow_flatbuf_RecordBatch_start(B) - || org_apache_arrow_flatbuf_RecordBatch_length_add(B, v0) - || org_apache_arrow_flatbuf_RecordBatch_nodes_add(B, v1) - || org_apache_arrow_flatbuf_RecordBatch_buffers_add(B, v2) - || org_apache_arrow_flatbuf_RecordBatch_compression_add(B, v3)) { - return 0; + switch (value) { + case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row: return "Row"; + case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column: return "Column"; + default: return ""; } - return org_apache_arrow_flatbuf_RecordBatch_end(B); } -static org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RecordBatch_table_t t) +static inline int org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_is_known_value(org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t value) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_RecordBatch_start(B) - || org_apache_arrow_flatbuf_RecordBatch_length_pick(B, t) - || org_apache_arrow_flatbuf_RecordBatch_nodes_pick(B, t) - || org_apache_arrow_flatbuf_RecordBatch_buffers_pick(B, t) - || org_apache_arrow_flatbuf_RecordBatch_compression_pick(B, t)) { - return 0; + switch (value) { + case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Row: return 1; + case org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_Column: return 1; + default: return 0; } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_RecordBatch_end(B)); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_id, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_DictionaryBatch) -__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_data, org_apache_arrow_flatbuf_RecordBatch, org_apache_arrow_flatbuf_DictionaryBatch) -__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_isDelta, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_DictionaryBatch) - -static inline org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryBatch_formal_args) -{ - if (org_apache_arrow_flatbuf_DictionaryBatch_start(B) - || org_apache_arrow_flatbuf_DictionaryBatch_id_add(B, v0) - || org_apache_arrow_flatbuf_DictionaryBatch_data_add(B, v1) - || org_apache_arrow_flatbuf_DictionaryBatch_isDelta_add(B, v2)) { - return 0; - } - return org_apache_arrow_flatbuf_DictionaryBatch_end(B); -} -static org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryBatch_table_t t) -{ - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_DictionaryBatch_start(B) - || org_apache_arrow_flatbuf_DictionaryBatch_id_pick(B, t) - || org_apache_arrow_flatbuf_DictionaryBatch_data_pick(B, t) - || org_apache_arrow_flatbuf_DictionaryBatch_isDelta_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_DictionaryBatch_end(B)); -} -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Message_version, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Message) -__flatbuffers_build_union_field(2, flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, org_apache_arrow_flatbuf_Message) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, Schema, org_apache_arrow_flatbuf_Schema) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, DictionaryBatch, org_apache_arrow_flatbuf_DictionaryBatch) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, RecordBatch, org_apache_arrow_flatbuf_RecordBatch) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, Tensor, org_apache_arrow_flatbuf_Tensor) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, SparseTensor, org_apache_arrow_flatbuf_SparseTensor) -__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_Message_bodyLength, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_Message) -__flatbuffers_build_table_vector_field(4, flatbuffers_, org_apache_arrow_flatbuf_Message_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Message) +/** ---------------------------------------------------------------------- + * EXPERIMENTAL: Data structures for sparse tensors + * Coordinate (COO) format of sparse tensor index. + * + * COO's index list are represented as a NxM matrix, + * where N is the number of non-zero values, + * and M is the number of dimensions of a sparse tensor. + * + * indicesBuffer stores the location and size of the data of this indices + * matrix. The value type and the stride of the indices matrix is + * specified in indicesType and indicesStrides fields. + * + * For example, let X be a 2x3x4x5 tensor, and it has the following + * 6 non-zero values: + * ```text + * X[0, 1, 2, 0] := 1 + * X[1, 1, 2, 3] := 2 + * X[0, 2, 1, 0] := 3 + * X[0, 1, 3, 0] := 4 + * X[0, 1, 2, 1] := 5 + * X[1, 2, 0, 4] := 6 + * ``` + * In COO format, the index matrix of X is the following 4x6 matrix: + * ```text + * [[0, 0, 0, 0, 1, 1], + * [1, 1, 1, 2, 1, 2], + * [2, 2, 3, 1, 2, 0], + * [0, 1, 0, 0, 3, 4]] + * ``` + * When isCanonical is true, the indices is sorted in lexicographical order + * (row-major order), and it does not have duplicated entries. Otherwise, + * the indices may not be sorted, or may have duplicated entries. */ +struct org_apache_arrow_flatbuf_SparseTensorIndexCOO_table { uint8_t unused__; }; -static inline org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Message_formal_args) -{ - if (org_apache_arrow_flatbuf_Message_start(B) - || org_apache_arrow_flatbuf_Message_bodyLength_add(B, v3) - || org_apache_arrow_flatbuf_Message_header_add_value(B, v2) - || org_apache_arrow_flatbuf_Message_custom_metadata_add(B, v4) - || org_apache_arrow_flatbuf_Message_version_add(B, v0) - || org_apache_arrow_flatbuf_Message_header_add_type(B, v2.type)) { - return 0; - } - return org_apache_arrow_flatbuf_Message_end(B); -} +static inline size_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_len(org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCOO_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensorIndexCOO) -static org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Message_table_t t) -{ - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Message_start(B) - || org_apache_arrow_flatbuf_Message_bodyLength_pick(B, t) - || org_apache_arrow_flatbuf_Message_header_pick(B, t) - || org_apache_arrow_flatbuf_Message_custom_metadata_pick(B, t) - || org_apache_arrow_flatbuf_Message_version_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Message_end(B)); -} +/** The type of values in indicesBuffer */ +__flatbuffers_define_table_field(0, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) +/** Non-negative byte offsets to advance one value cell along each dimension + * If omitted, default to row-major order (C-like). */ +__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesStrides, flatbuffers_int64_vec_t, 0) +/** The location and size of the indices matrix's data */ +__flatbuffers_define_struct_field(2, org_apache_arrow_flatbuf_SparseTensorIndexCOO, indicesBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) +/** This flag is true if and only if the indices matrix is sorted in + * row-major order, and does not have duplicated entries. + * This sort order is the same as of Tensorflow's SparseTensor, + * but it is inverse order of SciPy's canonical coo_matrix + * (SciPy employs column-major order for its coo_matrix). */ +__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_SparseTensorIndexCOO, isCanonical, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) -#include "flatcc/flatcc_epilogue.h" -#endif /* MESSAGE_BUILDER_H */ -#ifndef MESSAGE_VERIFIER_H -#define MESSAGE_VERIFIER_H +/** Compressed Sparse format, that is matrix-specific. */ +struct org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table { uint8_t unused__; }; -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline size_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_len(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_at(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseMatrixIndexCSX) -#ifndef MESSAGE_READER_H -#include "Message_reader.h" -#endif -#include "flatcc/flatcc_verifier.h" -#ifndef TENSOR_VERIFIER_H -#include "Tensor_verifier.h" -#endif -#ifndef SPARSETENSOR_VERIFIER_H -#include "SparseTensor_verifier.h" -#endif -#ifndef SCHEMA_VERIFIER_H -#include "Schema_verifier.h" -#endif -#include "flatcc/flatcc_prologue.h" +/** Which axis, row or column, is compressed */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, compressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, INT16_C(0)) +/** The type of values in indptrBuffer */ +__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indptrType, org_apache_arrow_flatbuf_Int_table_t, 1) +/** indptrBuffer stores the location and size of indptr array that + * represents the range of the rows. + * The i-th row spans from `indptr[i]` to `indptr[i+1]` in the data. + * The length of this array is 1 + (the number of rows), and the type + * of index value is long. + * + * For example, let X be the following 6x4 matrix: + * ```text + * X := [[0, 1, 2, 0], + * [0, 0, 3, 0], + * [0, 4, 0, 5], + * [0, 0, 0, 0], + * [6, 0, 7, 8], + * [0, 9, 0, 0]]. + * ``` + * The array of non-zero values in X is: + * ```text + * values(X) = [1, 2, 3, 4, 5, 6, 7, 8, 9]. + * ``` + * And the indptr of X is: + * ```text + * indptr(X) = [0, 2, 3, 5, 5, 8, 10]. + * ``` */ +__flatbuffers_define_struct_field(2, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indptrBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) +/** The type of values in indicesBuffer */ +__flatbuffers_define_table_field(3, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) +/** indicesBuffer stores the location and size of the array that + * contains the column indices of the corresponding non-zero values. + * The type of index value is long. + * + * For example, the indices of the above X is: + * ```text + * indices(X) = [1, 2, 2, 1, 3, 0, 2, 3, 1]. + * ``` + * Note that the indices are sorted in lexicographical order for each row. */ +__flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, indicesBuffer, org_apache_arrow_flatbuf_Buffer_struct_t, 1) -static int org_apache_arrow_flatbuf_BodyCompression_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_RecordBatch_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_DictionaryBatch_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Message_verify_table(flatcc_table_verifier_descriptor_t *td); +/** Compressed Sparse Fiber (CSF) sparse tensor index. */ +struct org_apache_arrow_flatbuf_SparseTensorIndexCSF_table { uint8_t unused__; }; -static int org_apache_arrow_flatbuf_MessageHeader_union_verifier(flatcc_union_verifier_descriptor_t *ud) -{ - switch (ud->type) { - case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Schema_verify_table); /* Schema */ - case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_DictionaryBatch_verify_table); /* DictionaryBatch */ - case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RecordBatch_verify_table); /* RecordBatch */ - case 4: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Tensor_verify_table); /* Tensor */ - case 5: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensor_verify_table); /* SparseTensor */ - default: return flatcc_verify_ok; - } -} +static inline size_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_len(org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCSF_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensorIndexCSF) -static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root(const void *buf, size_t bufsiz) -{ - return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_identifier, 16, 8); -} +/** CSF is a generalization of compressed sparse row (CSR) index. + * See [smith2017knl](http://shaden.io/pub-files/smith2017knl.pdf) + * + * CSF index recursively compresses each dimension of a tensor into a set + * of prefix trees. Each path from a root to leaf forms one tensor + * non-zero index. CSF is implemented with two arrays of buffers and one + * arrays of integers. + * + * For example, let X be a 2x3x4x5 tensor and let it have the following + * 8 non-zero values: + * ```text + * X[0, 0, 0, 1] := 1 + * X[0, 0, 0, 2] := 2 + * X[0, 1, 0, 0] := 3 + * X[0, 1, 0, 2] := 4 + * X[0, 1, 1, 0] := 5 + * X[1, 1, 1, 0] := 6 + * X[1, 1, 1, 1] := 7 + * X[1, 1, 1, 2] := 8 + * ``` + * As a prefix tree this would be represented as: + * ```text + * 0 1 + * / \ | + * 0 1 1 + * / / \ | + * 0 0 1 1 + * /| /| | /| | + * 1 2 0 2 0 0 1 2 + * ``` + * The type of values in indptrBuffers */ +__flatbuffers_define_table_field(0, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indptrType, org_apache_arrow_flatbuf_Int_table_t, 1) +/** indptrBuffers stores the sparsity structure. + * Each two consecutive dimensions in a tensor correspond to a buffer in + * indptrBuffers. A pair of consecutive values at `indptrBuffers[dim][i]` + * and `indptrBuffers[dim][i + 1]` signify a range of nodes in + * `indicesBuffers[dim + 1]` who are children of `indicesBuffers[dim][i]` node. + * + * For example, the indptrBuffers for the above X is: + * ```text + * indptrBuffer(X) = [ + * [0, 2, 3], + * [0, 1, 3, 4], + * [0, 2, 4, 5, 8] + * ]. + * ``` */ +__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indptrBuffers, org_apache_arrow_flatbuf_Buffer_vec_t, 1) +/** The type of values in indicesBuffers */ +__flatbuffers_define_table_field(2, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indicesType, org_apache_arrow_flatbuf_Int_table_t, 1) +/** indicesBuffers stores values of nodes. + * Each tensor dimension corresponds to a buffer in indicesBuffers. + * For example, the indicesBuffers for the above X is: + * ```text + * indicesBuffer(X) = [ + * [0, 1], + * [0, 1, 1], + * [0, 0, 1, 1], + * [1, 2, 0, 2, 0, 0, 1, 2] + * ]. + * ``` */ +__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_SparseTensorIndexCSF, indicesBuffers, org_apache_arrow_flatbuf_Buffer_vec_t, 1) +/** axisOrder stores the sequence in which dimensions were traversed to + * produce the prefix tree. + * For example, the axisOrder for the above X is: + * ```text + * axisOrder(X) = [0, 1, 2, 3]. + * ``` */ +__flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_SparseTensorIndexCSF, axisOrder, flatbuffers_int32_vec_t, 1) +typedef uint8_t org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_SparseTensorIndex, org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t, 8) +__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndex) +#define org_apache_arrow_flatbuf_SparseTensorIndex_NONE ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(0)) +#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(1)) +#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(2)) +#define org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF ((org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t)UINT8_C(3)) -static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline const char *org_apache_arrow_flatbuf_SparseTensorIndex_type_name(org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t type) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_type_hash, 16, 8); + switch (type) { + case org_apache_arrow_flatbuf_SparseTensorIndex_NONE: return "NONE"; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO: return "SparseTensorIndexCOO"; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX: return "SparseMatrixIndexCSX"; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF: return "SparseTensorIndexCSF"; + default: return ""; + } } -static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_SparseTensorIndex_is_known_type(org_apache_arrow_flatbuf_SparseTensorIndex_union_type_t type) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); + switch (type) { + case org_apache_arrow_flatbuf_SparseTensorIndex_NONE: return 1; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO: return 1; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX: return 1; + case org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF: return 1; + default: return 0; + } } -static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) -{ - return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); -} -static int org_apache_arrow_flatbuf_BodyCompression_verify_table(flatcc_table_verifier_descriptor_t *td) -{ - int ret; - if ((ret = flatcc_verify_field(td, 0, 1, 1) /* codec */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 1, 1) /* method */)) return ret; - return flatcc_verify_ok; -} +struct org_apache_arrow_flatbuf_SparseTensor_table { uint8_t unused__; }; -static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root(const void *buf, size_t bufsiz) -{ - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); -} +static inline size_t org_apache_arrow_flatbuf_SparseTensor_vec_len(org_apache_arrow_flatbuf_SparseTensor_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_SparseTensor_table_t org_apache_arrow_flatbuf_SparseTensor_vec_at(org_apache_arrow_flatbuf_SparseTensor_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_SparseTensor_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_SparseTensor) -static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_typed_root(const void *buf, size_t bufsiz) -{ - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_type_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); -} +/** The type of data contained in a value cell. + * Currently only fixed-width value types are supported, + * no strings or nested types. */ +__flatbuffers_define_union_field(flatbuffers_, 1, org_apache_arrow_flatbuf_SparseTensor, type, org_apache_arrow_flatbuf_Type, 1) +/** The dimensions of the tensor, optionally named. */ +__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_SparseTensor, shape, org_apache_arrow_flatbuf_TensorDim_vec_t, 1) +/** The number of non-zero values in a sparse tensor. */ +__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_SparseTensor, non_zero_length, flatbuffers_int64, int64_t, INT64_C(0)) +/** Sparse tensor index */ +__flatbuffers_define_union_field(flatbuffers_, 5, org_apache_arrow_flatbuf_SparseTensor, sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, 1) +/** The location and size of the tensor's data */ +__flatbuffers_define_struct_field(6, org_apache_arrow_flatbuf_SparseTensor, data, org_apache_arrow_flatbuf_Buffer_struct_t, 1) -static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) -{ - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BodyCompression_verify_table); -} -static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) -{ - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BodyCompression_verify_table); -} +#include "flatcc/flatcc_epilogue.h" +#endif /* SPARSETENSOR_READER_H */ +#ifndef SPARSETENSOR_BUILDER_H +#define SPARSETENSOR_BUILDER_H -static int org_apache_arrow_flatbuf_RecordBatch_verify_table(flatcc_table_verifier_descriptor_t *td) -{ - int ret; - if ((ret = flatcc_verify_field(td, 0, 8, 8) /* length */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 1, 0, 16, 8, INT64_C(268435455)) /* nodes */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 2, 0, 16, 8, INT64_C(268435455)) /* buffers */)) return ret; - if ((ret = flatcc_verify_table_field(td, 3, 0, &org_apache_arrow_flatbuf_BodyCompression_verify_table) /* compression */)) return ret; - return flatcc_verify_ok; -} +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ -static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root(const void *buf, size_t bufsiz) -{ - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); -} +#ifndef SPARSETENSOR_READER_H +#include "SparseTensor_reader.h" +#endif +#ifndef FLATBUFFERS_COMMON_BUILDER_H +#include "flatbuffers_common_builder.h" +#endif +#ifndef TENSOR_BUILDER_H +#include "Tensor_builder.h" +#endif +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier +#define flatbuffers_identifier 0 +#endif +#ifndef flatbuffers_extension +#define flatbuffers_extension "bin" +#endif -static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_typed_root(const void *buf, size_t bufsiz) -{ - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_type_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); -} +#define __org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_formal_args , org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t v0 +#define __org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t) -static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) -{ - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RecordBatch_verify_table); -} +typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t; +typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_union_vec_ref_t; +static org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndex_union_t t); -static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) -{ - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RecordBatch_verify_table); -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensorIndexCOO_required[] = { 0, 2, 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t; +static org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO, 4) -static int org_apache_arrow_flatbuf_DictionaryBatch_verify_table(flatcc_table_verifier_descriptor_t *td) -{ - int ret; - if ((ret = flatcc_verify_field(td, 0, 8, 8) /* id */)) return ret; - if ((ret = flatcc_verify_table_field(td, 1, 0, &org_apache_arrow_flatbuf_RecordBatch_verify_table) /* data */)) return ret; - if ((ret = flatcc_verify_field(td, 2, 1, 1) /* isDelta */)) return ret; - return flatcc_verify_ok; -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_required[] = { 1, 2, 3, 4, 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t; +static org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, 5) -static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root(const void *buf, size_t bufsiz) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensorIndexCSF_required[] = { 0, 1, 2, 3, 4, 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t; +static org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF, 5) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_SparseTensor_required[] = { 1, 2, 5, 6, 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_SparseTensor_ref_t; +static org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensor_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor, 7) + +#define __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args , org_apache_arrow_flatbuf_Int_ref_t v0, flatbuffers_int64_vec_ref_t v1, org_apache_arrow_flatbuf_Buffer_t *v2, flatbuffers_bool_t v3 +#define __org_apache_arrow_flatbuf_SparseTensorIndexCOO_call_args , v0, v1, v2, v3 +static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO, org_apache_arrow_flatbuf_SparseTensorIndexCOO_file_identifier, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier) + +#define __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args ,\ + org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t v0, org_apache_arrow_flatbuf_Int_ref_t v1, org_apache_arrow_flatbuf_Buffer_t *v2, org_apache_arrow_flatbuf_Int_ref_t v3, org_apache_arrow_flatbuf_Buffer_t *v4 +#define __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_call_args ,\ + v0, v1, v2, v3, v4 +static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_file_identifier, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier) + +#define __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args ,\ + org_apache_arrow_flatbuf_Int_ref_t v0, org_apache_arrow_flatbuf_Buffer_vec_ref_t v1, org_apache_arrow_flatbuf_Int_ref_t v2, org_apache_arrow_flatbuf_Buffer_vec_ref_t v3, flatbuffers_int32_vec_ref_t v4 +#define __org_apache_arrow_flatbuf_SparseTensorIndexCSF_call_args ,\ + v0, v1, v2, v3, v4 +static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF, org_apache_arrow_flatbuf_SparseTensorIndexCSF_file_identifier, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier) + +#define __org_apache_arrow_flatbuf_SparseTensor_formal_args ,\ + org_apache_arrow_flatbuf_Type_union_ref_t v1, org_apache_arrow_flatbuf_TensorDim_vec_ref_t v2, int64_t v3, org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t v5, org_apache_arrow_flatbuf_Buffer_t *v6 +#define __org_apache_arrow_flatbuf_SparseTensor_call_args ,\ + v1, v2, v3, v5, v6 +static inline org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensor_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor, org_apache_arrow_flatbuf_SparseTensor_file_identifier, org_apache_arrow_flatbuf_SparseTensor_type_identifier) + +static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_NONE(void) +{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_NONE; uref.value = 0; return uref; } +static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCOO(org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t ref) +{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCOO; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseMatrixIndexCSX(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t ref) +{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseMatrixIndexCSX; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCSF(org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t ref) +{ org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_SparseTensorIndex_SparseTensorIndexCSF; uref.value = ref; return uref; } +__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndex) + +static org_apache_arrow_flatbuf_SparseTensorIndex_union_ref_t org_apache_arrow_flatbuf_SparseTensorIndex_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndex_union_t u) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); + switch (u.type) { + case 1: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCOO(org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(B, (org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t)u.value)); + case 2: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseMatrixIndexCSX(org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(B, (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t)u.value)); + case 3: return org_apache_arrow_flatbuf_SparseTensorIndex_as_SparseTensorIndexCSF(org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(B, (org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t)u.value)); + default: return org_apache_arrow_flatbuf_SparseTensorIndex_as_NONE(); + } } -static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_typed_root(const void *buf, size_t bufsiz) +__flatbuffers_build_table_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCOO) +__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_SparseTensorIndexCOO) +__flatbuffers_build_struct_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseTensorIndexCOO) +__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_SparseTensorIndexCOO) + +static inline org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCOO_formal_args) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_type_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); + if (org_apache_arrow_flatbuf_SparseTensorIndexCOO_start(B) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer_add(B, v2) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType_add(B, v0) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides_add(B, v1) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical_add(B, v3)) { + return 0; + } + return org_apache_arrow_flatbuf_SparseTensorIndexCOO_end(B); } -static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static org_apache_arrow_flatbuf_SparseTensorIndexCOO_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCOO_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCOO_table_t t) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_SparseTensorIndexCOO_start(B) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesBuffer_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesType_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_indicesStrides_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCOO_isCanonical_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensorIndexCOO_end(B)); } -static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis, org_apache_arrow_flatbuf_SparseMatrixCompressedAxis_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +__flatbuffers_build_struct_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +__flatbuffers_build_table_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +__flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) + +static inline org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseMatrixIndexCSX_formal_args) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); + if (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_start(B) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer_add(B, v2) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer_add(B, v4) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType_add(B, v1) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType_add(B, v3) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_SparseMatrixIndexCSX_end(B); } -static int org_apache_arrow_flatbuf_Message_verify_table(flatcc_table_verifier_descriptor_t *td) +static org_apache_arrow_flatbuf_SparseMatrixIndexCSX_ref_t org_apache_arrow_flatbuf_SparseMatrixIndexCSX_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_table_t t) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* version */)) return ret; - if ((ret = flatcc_verify_union_field(td, 2, 0, &org_apache_arrow_flatbuf_MessageHeader_union_verifier) /* header */)) return ret; - if ((ret = flatcc_verify_field(td, 3, 8, 8) /* bodyLength */)) return ret; - if ((ret = flatcc_verify_table_vector_field(td, 4, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; - return flatcc_verify_ok; + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_SparseMatrixIndexCSX_start(B) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrBuffer_pick(B, t) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesBuffer_pick(B, t) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indptrType_pick(B, t) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_indicesType_pick(B, t) + || org_apache_arrow_flatbuf_SparseMatrixIndexCSX_compressedAxis_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_end(B)); } -static inline int org_apache_arrow_flatbuf_Message_verify_as_root(const void *buf, size_t bufsiz) +__flatbuffers_build_table_field(0, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +__flatbuffers_build_table_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +__flatbuffers_build_vector_field(4, flatbuffers_, org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder, flatbuffers_int32, int32_t, org_apache_arrow_flatbuf_SparseTensorIndexCSF) + +static inline org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensorIndexCSF_formal_args) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Message_identifier, &org_apache_arrow_flatbuf_Message_verify_table); + if (org_apache_arrow_flatbuf_SparseTensorIndexCSF_start(B) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType_add(B, v0) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers_add(B, v1) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType_add(B, v2) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers_add(B, v3) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder_add(B, v4)) { + return 0; + } + return org_apache_arrow_flatbuf_SparseTensorIndexCSF_end(B); } -static inline int org_apache_arrow_flatbuf_Message_verify_as_typed_root(const void *buf, size_t bufsiz) +static org_apache_arrow_flatbuf_SparseTensorIndexCSF_ref_t org_apache_arrow_flatbuf_SparseTensorIndexCSF_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensorIndexCSF_table_t t) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Message_type_identifier, &org_apache_arrow_flatbuf_Message_verify_table); + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_SparseTensorIndexCSF_start(B) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrType_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indptrBuffers_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesType_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_indicesBuffers_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensorIndexCSF_axisOrder_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensorIndexCSF_end(B)); } -static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +__flatbuffers_build_union_field(1, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_SparseTensor) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) +__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_SparseTensor) +__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_non_zero_length, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_SparseTensor) +__flatbuffers_build_union_field(5, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, org_apache_arrow_flatbuf_SparseTensor) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseTensorIndexCOO, org_apache_arrow_flatbuf_SparseTensorIndexCOO) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseMatrixIndexCSX, org_apache_arrow_flatbuf_SparseMatrixIndexCSX) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, SparseTensorIndexCSF, org_apache_arrow_flatbuf_SparseTensorIndexCSF) +__flatbuffers_build_struct_field(6, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_SparseTensor) + +static inline org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_SparseTensor_formal_args) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Message_verify_table); + if (org_apache_arrow_flatbuf_SparseTensor_start(B) + || org_apache_arrow_flatbuf_SparseTensor_non_zero_length_add(B, v3) + || org_apache_arrow_flatbuf_SparseTensor_data_add(B, v6) + || org_apache_arrow_flatbuf_SparseTensor_type_add_value(B, v1) + || org_apache_arrow_flatbuf_SparseTensor_shape_add(B, v2) + || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_add_value(B, v5) + || org_apache_arrow_flatbuf_SparseTensor_type_add_type(B, v1.type) + || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_add_type(B, v5.type)) { + return 0; + } + return org_apache_arrow_flatbuf_SparseTensor_end(B); } -static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_SparseTensor_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_SparseTensor_table_t t) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Message_verify_table); + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_SparseTensor_start(B) + || org_apache_arrow_flatbuf_SparseTensor_non_zero_length_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensor_data_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensor_type_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensor_shape_pick(B, t) + || org_apache_arrow_flatbuf_SparseTensor_sparseIndex_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_SparseTensor_end(B)); } #include "flatcc/flatcc_epilogue.h" -#endif /* MESSAGE_VERIFIER_H */ -#ifndef SCHEMA_READER_H -#define SCHEMA_READER_H +#endif /* SPARSETENSOR_BUILDER_H */ +#ifndef SPARSETENSOR_VERIFIER_H +#define SPARSETENSOR_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ -#ifndef FLATBUFFERS_COMMON_READER_H -#include "flatbuffers_common_reader.h" +#ifndef SPARSETENSOR_READER_H +#include "SparseTensor_reader.h" #endif -#include "flatcc/flatcc_flatbuffers.h" -#ifndef __alignas_is_defined -#include +#include "flatcc/flatcc_verifier.h" +#ifndef TENSOR_VERIFIER_H +#include "Tensor_verifier.h" #endif #include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier + +static int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_SparseTensor_verify_table(flatcc_table_verifier_descriptor_t *td); + +static int org_apache_arrow_flatbuf_SparseTensorIndex_union_verifier(flatcc_union_verifier_descriptor_t *ud) +{ + switch (ud->type) { + case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); /* SparseTensorIndexCOO */ + case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); /* SparseMatrixIndexCSX */ + case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); /* SparseTensorIndexCSF */ + default: return flatcc_verify_ok; + } +} + +static int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_table_field(td, 0, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 1, 0, 8, 8, INT64_C(536870911)) /* indicesStrides */)) return ret; + if ((ret = flatcc_verify_field(td, 2, 16, 8) /* indicesBuffer */)) return ret; + if ((ret = flatcc_verify_field(td, 3, 1, 1) /* isCanonical */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + +static int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* compressedAxis */)) return ret; + if ((ret = flatcc_verify_table_field(td, 1, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indptrType */)) return ret; + if ((ret = flatcc_verify_field(td, 2, 16, 8) /* indptrBuffer */)) return ret; + if ((ret = flatcc_verify_table_field(td, 3, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; + if ((ret = flatcc_verify_field(td, 4, 16, 8) /* indicesBuffer */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + +static int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_table_field(td, 0, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indptrType */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 1, 1, 16, 8, INT64_C(268435455)) /* indptrBuffers */)) return ret; + if ((ret = flatcc_verify_table_field(td, 2, 1, &org_apache_arrow_flatbuf_Int_verify_table) /* indicesType */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 3, 1, 16, 8, INT64_C(268435455)) /* indicesBuffers */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 4, 1, 4, 4, INT64_C(1073741823)) /* axisOrder */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + +static int org_apache_arrow_flatbuf_SparseTensor_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_union_field(td, 1, 1, &org_apache_arrow_flatbuf_Type_union_verifier) /* type */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 2, 1, &org_apache_arrow_flatbuf_TensorDim_verify_table) /* shape */)) return ret; + if ((ret = flatcc_verify_field(td, 3, 8, 8) /* non_zero_length */)) return ret; + if ((ret = flatcc_verify_union_field(td, 5, 1, &org_apache_arrow_flatbuf_SparseTensorIndex_union_verifier) /* sparseIndex */)) return ret; + if ((ret = flatcc_verify_field(td, 6, 16, 8) /* data */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_type_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_type_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + +#include "flatcc/flatcc_epilogue.h" +#endif /* SPARSETENSOR_VERIFIER_H */ +#ifndef MESSAGE_READER_H +#define MESSAGE_READER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef FLATBUFFERS_COMMON_READER_H +#include "flatbuffers_common_reader.h" +#endif +#ifndef TENSOR_READER_H +#include "Tensor_reader.h" +#endif +#ifndef SPARSETENSOR_READER_H +#include "SparseTensor_reader.h" +#endif +#ifndef SCHEMA_READER_H +#include "Schema_reader.h" +#endif +#include "flatcc/flatcc_flatbuffers.h" +#ifndef __alignas_is_defined +#include +#endif +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier #define flatbuffers_identifier 0 #endif #ifndef flatbuffers_extension #define flatbuffers_extension "bin" #endif -typedef struct org_apache_arrow_flatbuf_Buffer org_apache_arrow_flatbuf_Buffer_t; -typedef const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_struct_t; -typedef org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_mutable_struct_t; -typedef const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_vec_t; -typedef org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_mutable_vec_t; +typedef struct org_apache_arrow_flatbuf_FieldNode org_apache_arrow_flatbuf_FieldNode_t; +typedef const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_struct_t; +typedef org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_mutable_struct_t; +typedef const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_vec_t; +typedef org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Null_table *org_apache_arrow_flatbuf_Null_table_t; -typedef struct org_apache_arrow_flatbuf_Null_table *org_apache_arrow_flatbuf_Null_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Null_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Null_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Struct__table *org_apache_arrow_flatbuf_Struct__table_t; -typedef struct org_apache_arrow_flatbuf_Struct__table *org_apache_arrow_flatbuf_Struct__mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Struct__vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Struct__mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_List_table *org_apache_arrow_flatbuf_List_table_t; -typedef struct org_apache_arrow_flatbuf_List_table *org_apache_arrow_flatbuf_List_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_List_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_List_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_table_t; -typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; -typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Map_table *org_apache_arrow_flatbuf_Map_table_t; -typedef struct org_apache_arrow_flatbuf_Map_table *org_apache_arrow_flatbuf_Map_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Map_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Map_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Union_table *org_apache_arrow_flatbuf_Union_table_t; -typedef struct org_apache_arrow_flatbuf_Union_table *org_apache_arrow_flatbuf_Union_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Union_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Union_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Int_table *org_apache_arrow_flatbuf_Int_table_t; -typedef struct org_apache_arrow_flatbuf_Int_table *org_apache_arrow_flatbuf_Int_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Int_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Int_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_FloatingPoint_table *org_apache_arrow_flatbuf_FloatingPoint_table_t; -typedef struct org_apache_arrow_flatbuf_FloatingPoint_table *org_apache_arrow_flatbuf_FloatingPoint_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FloatingPoint_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FloatingPoint_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Utf8_table *org_apache_arrow_flatbuf_Utf8_table_t; -typedef struct org_apache_arrow_flatbuf_Utf8_table *org_apache_arrow_flatbuf_Utf8_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Binary_table *org_apache_arrow_flatbuf_Binary_table_t; -typedef struct org_apache_arrow_flatbuf_Binary_table *org_apache_arrow_flatbuf_Binary_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Binary_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Binary_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_LargeUtf8_table *org_apache_arrow_flatbuf_LargeUtf8_table_t; -typedef struct org_apache_arrow_flatbuf_LargeUtf8_table *org_apache_arrow_flatbuf_LargeUtf8_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeUtf8_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeUtf8_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_table_t; -typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; -typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Bool_table *org_apache_arrow_flatbuf_Bool_table_t; -typedef struct org_apache_arrow_flatbuf_Bool_table *org_apache_arrow_flatbuf_Bool_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Bool_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Bool_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_RunEndEncoded_table *org_apache_arrow_flatbuf_RunEndEncoded_table_t; -typedef struct org_apache_arrow_flatbuf_RunEndEncoded_table *org_apache_arrow_flatbuf_RunEndEncoded_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RunEndEncoded_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RunEndEncoded_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Decimal_table *org_apache_arrow_flatbuf_Decimal_table_t; -typedef struct org_apache_arrow_flatbuf_Decimal_table *org_apache_arrow_flatbuf_Decimal_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Decimal_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Decimal_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Date_table *org_apache_arrow_flatbuf_Date_table_t; -typedef struct org_apache_arrow_flatbuf_Date_table *org_apache_arrow_flatbuf_Date_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Date_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Date_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Time_table *org_apache_arrow_flatbuf_Time_table_t; -typedef struct org_apache_arrow_flatbuf_Time_table *org_apache_arrow_flatbuf_Time_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Time_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Time_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Timestamp_table *org_apache_arrow_flatbuf_Timestamp_table_t; -typedef struct org_apache_arrow_flatbuf_Timestamp_table *org_apache_arrow_flatbuf_Timestamp_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Timestamp_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Timestamp_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Interval_table *org_apache_arrow_flatbuf_Interval_table_t; -typedef struct org_apache_arrow_flatbuf_Interval_table *org_apache_arrow_flatbuf_Interval_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Interval_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Interval_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Duration_table *org_apache_arrow_flatbuf_Duration_table_t; -typedef struct org_apache_arrow_flatbuf_Duration_table *org_apache_arrow_flatbuf_Duration_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Duration_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Duration_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_KeyValue_table *org_apache_arrow_flatbuf_KeyValue_table_t; -typedef struct org_apache_arrow_flatbuf_KeyValue_table *org_apache_arrow_flatbuf_KeyValue_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_KeyValue_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_KeyValue_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_DictionaryEncoding_table *org_apache_arrow_flatbuf_DictionaryEncoding_table_t; -typedef struct org_apache_arrow_flatbuf_DictionaryEncoding_table *org_apache_arrow_flatbuf_DictionaryEncoding_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryEncoding_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryEncoding_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Field_table *org_apache_arrow_flatbuf_Field_table_t; -typedef struct org_apache_arrow_flatbuf_Field_table *org_apache_arrow_flatbuf_Field_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Field_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Field_mutable_vec_t; -typedef const struct org_apache_arrow_flatbuf_Schema_table *org_apache_arrow_flatbuf_Schema_table_t; -typedef struct org_apache_arrow_flatbuf_Schema_table *org_apache_arrow_flatbuf_Schema_mutable_table_t; -typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_vec_t; -typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; -#ifndef org_apache_arrow_flatbuf_Null_file_identifier -#define org_apache_arrow_flatbuf_Null_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Null_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Null_identifier -#define org_apache_arrow_flatbuf_Null_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Null_type_hash ((flatbuffers_thash_t)0x7b36a4dd) -#define org_apache_arrow_flatbuf_Null_type_identifier "\xdd\xa4\x36\x7b" -#ifndef org_apache_arrow_flatbuf_Null_file_extension -#define org_apache_arrow_flatbuf_Null_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_Struct__file_identifier -#define org_apache_arrow_flatbuf_Struct__file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Struct__file_identifier */ -#ifndef org_apache_arrow_flatbuf_Struct__identifier -#define org_apache_arrow_flatbuf_Struct__identifier 0 -#endif -#define org_apache_arrow_flatbuf_Struct__type_hash ((flatbuffers_thash_t)0x6310f362) -#define org_apache_arrow_flatbuf_Struct__type_identifier "\x62\xf3\x10\x63" -#ifndef org_apache_arrow_flatbuf_Struct__file_extension -#define org_apache_arrow_flatbuf_Struct__file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_List_file_identifier -#define org_apache_arrow_flatbuf_List_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_List_file_identifier */ -#ifndef org_apache_arrow_flatbuf_List_identifier -#define org_apache_arrow_flatbuf_List_identifier 0 -#endif -#define org_apache_arrow_flatbuf_List_type_hash ((flatbuffers_thash_t)0xd4ce5878) -#define org_apache_arrow_flatbuf_List_type_identifier "\x78\x58\xce\xd4" -#ifndef org_apache_arrow_flatbuf_List_file_extension -#define org_apache_arrow_flatbuf_List_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_LargeList_file_identifier -#define org_apache_arrow_flatbuf_LargeList_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_LargeList_file_identifier */ -#ifndef org_apache_arrow_flatbuf_LargeList_identifier -#define org_apache_arrow_flatbuf_LargeList_identifier 0 -#endif -#define org_apache_arrow_flatbuf_LargeList_type_hash ((flatbuffers_thash_t)0x38aa7e27) -#define org_apache_arrow_flatbuf_LargeList_type_identifier "\x27\x7e\xaa\x38" -#ifndef org_apache_arrow_flatbuf_LargeList_file_extension -#define org_apache_arrow_flatbuf_LargeList_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier -#define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_FixedSizeList_file_identifier */ -#ifndef org_apache_arrow_flatbuf_FixedSizeList_identifier -#define org_apache_arrow_flatbuf_FixedSizeList_identifier 0 -#endif -#define org_apache_arrow_flatbuf_FixedSizeList_type_hash ((flatbuffers_thash_t)0xcef245bb) -#define org_apache_arrow_flatbuf_FixedSizeList_type_identifier "\xbb\x45\xf2\xce" -#ifndef org_apache_arrow_flatbuf_FixedSizeList_file_extension -#define org_apache_arrow_flatbuf_FixedSizeList_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_Map_file_identifier -#define org_apache_arrow_flatbuf_Map_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Map_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Map_identifier -#define org_apache_arrow_flatbuf_Map_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Map_type_hash ((flatbuffers_thash_t)0xcebef8e6) -#define org_apache_arrow_flatbuf_Map_type_identifier "\xe6\xf8\xbe\xce" -#ifndef org_apache_arrow_flatbuf_Map_file_extension -#define org_apache_arrow_flatbuf_Map_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_Union_file_identifier -#define org_apache_arrow_flatbuf_Union_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Union_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Union_identifier -#define org_apache_arrow_flatbuf_Union_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Union_type_hash ((flatbuffers_thash_t)0x896bda57) -#define org_apache_arrow_flatbuf_Union_type_identifier "\x57\xda\x6b\x89" -#ifndef org_apache_arrow_flatbuf_Union_file_extension -#define org_apache_arrow_flatbuf_Union_file_extension "bin" +typedef const struct org_apache_arrow_flatbuf_BodyCompression_table *org_apache_arrow_flatbuf_BodyCompression_table_t; +typedef struct org_apache_arrow_flatbuf_BodyCompression_table *org_apache_arrow_flatbuf_BodyCompression_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BodyCompression_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BodyCompression_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_RecordBatch_table *org_apache_arrow_flatbuf_RecordBatch_table_t; +typedef struct org_apache_arrow_flatbuf_RecordBatch_table *org_apache_arrow_flatbuf_RecordBatch_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RecordBatch_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RecordBatch_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_DictionaryBatch_table *org_apache_arrow_flatbuf_DictionaryBatch_table_t; +typedef struct org_apache_arrow_flatbuf_DictionaryBatch_table *org_apache_arrow_flatbuf_DictionaryBatch_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryBatch_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryBatch_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Message_table *org_apache_arrow_flatbuf_Message_table_t; +typedef struct org_apache_arrow_flatbuf_Message_table *org_apache_arrow_flatbuf_Message_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Message_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Message_mutable_vec_t; +#ifndef org_apache_arrow_flatbuf_FieldNode_file_identifier +#define org_apache_arrow_flatbuf_FieldNode_file_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_Int_file_identifier -#define org_apache_arrow_flatbuf_Int_file_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_FieldNode_file_identifier */ +#ifndef org_apache_arrow_flatbuf_FieldNode_identifier +#define org_apache_arrow_flatbuf_FieldNode_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Int_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Int_identifier -#define org_apache_arrow_flatbuf_Int_identifier 0 +#define org_apache_arrow_flatbuf_FieldNode_type_hash ((flatbuffers_thash_t)0x931857b8) +#define org_apache_arrow_flatbuf_FieldNode_type_identifier "\xb8\x57\x18\x93" +#ifndef org_apache_arrow_flatbuf_FieldNode_file_extension +#define org_apache_arrow_flatbuf_FieldNode_file_extension "bin" #endif -#define org_apache_arrow_flatbuf_Int_type_hash ((flatbuffers_thash_t)0x30789001) -#define org_apache_arrow_flatbuf_Int_type_identifier "\x01\x90\x78\x30" -#ifndef org_apache_arrow_flatbuf_Int_file_extension -#define org_apache_arrow_flatbuf_Int_file_extension "bin" +#ifndef org_apache_arrow_flatbuf_BodyCompression_file_identifier +#define org_apache_arrow_flatbuf_BodyCompression_file_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_FloatingPoint_file_identifier -#define org_apache_arrow_flatbuf_FloatingPoint_file_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_BodyCompression_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BodyCompression_identifier +#define org_apache_arrow_flatbuf_BodyCompression_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_FloatingPoint_file_identifier */ -#ifndef org_apache_arrow_flatbuf_FloatingPoint_identifier -#define org_apache_arrow_flatbuf_FloatingPoint_identifier 0 +#define org_apache_arrow_flatbuf_BodyCompression_type_hash ((flatbuffers_thash_t)0xbc821116) +#define org_apache_arrow_flatbuf_BodyCompression_type_identifier "\x16\x11\x82\xbc" +#ifndef org_apache_arrow_flatbuf_BodyCompression_file_extension +#define org_apache_arrow_flatbuf_BodyCompression_file_extension "bin" #endif -#define org_apache_arrow_flatbuf_FloatingPoint_type_hash ((flatbuffers_thash_t)0xf7d06268) -#define org_apache_arrow_flatbuf_FloatingPoint_type_identifier "\x68\x62\xd0\xf7" -#ifndef org_apache_arrow_flatbuf_FloatingPoint_file_extension -#define org_apache_arrow_flatbuf_FloatingPoint_file_extension "bin" +#ifndef org_apache_arrow_flatbuf_RecordBatch_file_identifier +#define org_apache_arrow_flatbuf_RecordBatch_file_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_Utf8_file_identifier -#define org_apache_arrow_flatbuf_Utf8_file_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_RecordBatch_file_identifier */ +#ifndef org_apache_arrow_flatbuf_RecordBatch_identifier +#define org_apache_arrow_flatbuf_RecordBatch_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Utf8_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Utf8_identifier -#define org_apache_arrow_flatbuf_Utf8_identifier 0 +#define org_apache_arrow_flatbuf_RecordBatch_type_hash ((flatbuffers_thash_t)0x43c558b) +#define org_apache_arrow_flatbuf_RecordBatch_type_identifier "\x8b\x55\x3c\x04" +#ifndef org_apache_arrow_flatbuf_RecordBatch_file_extension +#define org_apache_arrow_flatbuf_RecordBatch_file_extension "bin" #endif -#define org_apache_arrow_flatbuf_Utf8_type_hash ((flatbuffers_thash_t)0x8fe60d37) -#define org_apache_arrow_flatbuf_Utf8_type_identifier "\x37\x0d\xe6\x8f" -#ifndef org_apache_arrow_flatbuf_Utf8_file_extension -#define org_apache_arrow_flatbuf_Utf8_file_extension "bin" +#ifndef org_apache_arrow_flatbuf_DictionaryBatch_file_identifier +#define org_apache_arrow_flatbuf_DictionaryBatch_file_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_Binary_file_identifier -#define org_apache_arrow_flatbuf_Binary_file_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_DictionaryBatch_file_identifier */ +#ifndef org_apache_arrow_flatbuf_DictionaryBatch_identifier +#define org_apache_arrow_flatbuf_DictionaryBatch_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Binary_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Binary_identifier -#define org_apache_arrow_flatbuf_Binary_identifier 0 +#define org_apache_arrow_flatbuf_DictionaryBatch_type_hash ((flatbuffers_thash_t)0x5c6da7bc) +#define org_apache_arrow_flatbuf_DictionaryBatch_type_identifier "\xbc\xa7\x6d\x5c" +#ifndef org_apache_arrow_flatbuf_DictionaryBatch_file_extension +#define org_apache_arrow_flatbuf_DictionaryBatch_file_extension "bin" #endif -#define org_apache_arrow_flatbuf_Binary_type_hash ((flatbuffers_thash_t)0x8e21a795) -#define org_apache_arrow_flatbuf_Binary_type_identifier "\x95\xa7\x21\x8e" -#ifndef org_apache_arrow_flatbuf_Binary_file_extension -#define org_apache_arrow_flatbuf_Binary_file_extension "bin" +#ifndef org_apache_arrow_flatbuf_Message_file_identifier +#define org_apache_arrow_flatbuf_Message_file_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_LargeUtf8_file_identifier -#define org_apache_arrow_flatbuf_LargeUtf8_file_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_Message_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Message_identifier +#define org_apache_arrow_flatbuf_Message_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_LargeUtf8_file_identifier */ -#ifndef org_apache_arrow_flatbuf_LargeUtf8_identifier -#define org_apache_arrow_flatbuf_LargeUtf8_identifier 0 +#define org_apache_arrow_flatbuf_Message_type_hash ((flatbuffers_thash_t)0xc3efd227) +#define org_apache_arrow_flatbuf_Message_type_identifier "\x27\xd2\xef\xc3" +#ifndef org_apache_arrow_flatbuf_Message_file_extension +#define org_apache_arrow_flatbuf_Message_file_extension "bin" #endif -#define org_apache_arrow_flatbuf_LargeUtf8_type_hash ((flatbuffers_thash_t)0x24ed2fb0) -#define org_apache_arrow_flatbuf_LargeUtf8_type_identifier "\xb0\x2f\xed\x24" -#ifndef org_apache_arrow_flatbuf_LargeUtf8_file_extension -#define org_apache_arrow_flatbuf_LargeUtf8_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_LargeBinary_file_identifier -#define org_apache_arrow_flatbuf_LargeBinary_file_identifier 0 + +typedef int8_t org_apache_arrow_flatbuf_CompressionType_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, 8) +#define org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME ((org_apache_arrow_flatbuf_CompressionType_enum_t)INT8_C(0)) +#define org_apache_arrow_flatbuf_CompressionType_ZSTD ((org_apache_arrow_flatbuf_CompressionType_enum_t)INT8_C(1)) + +static inline const char *org_apache_arrow_flatbuf_CompressionType_name(org_apache_arrow_flatbuf_CompressionType_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME: return "LZ4_FRAME"; + case org_apache_arrow_flatbuf_CompressionType_ZSTD: return "ZSTD"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_CompressionType_is_known_value(org_apache_arrow_flatbuf_CompressionType_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_CompressionType_LZ4_FRAME: return 1; + case org_apache_arrow_flatbuf_CompressionType_ZSTD: return 1; + default: return 0; + } +} + +/** Provided for forward compatibility in case we need to support different + * strategies for compressing the IPC message body (like whole-body + * compression rather than buffer-level) in the future */ +typedef int8_t org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, 8) +/** Each constituent buffer is first compressed with the indicated + * compressor, and then written with the uncompressed length in the first 8 + * bytes as a 64-bit little-endian signed integer followed by the compressed + * buffer bytes (and then padding as required by the protocol). The + * uncompressed length may be set to -1 to indicate that the data that + * follows is not compressed, which can be useful for cases where + * compression does not yield appreciable savings. */ +#define org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER ((org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t)INT8_C(0)) + +static inline const char *org_apache_arrow_flatbuf_BodyCompressionMethod_name(org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER: return "BUFFER"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_BodyCompressionMethod_is_known_value(org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_BodyCompressionMethod_BUFFER: return 1; + default: return 0; + } +} + + +/** ---------------------------------------------------------------------- + * Data structures for describing a table row batch (a collection of + * equal-length Arrow arrays) + * Metadata about a field at some level of a nested type tree (but not + * its children). + * + * For example, a List with values `[[1, 2, 3], null, [4], [5, 6], null]` + * would have {length: 5, null_count: 2} for its List node, and {length: 6, + * null_count: 0} for its Int16 node, as separate FieldNode structs */ +struct org_apache_arrow_flatbuf_FieldNode { + /** The number of value slots in the Arrow array at this level of a nested + * tree */ + alignas(8) int64_t length; + /** The number of observed nulls. Fields with null_count == 0 may choose not + * to write their physical validity bitmap out as a materialized buffer, + * instead setting the length of the bitmap buffer to 0. */ + alignas(8) int64_t null_count; +}; +static_assert(sizeof(org_apache_arrow_flatbuf_FieldNode_t) == 16, "struct size mismatch"); + +static inline const org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode__const_ptr_add(const org_apache_arrow_flatbuf_FieldNode_t *p, size_t i) { return p + i; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode__ptr_add(org_apache_arrow_flatbuf_FieldNode_t *p, size_t i) { return p + i; } +static inline org_apache_arrow_flatbuf_FieldNode_struct_t org_apache_arrow_flatbuf_FieldNode_vec_at(org_apache_arrow_flatbuf_FieldNode_vec_t vec, size_t i) +__flatbuffers_struct_vec_at(vec, i) +static inline size_t org_apache_arrow_flatbuf_FieldNode__size(void) { return 16; } +static inline size_t org_apache_arrow_flatbuf_FieldNode_vec_len(org_apache_arrow_flatbuf_FieldNode_vec_t vec) +__flatbuffers_vec_len(vec) +__flatbuffers_struct_as_root(org_apache_arrow_flatbuf_FieldNode) + +__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_FieldNode, length, flatbuffers_int64, int64_t) +__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_FieldNode, null_count, flatbuffers_int64, int64_t) + + +/** Optional compression for the memory buffers constituting IPC message + * bodies. Intended for use with RecordBatch but could be used for other + * message types */ +struct org_apache_arrow_flatbuf_BodyCompression_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BodyCompression_vec_len(org_apache_arrow_flatbuf_BodyCompression_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BodyCompression_table_t org_apache_arrow_flatbuf_BodyCompression_vec_at(org_apache_arrow_flatbuf_BodyCompression_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BodyCompression_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BodyCompression) + +/** Compressor library. + * For LZ4_FRAME, each compressed buffer must consist of a single frame. */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_BodyCompression, codec, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, INT8_C(0)) +/** Indicates the way the record batch body was compressed */ +__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_BodyCompression, method, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, INT8_C(0)) + +/** A data header describing the shared memory layout of a "record" or "row" + * batch. Some systems call this a "row batch" internally and others a "record + * batch". */ +struct org_apache_arrow_flatbuf_RecordBatch_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_RecordBatch_vec_len(org_apache_arrow_flatbuf_RecordBatch_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_RecordBatch_table_t org_apache_arrow_flatbuf_RecordBatch_vec_at(org_apache_arrow_flatbuf_RecordBatch_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_RecordBatch_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_RecordBatch) + +/** number of records / rows. The arrays in the batch should all have this + * length */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_RecordBatch, length, flatbuffers_int64, int64_t, INT64_C(0)) +/** Nodes correspond to the pre-ordered flattened logical schema */ +__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_RecordBatch, nodes, org_apache_arrow_flatbuf_FieldNode_vec_t, 0) +/** Buffers correspond to the pre-ordered flattened buffer tree + * + * The number of buffers appended to this list depends on the schema. For + * example, most primitive arrays will have 2 buffers, 1 for the validity + * bitmap and 1 for the values. For struct arrays, there will only be a + * single buffer for the validity (nulls) bitmap */ +__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_RecordBatch, buffers, org_apache_arrow_flatbuf_Buffer_vec_t, 0) +/** Optional compression of the message body */ +__flatbuffers_define_table_field(3, org_apache_arrow_flatbuf_RecordBatch, compression, org_apache_arrow_flatbuf_BodyCompression_table_t, 0) +/** Some types such as Utf8View are represented using a variable number of buffers. + * For each such Field in the pre-ordered flattened logical schema, there will be + * an entry in variadicBufferCounts to indicate the number of number of variadic + * buffers which belong to that Field in the current RecordBatch. + * + * For example, the schema + * col1: Struct + * col2: Utf8View + * contains two Fields with variadic buffers so variadicBufferCounts will have + * two entries, the first counting the variadic buffers of `col1.beta` and the + * second counting `col2`'s. + * + * This field may be omitted if and only if the schema contains no Fields with + * a variable number of buffers, such as BinaryView and Utf8View. */ +__flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_RecordBatch, variadicBufferCounts, flatbuffers_int64_vec_t, 0) + +/** For sending dictionary encoding information. Any Field can be + * dictionary-encoded, but in this case none of its children may be + * dictionary-encoded. + * There is one vector / column per dictionary, but that vector / column + * may be spread across multiple dictionary batches by using the isDelta + * flag */ +struct org_apache_arrow_flatbuf_DictionaryBatch_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_DictionaryBatch_vec_len(org_apache_arrow_flatbuf_DictionaryBatch_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_DictionaryBatch_table_t org_apache_arrow_flatbuf_DictionaryBatch_vec_at(org_apache_arrow_flatbuf_DictionaryBatch_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_DictionaryBatch_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_DictionaryBatch) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_DictionaryBatch, id, flatbuffers_int64, int64_t, INT64_C(0)) +__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_DictionaryBatch, data, org_apache_arrow_flatbuf_RecordBatch_table_t, 0) +/** If isDelta is true the values in the dictionary are to be appended to a + * dictionary with the indicated id. If isDelta is false this dictionary + * should replace the existing dictionary. */ +__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_DictionaryBatch, isDelta, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +/** ---------------------------------------------------------------------- + * The root Message type + * This union enables us to easily send different message types without + * redundant storage, and in the future we can easily add new message types. + * + * Arrow implementations do not need to implement all of the message types, + * which may include experimental metadata types. For maximum compatibility, + * it is best to send data using RecordBatch */ +typedef uint8_t org_apache_arrow_flatbuf_MessageHeader_union_type_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_MessageHeader, org_apache_arrow_flatbuf_MessageHeader_union_type_t, 8) +__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_MessageHeader) +#define org_apache_arrow_flatbuf_MessageHeader_NONE ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(0)) +#define org_apache_arrow_flatbuf_MessageHeader_Schema ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(1)) +#define org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(2)) +#define org_apache_arrow_flatbuf_MessageHeader_RecordBatch ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(3)) +#define org_apache_arrow_flatbuf_MessageHeader_Tensor ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(4)) +#define org_apache_arrow_flatbuf_MessageHeader_SparseTensor ((org_apache_arrow_flatbuf_MessageHeader_union_type_t)UINT8_C(5)) + +static inline const char *org_apache_arrow_flatbuf_MessageHeader_type_name(org_apache_arrow_flatbuf_MessageHeader_union_type_t type) +{ + switch (type) { + case org_apache_arrow_flatbuf_MessageHeader_NONE: return "NONE"; + case org_apache_arrow_flatbuf_MessageHeader_Schema: return "Schema"; + case org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch: return "DictionaryBatch"; + case org_apache_arrow_flatbuf_MessageHeader_RecordBatch: return "RecordBatch"; + case org_apache_arrow_flatbuf_MessageHeader_Tensor: return "Tensor"; + case org_apache_arrow_flatbuf_MessageHeader_SparseTensor: return "SparseTensor"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_MessageHeader_is_known_type(org_apache_arrow_flatbuf_MessageHeader_union_type_t type) +{ + switch (type) { + case org_apache_arrow_flatbuf_MessageHeader_NONE: return 1; + case org_apache_arrow_flatbuf_MessageHeader_Schema: return 1; + case org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch: return 1; + case org_apache_arrow_flatbuf_MessageHeader_RecordBatch: return 1; + case org_apache_arrow_flatbuf_MessageHeader_Tensor: return 1; + case org_apache_arrow_flatbuf_MessageHeader_SparseTensor: return 1; + default: return 0; + } +} + + +struct org_apache_arrow_flatbuf_Message_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Message_vec_len(org_apache_arrow_flatbuf_Message_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Message_table_t org_apache_arrow_flatbuf_Message_vec_at(org_apache_arrow_flatbuf_Message_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Message_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Message) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Message, version, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, INT16_C(0)) +__flatbuffers_define_union_field(flatbuffers_, 2, org_apache_arrow_flatbuf_Message, header, org_apache_arrow_flatbuf_MessageHeader, 0) +__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_Message, bodyLength, flatbuffers_int64, int64_t, INT64_C(0)) +__flatbuffers_define_vector_field(4, org_apache_arrow_flatbuf_Message, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) + + +#include "flatcc/flatcc_epilogue.h" +#endif /* MESSAGE_READER_H */ +#ifndef MESSAGE_BUILDER_H +#define MESSAGE_BUILDER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef MESSAGE_READER_H +#include "Message_reader.h" #endif -/* deprecated, use org_apache_arrow_flatbuf_LargeBinary_file_identifier */ -#ifndef org_apache_arrow_flatbuf_LargeBinary_identifier -#define org_apache_arrow_flatbuf_LargeBinary_identifier 0 +#ifndef FLATBUFFERS_COMMON_BUILDER_H +#include "flatbuffers_common_builder.h" #endif -#define org_apache_arrow_flatbuf_LargeBinary_type_hash ((flatbuffers_thash_t)0xbd437872) -#define org_apache_arrow_flatbuf_LargeBinary_type_identifier "\x72\x78\x43\xbd" -#ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension -#define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" +#ifndef TENSOR_BUILDER_H +#include "Tensor_builder.h" #endif -#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier -#define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 +#ifndef SPARSETENSOR_BUILDER_H +#include "SparseTensor_builder.h" #endif -/* deprecated, use org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier */ -#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_identifier -#define org_apache_arrow_flatbuf_FixedSizeBinary_identifier 0 +#ifndef SCHEMA_BUILDER_H +#include "Schema_builder.h" #endif -#define org_apache_arrow_flatbuf_FixedSizeBinary_type_hash ((flatbuffers_thash_t)0x80d0f4ce) -#define org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier "\xce\xf4\xd0\x80" -#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_extension -#define org_apache_arrow_flatbuf_FixedSizeBinary_file_extension "bin" +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier +#define flatbuffers_identifier 0 #endif -#ifndef org_apache_arrow_flatbuf_Bool_file_identifier -#define org_apache_arrow_flatbuf_Bool_file_identifier 0 +#ifndef flatbuffers_extension +#define flatbuffers_extension "bin" #endif -/* deprecated, use org_apache_arrow_flatbuf_Bool_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Bool_identifier -#define org_apache_arrow_flatbuf_Bool_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Bool_type_hash ((flatbuffers_thash_t)0x96bf83f0) -#define org_apache_arrow_flatbuf_Bool_type_identifier "\xf0\x83\xbf\x96" -#ifndef org_apache_arrow_flatbuf_Bool_file_extension -#define org_apache_arrow_flatbuf_Bool_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_RunEndEncoded_file_identifier -#define org_apache_arrow_flatbuf_RunEndEncoded_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_RunEndEncoded_file_identifier */ -#ifndef org_apache_arrow_flatbuf_RunEndEncoded_identifier -#define org_apache_arrow_flatbuf_RunEndEncoded_identifier 0 + +#define __org_apache_arrow_flatbuf_CompressionType_formal_args , org_apache_arrow_flatbuf_CompressionType_enum_t v0 +#define __org_apache_arrow_flatbuf_CompressionType_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t) +#define __org_apache_arrow_flatbuf_BodyCompressionMethod_formal_args , org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t v0 +#define __org_apache_arrow_flatbuf_BodyCompressionMethod_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t) + +#define __org_apache_arrow_flatbuf_FieldNode_formal_args , int64_t v0, int64_t v1 +#define __org_apache_arrow_flatbuf_FieldNode_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) +{ p->length = v0; p->null_count = v1; + return p; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) +{ p->length = p2->length; p->null_count = p2->null_count; + return p; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign_to_pe(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) +{ flatbuffers_int64_assign_to_pe(&p->length, v0); flatbuffers_int64_assign_to_pe(&p->null_count, v1); + return p; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy_to_pe(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) +{ flatbuffers_int64_copy_to_pe(&p->length, &p2->length); flatbuffers_int64_copy_to_pe(&p->null_count, &p2->null_count); + return p; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_assign_from_pe(org_apache_arrow_flatbuf_FieldNode_t *p, int64_t v0, int64_t v1) +{ flatbuffers_int64_assign_from_pe(&p->length, v0); flatbuffers_int64_assign_from_pe(&p->null_count, v1); + return p; } +static inline org_apache_arrow_flatbuf_FieldNode_t *org_apache_arrow_flatbuf_FieldNode_copy_from_pe(org_apache_arrow_flatbuf_FieldNode_t *p, const org_apache_arrow_flatbuf_FieldNode_t *p2) +{ flatbuffers_int64_copy_from_pe(&p->length, &p2->length); flatbuffers_int64_copy_from_pe(&p->null_count, &p2->null_count); + return p; } +__flatbuffers_build_struct(flatbuffers_, org_apache_arrow_flatbuf_FieldNode, 16, 8, org_apache_arrow_flatbuf_FieldNode_file_identifier, org_apache_arrow_flatbuf_FieldNode_type_identifier) +__flatbuffers_define_fixed_array_primitives(flatbuffers_, org_apache_arrow_flatbuf_FieldNode, org_apache_arrow_flatbuf_FieldNode_t) + +typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_MessageHeader_union_ref_t; +typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_MessageHeader_union_vec_ref_t; +static org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_MessageHeader_union_t t); + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BodyCompression_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BodyCompression_ref_t; +static org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BodyCompression_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BodyCompression, 2) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_RecordBatch_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_RecordBatch_ref_t; +static org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RecordBatch_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_RecordBatch, 5) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_DictionaryBatch_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_DictionaryBatch_ref_t; +static org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryBatch_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch, 3) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Message_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Message_ref_t; +static org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Message_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Message, 5) + +#define __org_apache_arrow_flatbuf_BodyCompression_formal_args , org_apache_arrow_flatbuf_CompressionType_enum_t v0, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t v1 +#define __org_apache_arrow_flatbuf_BodyCompression_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BodyCompression_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BodyCompression, org_apache_arrow_flatbuf_BodyCompression_file_identifier, org_apache_arrow_flatbuf_BodyCompression_type_identifier) + +#define __org_apache_arrow_flatbuf_RecordBatch_formal_args ,\ + int64_t v0, org_apache_arrow_flatbuf_FieldNode_vec_ref_t v1, org_apache_arrow_flatbuf_Buffer_vec_ref_t v2, org_apache_arrow_flatbuf_BodyCompression_ref_t v3, flatbuffers_int64_vec_ref_t v4 +#define __org_apache_arrow_flatbuf_RecordBatch_call_args ,\ + v0, v1, v2, v3, v4 +static inline org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RecordBatch_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_RecordBatch, org_apache_arrow_flatbuf_RecordBatch_file_identifier, org_apache_arrow_flatbuf_RecordBatch_type_identifier) + +#define __org_apache_arrow_flatbuf_DictionaryBatch_formal_args , int64_t v0, org_apache_arrow_flatbuf_RecordBatch_ref_t v1, flatbuffers_bool_t v2 +#define __org_apache_arrow_flatbuf_DictionaryBatch_call_args , v0, v1, v2 +static inline org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryBatch_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch, org_apache_arrow_flatbuf_DictionaryBatch_file_identifier, org_apache_arrow_flatbuf_DictionaryBatch_type_identifier) + +#define __org_apache_arrow_flatbuf_Message_formal_args , org_apache_arrow_flatbuf_MetadataVersion_enum_t v0, org_apache_arrow_flatbuf_MessageHeader_union_ref_t v2, int64_t v3, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v4 +#define __org_apache_arrow_flatbuf_Message_call_args , v0, v2, v3, v4 +static inline org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Message_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Message, org_apache_arrow_flatbuf_Message_file_identifier, org_apache_arrow_flatbuf_Message_type_identifier) + +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_NONE(void) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_NONE; uref.value = 0; return uref; } +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_Schema(org_apache_arrow_flatbuf_Schema_ref_t ref) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_Schema; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_DictionaryBatch(org_apache_arrow_flatbuf_DictionaryBatch_ref_t ref) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_DictionaryBatch; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_RecordBatch(org_apache_arrow_flatbuf_RecordBatch_ref_t ref) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_RecordBatch; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_Tensor(org_apache_arrow_flatbuf_Tensor_ref_t ref) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_Tensor; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_as_SparseTensor(org_apache_arrow_flatbuf_SparseTensor_ref_t ref) +{ org_apache_arrow_flatbuf_MessageHeader_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_MessageHeader_SparseTensor; uref.value = ref; return uref; } +__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_MessageHeader) + +static org_apache_arrow_flatbuf_MessageHeader_union_ref_t org_apache_arrow_flatbuf_MessageHeader_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_MessageHeader_union_t u) +{ + switch (u.type) { + case 1: return org_apache_arrow_flatbuf_MessageHeader_as_Schema(org_apache_arrow_flatbuf_Schema_clone(B, (org_apache_arrow_flatbuf_Schema_table_t)u.value)); + case 2: return org_apache_arrow_flatbuf_MessageHeader_as_DictionaryBatch(org_apache_arrow_flatbuf_DictionaryBatch_clone(B, (org_apache_arrow_flatbuf_DictionaryBatch_table_t)u.value)); + case 3: return org_apache_arrow_flatbuf_MessageHeader_as_RecordBatch(org_apache_arrow_flatbuf_RecordBatch_clone(B, (org_apache_arrow_flatbuf_RecordBatch_table_t)u.value)); + case 4: return org_apache_arrow_flatbuf_MessageHeader_as_Tensor(org_apache_arrow_flatbuf_Tensor_clone(B, (org_apache_arrow_flatbuf_Tensor_table_t)u.value)); + case 5: return org_apache_arrow_flatbuf_MessageHeader_as_SparseTensor(org_apache_arrow_flatbuf_SparseTensor_clone(B, (org_apache_arrow_flatbuf_SparseTensor_table_t)u.value)); + default: return org_apache_arrow_flatbuf_MessageHeader_as_NONE(); + } +} + +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_BodyCompression_codec, org_apache_arrow_flatbuf_CompressionType, org_apache_arrow_flatbuf_CompressionType_enum_t, 1, 1, INT8_C(0), org_apache_arrow_flatbuf_BodyCompression) +__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_BodyCompression_method, org_apache_arrow_flatbuf_BodyCompressionMethod, org_apache_arrow_flatbuf_BodyCompressionMethod_enum_t, 1, 1, INT8_C(0), org_apache_arrow_flatbuf_BodyCompression) + +static inline org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BodyCompression_formal_args) +{ + if (org_apache_arrow_flatbuf_BodyCompression_start(B) + || org_apache_arrow_flatbuf_BodyCompression_codec_add(B, v0) + || org_apache_arrow_flatbuf_BodyCompression_method_add(B, v1)) { + return 0; + } + return org_apache_arrow_flatbuf_BodyCompression_end(B); +} + +static org_apache_arrow_flatbuf_BodyCompression_ref_t org_apache_arrow_flatbuf_BodyCompression_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BodyCompression_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BodyCompression_start(B) + || org_apache_arrow_flatbuf_BodyCompression_codec_pick(B, t) + || org_apache_arrow_flatbuf_BodyCompression_method_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BodyCompression_end(B)); +} + +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_length, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_RecordBatch) +__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_nodes, org_apache_arrow_flatbuf_FieldNode, org_apache_arrow_flatbuf_FieldNode_t, org_apache_arrow_flatbuf_RecordBatch) +__flatbuffers_build_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_buffers, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t, org_apache_arrow_flatbuf_RecordBatch) +__flatbuffers_build_table_field(3, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_compression, org_apache_arrow_flatbuf_BodyCompression, org_apache_arrow_flatbuf_RecordBatch) +__flatbuffers_build_vector_field(4, flatbuffers_, org_apache_arrow_flatbuf_RecordBatch_variadicBufferCounts, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_RecordBatch) + +static inline org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RecordBatch_formal_args) +{ + if (org_apache_arrow_flatbuf_RecordBatch_start(B) + || org_apache_arrow_flatbuf_RecordBatch_length_add(B, v0) + || org_apache_arrow_flatbuf_RecordBatch_nodes_add(B, v1) + || org_apache_arrow_flatbuf_RecordBatch_buffers_add(B, v2) + || org_apache_arrow_flatbuf_RecordBatch_compression_add(B, v3) + || org_apache_arrow_flatbuf_RecordBatch_variadicBufferCounts_add(B, v4)) { + return 0; + } + return org_apache_arrow_flatbuf_RecordBatch_end(B); +} + +static org_apache_arrow_flatbuf_RecordBatch_ref_t org_apache_arrow_flatbuf_RecordBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RecordBatch_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_RecordBatch_start(B) + || org_apache_arrow_flatbuf_RecordBatch_length_pick(B, t) + || org_apache_arrow_flatbuf_RecordBatch_nodes_pick(B, t) + || org_apache_arrow_flatbuf_RecordBatch_buffers_pick(B, t) + || org_apache_arrow_flatbuf_RecordBatch_compression_pick(B, t) + || org_apache_arrow_flatbuf_RecordBatch_variadicBufferCounts_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_RecordBatch_end(B)); +} + +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_id, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_DictionaryBatch) +__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_data, org_apache_arrow_flatbuf_RecordBatch, org_apache_arrow_flatbuf_DictionaryBatch) +__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_DictionaryBatch_isDelta, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_DictionaryBatch) + +static inline org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryBatch_formal_args) +{ + if (org_apache_arrow_flatbuf_DictionaryBatch_start(B) + || org_apache_arrow_flatbuf_DictionaryBatch_id_add(B, v0) + || org_apache_arrow_flatbuf_DictionaryBatch_data_add(B, v1) + || org_apache_arrow_flatbuf_DictionaryBatch_isDelta_add(B, v2)) { + return 0; + } + return org_apache_arrow_flatbuf_DictionaryBatch_end(B); +} + +static org_apache_arrow_flatbuf_DictionaryBatch_ref_t org_apache_arrow_flatbuf_DictionaryBatch_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryBatch_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_DictionaryBatch_start(B) + || org_apache_arrow_flatbuf_DictionaryBatch_id_pick(B, t) + || org_apache_arrow_flatbuf_DictionaryBatch_data_pick(B, t) + || org_apache_arrow_flatbuf_DictionaryBatch_isDelta_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_DictionaryBatch_end(B)); +} + +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Message_version, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Message) +__flatbuffers_build_union_field(2, flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, org_apache_arrow_flatbuf_Message) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, Schema, org_apache_arrow_flatbuf_Schema) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, DictionaryBatch, org_apache_arrow_flatbuf_DictionaryBatch) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, RecordBatch, org_apache_arrow_flatbuf_RecordBatch) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, Tensor, org_apache_arrow_flatbuf_Tensor) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Message_header, org_apache_arrow_flatbuf_MessageHeader, SparseTensor, org_apache_arrow_flatbuf_SparseTensor) +__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_Message_bodyLength, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_Message) +__flatbuffers_build_table_vector_field(4, flatbuffers_, org_apache_arrow_flatbuf_Message_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Message) + +static inline org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Message_formal_args) +{ + if (org_apache_arrow_flatbuf_Message_start(B) + || org_apache_arrow_flatbuf_Message_bodyLength_add(B, v3) + || org_apache_arrow_flatbuf_Message_header_add_value(B, v2) + || org_apache_arrow_flatbuf_Message_custom_metadata_add(B, v4) + || org_apache_arrow_flatbuf_Message_version_add(B, v0) + || org_apache_arrow_flatbuf_Message_header_add_type(B, v2.type)) { + return 0; + } + return org_apache_arrow_flatbuf_Message_end(B); +} + +static org_apache_arrow_flatbuf_Message_ref_t org_apache_arrow_flatbuf_Message_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Message_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Message_start(B) + || org_apache_arrow_flatbuf_Message_bodyLength_pick(B, t) + || org_apache_arrow_flatbuf_Message_header_pick(B, t) + || org_apache_arrow_flatbuf_Message_custom_metadata_pick(B, t) + || org_apache_arrow_flatbuf_Message_version_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Message_end(B)); +} + +#include "flatcc/flatcc_epilogue.h" +#endif /* MESSAGE_BUILDER_H */ +#ifndef MESSAGE_VERIFIER_H +#define MESSAGE_VERIFIER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef MESSAGE_READER_H +#include "Message_reader.h" #endif -#define org_apache_arrow_flatbuf_RunEndEncoded_type_hash ((flatbuffers_thash_t)0x5a98bcc) -#define org_apache_arrow_flatbuf_RunEndEncoded_type_identifier "\xcc\x8b\xa9\x05" -#ifndef org_apache_arrow_flatbuf_RunEndEncoded_file_extension -#define org_apache_arrow_flatbuf_RunEndEncoded_file_extension "bin" +#include "flatcc/flatcc_verifier.h" +#ifndef TENSOR_VERIFIER_H +#include "Tensor_verifier.h" #endif -#ifndef org_apache_arrow_flatbuf_Decimal_file_identifier -#define org_apache_arrow_flatbuf_Decimal_file_identifier 0 +#ifndef SPARSETENSOR_VERIFIER_H +#include "SparseTensor_verifier.h" #endif -/* deprecated, use org_apache_arrow_flatbuf_Decimal_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Decimal_identifier -#define org_apache_arrow_flatbuf_Decimal_identifier 0 +#ifndef SCHEMA_VERIFIER_H +#include "Schema_verifier.h" #endif -#define org_apache_arrow_flatbuf_Decimal_type_hash ((flatbuffers_thash_t)0x91d1beb7) -#define org_apache_arrow_flatbuf_Decimal_type_identifier "\xb7\xbe\xd1\x91" -#ifndef org_apache_arrow_flatbuf_Decimal_file_extension -#define org_apache_arrow_flatbuf_Decimal_file_extension "bin" -#endif -#ifndef org_apache_arrow_flatbuf_Date_file_identifier -#define org_apache_arrow_flatbuf_Date_file_identifier 0 -#endif -/* deprecated, use org_apache_arrow_flatbuf_Date_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Date_identifier -#define org_apache_arrow_flatbuf_Date_identifier 0 -#endif -#define org_apache_arrow_flatbuf_Date_type_hash ((flatbuffers_thash_t)0xe0ccf624) -#define org_apache_arrow_flatbuf_Date_type_identifier "\x24\xf6\xcc\xe0" -#ifndef org_apache_arrow_flatbuf_Date_file_extension -#define org_apache_arrow_flatbuf_Date_file_extension "bin" +#include "flatcc/flatcc_prologue.h" + +static int org_apache_arrow_flatbuf_BodyCompression_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_RecordBatch_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_DictionaryBatch_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Message_verify_table(flatcc_table_verifier_descriptor_t *td); + +static int org_apache_arrow_flatbuf_MessageHeader_union_verifier(flatcc_union_verifier_descriptor_t *ud) +{ + switch (ud->type) { + case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Schema_verify_table); /* Schema */ + case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_DictionaryBatch_verify_table); /* DictionaryBatch */ + case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RecordBatch_verify_table); /* RecordBatch */ + case 4: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Tensor_verify_table); /* Tensor */ + case 5: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_SparseTensor_verify_table); /* SparseTensor */ + default: return flatcc_verify_ok; + } +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_identifier, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_identifier, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_type_hash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FieldNode_type_hash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_FieldNode_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); +} + +static int org_apache_arrow_flatbuf_BodyCompression_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 1, 1) /* codec */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 1, 1) /* method */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_type_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BodyCompression_type_identifier, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static inline int org_apache_arrow_flatbuf_BodyCompression_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BodyCompression_verify_table); +} + +static int org_apache_arrow_flatbuf_RecordBatch_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 8, 8) /* length */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 1, 0, 16, 8, INT64_C(268435455)) /* nodes */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 2, 0, 16, 8, INT64_C(268435455)) /* buffers */)) return ret; + if ((ret = flatcc_verify_table_field(td, 3, 0, &org_apache_arrow_flatbuf_BodyCompression_verify_table) /* compression */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 4, 0, 8, 8, INT64_C(536870911)) /* variadicBufferCounts */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_type_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RecordBatch_type_identifier, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_RecordBatch_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RecordBatch_verify_table); +} + +static int org_apache_arrow_flatbuf_DictionaryBatch_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 8, 8) /* id */)) return ret; + if ((ret = flatcc_verify_table_field(td, 1, 0, &org_apache_arrow_flatbuf_RecordBatch_verify_table) /* data */)) return ret; + if ((ret = flatcc_verify_field(td, 2, 1, 1) /* isDelta */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_type_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryBatch_type_identifier, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static inline int org_apache_arrow_flatbuf_DictionaryBatch_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryBatch_verify_table); +} + +static int org_apache_arrow_flatbuf_Message_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* version */)) return ret; + if ((ret = flatcc_verify_union_field(td, 2, 0, &org_apache_arrow_flatbuf_MessageHeader_union_verifier) /* header */)) return ret; + if ((ret = flatcc_verify_field(td, 3, 8, 8) /* bodyLength */)) return ret; + if ((ret = flatcc_verify_table_vector_field(td, 4, 0, &org_apache_arrow_flatbuf_KeyValue_verify_table) /* custom_metadata */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Message_identifier, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Message_identifier, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Message_type_identifier, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Message_type_identifier, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Message_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Message_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Message_verify_table); +} + +#include "flatcc/flatcc_epilogue.h" +#endif /* MESSAGE_VERIFIER_H */ +#ifndef SCHEMA_READER_H +#define SCHEMA_READER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef FLATBUFFERS_COMMON_READER_H +#include "flatbuffers_common_reader.h" #endif -#ifndef org_apache_arrow_flatbuf_Time_file_identifier -#define org_apache_arrow_flatbuf_Time_file_identifier 0 +#include "flatcc/flatcc_flatbuffers.h" +#ifndef __alignas_is_defined +#include #endif -/* deprecated, use org_apache_arrow_flatbuf_Time_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Time_identifier -#define org_apache_arrow_flatbuf_Time_identifier 0 +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier +#define flatbuffers_identifier 0 #endif -#define org_apache_arrow_flatbuf_Time_type_hash ((flatbuffers_thash_t)0x2442a489) -#define org_apache_arrow_flatbuf_Time_type_identifier "\x89\xa4\x42\x24" -#ifndef org_apache_arrow_flatbuf_Time_file_extension -#define org_apache_arrow_flatbuf_Time_file_extension "bin" +#ifndef flatbuffers_extension +#define flatbuffers_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Timestamp_file_identifier -#define org_apache_arrow_flatbuf_Timestamp_file_identifier 0 + +typedef struct org_apache_arrow_flatbuf_Buffer org_apache_arrow_flatbuf_Buffer_t; +typedef const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_struct_t; +typedef org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_mutable_struct_t; +typedef const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_vec_t; +typedef org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_mutable_vec_t; + +typedef const struct org_apache_arrow_flatbuf_Null_table *org_apache_arrow_flatbuf_Null_table_t; +typedef struct org_apache_arrow_flatbuf_Null_table *org_apache_arrow_flatbuf_Null_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Null_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Null_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Struct__table *org_apache_arrow_flatbuf_Struct__table_t; +typedef struct org_apache_arrow_flatbuf_Struct__table *org_apache_arrow_flatbuf_Struct__mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Struct__vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Struct__mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_List_table *org_apache_arrow_flatbuf_List_table_t; +typedef struct org_apache_arrow_flatbuf_List_table *org_apache_arrow_flatbuf_List_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_List_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_List_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_table_t; +typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_table_t; +typedef struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_table_t; +typedef struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; +typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Map_table *org_apache_arrow_flatbuf_Map_table_t; +typedef struct org_apache_arrow_flatbuf_Map_table *org_apache_arrow_flatbuf_Map_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Map_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Map_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Union_table *org_apache_arrow_flatbuf_Union_table_t; +typedef struct org_apache_arrow_flatbuf_Union_table *org_apache_arrow_flatbuf_Union_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Union_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Union_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Int_table *org_apache_arrow_flatbuf_Int_table_t; +typedef struct org_apache_arrow_flatbuf_Int_table *org_apache_arrow_flatbuf_Int_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Int_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Int_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_FloatingPoint_table *org_apache_arrow_flatbuf_FloatingPoint_table_t; +typedef struct org_apache_arrow_flatbuf_FloatingPoint_table *org_apache_arrow_flatbuf_FloatingPoint_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FloatingPoint_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FloatingPoint_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8_table *org_apache_arrow_flatbuf_Utf8_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8_table *org_apache_arrow_flatbuf_Utf8_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Binary_table *org_apache_arrow_flatbuf_Binary_table_t; +typedef struct org_apache_arrow_flatbuf_Binary_table *org_apache_arrow_flatbuf_Binary_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Binary_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Binary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeUtf8_table *org_apache_arrow_flatbuf_LargeUtf8_table_t; +typedef struct org_apache_arrow_flatbuf_LargeUtf8_table *org_apache_arrow_flatbuf_LargeUtf8_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeUtf8_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeUtf8_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_table_t; +typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_table_t; +typedef struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; +typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Bool_table *org_apache_arrow_flatbuf_Bool_table_t; +typedef struct org_apache_arrow_flatbuf_Bool_table *org_apache_arrow_flatbuf_Bool_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Bool_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Bool_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_RunEndEncoded_table *org_apache_arrow_flatbuf_RunEndEncoded_table_t; +typedef struct org_apache_arrow_flatbuf_RunEndEncoded_table *org_apache_arrow_flatbuf_RunEndEncoded_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RunEndEncoded_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_RunEndEncoded_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Decimal_table *org_apache_arrow_flatbuf_Decimal_table_t; +typedef struct org_apache_arrow_flatbuf_Decimal_table *org_apache_arrow_flatbuf_Decimal_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Decimal_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Decimal_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Date_table *org_apache_arrow_flatbuf_Date_table_t; +typedef struct org_apache_arrow_flatbuf_Date_table *org_apache_arrow_flatbuf_Date_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Date_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Date_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Time_table *org_apache_arrow_flatbuf_Time_table_t; +typedef struct org_apache_arrow_flatbuf_Time_table *org_apache_arrow_flatbuf_Time_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Time_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Time_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Timestamp_table *org_apache_arrow_flatbuf_Timestamp_table_t; +typedef struct org_apache_arrow_flatbuf_Timestamp_table *org_apache_arrow_flatbuf_Timestamp_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Timestamp_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Timestamp_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Interval_table *org_apache_arrow_flatbuf_Interval_table_t; +typedef struct org_apache_arrow_flatbuf_Interval_table *org_apache_arrow_flatbuf_Interval_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Interval_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Interval_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Duration_table *org_apache_arrow_flatbuf_Duration_table_t; +typedef struct org_apache_arrow_flatbuf_Duration_table *org_apache_arrow_flatbuf_Duration_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Duration_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Duration_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_KeyValue_table *org_apache_arrow_flatbuf_KeyValue_table_t; +typedef struct org_apache_arrow_flatbuf_KeyValue_table *org_apache_arrow_flatbuf_KeyValue_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_KeyValue_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_KeyValue_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_DictionaryEncoding_table *org_apache_arrow_flatbuf_DictionaryEncoding_table_t; +typedef struct org_apache_arrow_flatbuf_DictionaryEncoding_table *org_apache_arrow_flatbuf_DictionaryEncoding_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryEncoding_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_DictionaryEncoding_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Field_table *org_apache_arrow_flatbuf_Field_table_t; +typedef struct org_apache_arrow_flatbuf_Field_table *org_apache_arrow_flatbuf_Field_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Field_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Field_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Schema_table *org_apache_arrow_flatbuf_Schema_table_t; +typedef struct org_apache_arrow_flatbuf_Schema_table *org_apache_arrow_flatbuf_Schema_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; +#ifndef org_apache_arrow_flatbuf_Null_file_identifier +#define org_apache_arrow_flatbuf_Null_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Timestamp_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Timestamp_identifier -#define org_apache_arrow_flatbuf_Timestamp_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_Null_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Null_identifier +#define org_apache_arrow_flatbuf_Null_identifier 0 #endif -#define org_apache_arrow_flatbuf_Timestamp_type_hash ((flatbuffers_thash_t)0x1fddf080) -#define org_apache_arrow_flatbuf_Timestamp_type_identifier "\x80\xf0\xdd\x1f" -#ifndef org_apache_arrow_flatbuf_Timestamp_file_extension -#define org_apache_arrow_flatbuf_Timestamp_file_extension "bin" +#define org_apache_arrow_flatbuf_Null_type_hash ((flatbuffers_thash_t)0x7b36a4dd) +#define org_apache_arrow_flatbuf_Null_type_identifier "\xdd\xa4\x36\x7b" +#ifndef org_apache_arrow_flatbuf_Null_file_extension +#define org_apache_arrow_flatbuf_Null_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Interval_file_identifier -#define org_apache_arrow_flatbuf_Interval_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_Struct__file_identifier +#define org_apache_arrow_flatbuf_Struct__file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Interval_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Interval_identifier -#define org_apache_arrow_flatbuf_Interval_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_Struct__file_identifier */ +#ifndef org_apache_arrow_flatbuf_Struct__identifier +#define org_apache_arrow_flatbuf_Struct__identifier 0 #endif -#define org_apache_arrow_flatbuf_Interval_type_hash ((flatbuffers_thash_t)0x1e2d6809) -#define org_apache_arrow_flatbuf_Interval_type_identifier "\x09\x68\x2d\x1e" -#ifndef org_apache_arrow_flatbuf_Interval_file_extension -#define org_apache_arrow_flatbuf_Interval_file_extension "bin" +#define org_apache_arrow_flatbuf_Struct__type_hash ((flatbuffers_thash_t)0x6310f362) +#define org_apache_arrow_flatbuf_Struct__type_identifier "\x62\xf3\x10\x63" +#ifndef org_apache_arrow_flatbuf_Struct__file_extension +#define org_apache_arrow_flatbuf_Struct__file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Duration_file_identifier -#define org_apache_arrow_flatbuf_Duration_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_List_file_identifier +#define org_apache_arrow_flatbuf_List_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Duration_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Duration_identifier -#define org_apache_arrow_flatbuf_Duration_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_List_file_identifier */ +#ifndef org_apache_arrow_flatbuf_List_identifier +#define org_apache_arrow_flatbuf_List_identifier 0 #endif -#define org_apache_arrow_flatbuf_Duration_type_hash ((flatbuffers_thash_t)0x1ecea6b0) -#define org_apache_arrow_flatbuf_Duration_type_identifier "\xb0\xa6\xce\x1e" -#ifndef org_apache_arrow_flatbuf_Duration_file_extension -#define org_apache_arrow_flatbuf_Duration_file_extension "bin" +#define org_apache_arrow_flatbuf_List_type_hash ((flatbuffers_thash_t)0xd4ce5878) +#define org_apache_arrow_flatbuf_List_type_identifier "\x78\x58\xce\xd4" +#ifndef org_apache_arrow_flatbuf_List_file_extension +#define org_apache_arrow_flatbuf_List_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_KeyValue_file_identifier -#define org_apache_arrow_flatbuf_KeyValue_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_LargeList_file_identifier +#define org_apache_arrow_flatbuf_LargeList_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_KeyValue_file_identifier */ -#ifndef org_apache_arrow_flatbuf_KeyValue_identifier -#define org_apache_arrow_flatbuf_KeyValue_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_LargeList_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeList_identifier +#define org_apache_arrow_flatbuf_LargeList_identifier 0 #endif -#define org_apache_arrow_flatbuf_KeyValue_type_hash ((flatbuffers_thash_t)0x3b264744) -#define org_apache_arrow_flatbuf_KeyValue_type_identifier "\x44\x47\x26\x3b" -#ifndef org_apache_arrow_flatbuf_KeyValue_file_extension -#define org_apache_arrow_flatbuf_KeyValue_file_extension "bin" +#define org_apache_arrow_flatbuf_LargeList_type_hash ((flatbuffers_thash_t)0x38aa7e27) +#define org_apache_arrow_flatbuf_LargeList_type_identifier "\x27\x7e\xaa\x38" +#ifndef org_apache_arrow_flatbuf_LargeList_file_extension +#define org_apache_arrow_flatbuf_LargeList_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier -#define org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_ListView_file_identifier +#define org_apache_arrow_flatbuf_ListView_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier */ -#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_identifier -#define org_apache_arrow_flatbuf_DictionaryEncoding_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_ListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_ListView_identifier +#define org_apache_arrow_flatbuf_ListView_identifier 0 #endif -#define org_apache_arrow_flatbuf_DictionaryEncoding_type_hash ((flatbuffers_thash_t)0x8c703261) -#define org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier "\x61\x32\x70\x8c" -#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_file_extension -#define org_apache_arrow_flatbuf_DictionaryEncoding_file_extension "bin" +#define org_apache_arrow_flatbuf_ListView_type_hash ((flatbuffers_thash_t)0x23d37919) +#define org_apache_arrow_flatbuf_ListView_type_identifier "\x19\x79\xd3\x23" +#ifndef org_apache_arrow_flatbuf_ListView_file_extension +#define org_apache_arrow_flatbuf_ListView_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Field_file_identifier -#define org_apache_arrow_flatbuf_Field_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_LargeListView_file_identifier +#define org_apache_arrow_flatbuf_LargeListView_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Field_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Field_identifier -#define org_apache_arrow_flatbuf_Field_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_LargeListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeListView_identifier +#define org_apache_arrow_flatbuf_LargeListView_identifier 0 #endif -#define org_apache_arrow_flatbuf_Field_type_hash ((flatbuffers_thash_t)0xd981525c) -#define org_apache_arrow_flatbuf_Field_type_identifier "\x5c\x52\x81\xd9" -#ifndef org_apache_arrow_flatbuf_Field_file_extension -#define org_apache_arrow_flatbuf_Field_file_extension "bin" +#define org_apache_arrow_flatbuf_LargeListView_type_hash ((flatbuffers_thash_t)0x28efac02) +#define org_apache_arrow_flatbuf_LargeListView_type_identifier "\x02\xac\xef\x28" +#ifndef org_apache_arrow_flatbuf_LargeListView_file_extension +#define org_apache_arrow_flatbuf_LargeListView_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Buffer_file_identifier -#define org_apache_arrow_flatbuf_Buffer_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier +#define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Buffer_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Buffer_identifier -#define org_apache_arrow_flatbuf_Buffer_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_FixedSizeList_file_identifier */ +#ifndef org_apache_arrow_flatbuf_FixedSizeList_identifier +#define org_apache_arrow_flatbuf_FixedSizeList_identifier 0 #endif -#define org_apache_arrow_flatbuf_Buffer_type_hash ((flatbuffers_thash_t)0x519d7fea) -#define org_apache_arrow_flatbuf_Buffer_type_identifier "\xea\x7f\x9d\x51" -#ifndef org_apache_arrow_flatbuf_Buffer_file_extension -#define org_apache_arrow_flatbuf_Buffer_file_extension "bin" +#define org_apache_arrow_flatbuf_FixedSizeList_type_hash ((flatbuffers_thash_t)0xcef245bb) +#define org_apache_arrow_flatbuf_FixedSizeList_type_identifier "\xbb\x45\xf2\xce" +#ifndef org_apache_arrow_flatbuf_FixedSizeList_file_extension +#define org_apache_arrow_flatbuf_FixedSizeList_file_extension "bin" #endif -#ifndef org_apache_arrow_flatbuf_Schema_file_identifier -#define org_apache_arrow_flatbuf_Schema_file_identifier 0 +#ifndef org_apache_arrow_flatbuf_Map_file_identifier +#define org_apache_arrow_flatbuf_Map_file_identifier 0 #endif -/* deprecated, use org_apache_arrow_flatbuf_Schema_file_identifier */ -#ifndef org_apache_arrow_flatbuf_Schema_identifier -#define org_apache_arrow_flatbuf_Schema_identifier 0 +/* deprecated, use org_apache_arrow_flatbuf_Map_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Map_identifier +#define org_apache_arrow_flatbuf_Map_identifier 0 #endif -#define org_apache_arrow_flatbuf_Schema_type_hash ((flatbuffers_thash_t)0x406570b) -#define org_apache_arrow_flatbuf_Schema_type_identifier "\x0b\x57\x06\x04" -#ifndef org_apache_arrow_flatbuf_Schema_file_extension -#define org_apache_arrow_flatbuf_Schema_file_extension "bin" +#define org_apache_arrow_flatbuf_Map_type_hash ((flatbuffers_thash_t)0xcebef8e6) +#define org_apache_arrow_flatbuf_Map_type_identifier "\xe6\xf8\xbe\xce" +#ifndef org_apache_arrow_flatbuf_Map_file_extension +#define org_apache_arrow_flatbuf_Map_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Union_file_identifier +#define org_apache_arrow_flatbuf_Union_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Union_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Union_identifier +#define org_apache_arrow_flatbuf_Union_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Union_type_hash ((flatbuffers_thash_t)0x896bda57) +#define org_apache_arrow_flatbuf_Union_type_identifier "\x57\xda\x6b\x89" +#ifndef org_apache_arrow_flatbuf_Union_file_extension +#define org_apache_arrow_flatbuf_Union_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Int_file_identifier +#define org_apache_arrow_flatbuf_Int_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Int_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Int_identifier +#define org_apache_arrow_flatbuf_Int_identifier 0 #endif +#define org_apache_arrow_flatbuf_Int_type_hash ((flatbuffers_thash_t)0x30789001) +#define org_apache_arrow_flatbuf_Int_type_identifier "\x01\x90\x78\x30" +#ifndef org_apache_arrow_flatbuf_Int_file_extension +#define org_apache_arrow_flatbuf_Int_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_FloatingPoint_file_identifier +#define org_apache_arrow_flatbuf_FloatingPoint_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_FloatingPoint_file_identifier */ +#ifndef org_apache_arrow_flatbuf_FloatingPoint_identifier +#define org_apache_arrow_flatbuf_FloatingPoint_identifier 0 +#endif +#define org_apache_arrow_flatbuf_FloatingPoint_type_hash ((flatbuffers_thash_t)0xf7d06268) +#define org_apache_arrow_flatbuf_FloatingPoint_type_identifier "\x68\x62\xd0\xf7" +#ifndef org_apache_arrow_flatbuf_FloatingPoint_file_extension +#define org_apache_arrow_flatbuf_FloatingPoint_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Utf8_file_identifier +#define org_apache_arrow_flatbuf_Utf8_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8_identifier +#define org_apache_arrow_flatbuf_Utf8_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8_type_hash ((flatbuffers_thash_t)0x8fe60d37) +#define org_apache_arrow_flatbuf_Utf8_type_identifier "\x37\x0d\xe6\x8f" +#ifndef org_apache_arrow_flatbuf_Utf8_file_extension +#define org_apache_arrow_flatbuf_Utf8_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Binary_file_identifier +#define org_apache_arrow_flatbuf_Binary_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Binary_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Binary_identifier +#define org_apache_arrow_flatbuf_Binary_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Binary_type_hash ((flatbuffers_thash_t)0x8e21a795) +#define org_apache_arrow_flatbuf_Binary_type_identifier "\x95\xa7\x21\x8e" +#ifndef org_apache_arrow_flatbuf_Binary_file_extension +#define org_apache_arrow_flatbuf_Binary_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeUtf8_file_identifier +#define org_apache_arrow_flatbuf_LargeUtf8_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeUtf8_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeUtf8_identifier +#define org_apache_arrow_flatbuf_LargeUtf8_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeUtf8_type_hash ((flatbuffers_thash_t)0x24ed2fb0) +#define org_apache_arrow_flatbuf_LargeUtf8_type_identifier "\xb0\x2f\xed\x24" +#ifndef org_apache_arrow_flatbuf_LargeUtf8_file_extension +#define org_apache_arrow_flatbuf_LargeUtf8_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeBinary_file_identifier +#define org_apache_arrow_flatbuf_LargeBinary_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeBinary_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeBinary_identifier +#define org_apache_arrow_flatbuf_LargeBinary_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeBinary_type_hash ((flatbuffers_thash_t)0xbd437872) +#define org_apache_arrow_flatbuf_LargeBinary_type_identifier "\x72\x78\x43\xbd" +#ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension +#define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Utf8View_file_identifier +#define org_apache_arrow_flatbuf_Utf8View_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8View_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8View_identifier +#define org_apache_arrow_flatbuf_Utf8View_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8View_type_hash ((flatbuffers_thash_t)0xab7692) +#define org_apache_arrow_flatbuf_Utf8View_type_identifier "\x92\x76\xab\x00" +#ifndef org_apache_arrow_flatbuf_Utf8View_file_extension +#define org_apache_arrow_flatbuf_Utf8View_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_BinaryView_file_identifier +#define org_apache_arrow_flatbuf_BinaryView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_BinaryView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BinaryView_identifier +#define org_apache_arrow_flatbuf_BinaryView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_BinaryView_type_hash ((flatbuffers_thash_t)0x18c52428) +#define org_apache_arrow_flatbuf_BinaryView_type_identifier "\x28\x24\xc5\x18" +#ifndef org_apache_arrow_flatbuf_BinaryView_file_extension +#define org_apache_arrow_flatbuf_BinaryView_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier +#define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier */ +#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_identifier +#define org_apache_arrow_flatbuf_FixedSizeBinary_identifier 0 +#endif +#define org_apache_arrow_flatbuf_FixedSizeBinary_type_hash ((flatbuffers_thash_t)0x80d0f4ce) +#define org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier "\xce\xf4\xd0\x80" +#ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_extension +#define org_apache_arrow_flatbuf_FixedSizeBinary_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Bool_file_identifier +#define org_apache_arrow_flatbuf_Bool_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Bool_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Bool_identifier +#define org_apache_arrow_flatbuf_Bool_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Bool_type_hash ((flatbuffers_thash_t)0x96bf83f0) +#define org_apache_arrow_flatbuf_Bool_type_identifier "\xf0\x83\xbf\x96" +#ifndef org_apache_arrow_flatbuf_Bool_file_extension +#define org_apache_arrow_flatbuf_Bool_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_RunEndEncoded_file_identifier +#define org_apache_arrow_flatbuf_RunEndEncoded_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_RunEndEncoded_file_identifier */ +#ifndef org_apache_arrow_flatbuf_RunEndEncoded_identifier +#define org_apache_arrow_flatbuf_RunEndEncoded_identifier 0 +#endif +#define org_apache_arrow_flatbuf_RunEndEncoded_type_hash ((flatbuffers_thash_t)0x5a98bcc) +#define org_apache_arrow_flatbuf_RunEndEncoded_type_identifier "\xcc\x8b\xa9\x05" +#ifndef org_apache_arrow_flatbuf_RunEndEncoded_file_extension +#define org_apache_arrow_flatbuf_RunEndEncoded_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Decimal_file_identifier +#define org_apache_arrow_flatbuf_Decimal_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Decimal_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Decimal_identifier +#define org_apache_arrow_flatbuf_Decimal_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Decimal_type_hash ((flatbuffers_thash_t)0x91d1beb7) +#define org_apache_arrow_flatbuf_Decimal_type_identifier "\xb7\xbe\xd1\x91" +#ifndef org_apache_arrow_flatbuf_Decimal_file_extension +#define org_apache_arrow_flatbuf_Decimal_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Date_file_identifier +#define org_apache_arrow_flatbuf_Date_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Date_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Date_identifier +#define org_apache_arrow_flatbuf_Date_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Date_type_hash ((flatbuffers_thash_t)0xe0ccf624) +#define org_apache_arrow_flatbuf_Date_type_identifier "\x24\xf6\xcc\xe0" +#ifndef org_apache_arrow_flatbuf_Date_file_extension +#define org_apache_arrow_flatbuf_Date_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Time_file_identifier +#define org_apache_arrow_flatbuf_Time_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Time_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Time_identifier +#define org_apache_arrow_flatbuf_Time_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Time_type_hash ((flatbuffers_thash_t)0x2442a489) +#define org_apache_arrow_flatbuf_Time_type_identifier "\x89\xa4\x42\x24" +#ifndef org_apache_arrow_flatbuf_Time_file_extension +#define org_apache_arrow_flatbuf_Time_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Timestamp_file_identifier +#define org_apache_arrow_flatbuf_Timestamp_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Timestamp_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Timestamp_identifier +#define org_apache_arrow_flatbuf_Timestamp_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Timestamp_type_hash ((flatbuffers_thash_t)0x1fddf080) +#define org_apache_arrow_flatbuf_Timestamp_type_identifier "\x80\xf0\xdd\x1f" +#ifndef org_apache_arrow_flatbuf_Timestamp_file_extension +#define org_apache_arrow_flatbuf_Timestamp_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Interval_file_identifier +#define org_apache_arrow_flatbuf_Interval_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Interval_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Interval_identifier +#define org_apache_arrow_flatbuf_Interval_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Interval_type_hash ((flatbuffers_thash_t)0x1e2d6809) +#define org_apache_arrow_flatbuf_Interval_type_identifier "\x09\x68\x2d\x1e" +#ifndef org_apache_arrow_flatbuf_Interval_file_extension +#define org_apache_arrow_flatbuf_Interval_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Duration_file_identifier +#define org_apache_arrow_flatbuf_Duration_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Duration_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Duration_identifier +#define org_apache_arrow_flatbuf_Duration_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Duration_type_hash ((flatbuffers_thash_t)0x1ecea6b0) +#define org_apache_arrow_flatbuf_Duration_type_identifier "\xb0\xa6\xce\x1e" +#ifndef org_apache_arrow_flatbuf_Duration_file_extension +#define org_apache_arrow_flatbuf_Duration_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_KeyValue_file_identifier +#define org_apache_arrow_flatbuf_KeyValue_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_KeyValue_file_identifier */ +#ifndef org_apache_arrow_flatbuf_KeyValue_identifier +#define org_apache_arrow_flatbuf_KeyValue_identifier 0 +#endif +#define org_apache_arrow_flatbuf_KeyValue_type_hash ((flatbuffers_thash_t)0x3b264744) +#define org_apache_arrow_flatbuf_KeyValue_type_identifier "\x44\x47\x26\x3b" +#ifndef org_apache_arrow_flatbuf_KeyValue_file_extension +#define org_apache_arrow_flatbuf_KeyValue_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier +#define org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier */ +#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_identifier +#define org_apache_arrow_flatbuf_DictionaryEncoding_identifier 0 +#endif +#define org_apache_arrow_flatbuf_DictionaryEncoding_type_hash ((flatbuffers_thash_t)0x8c703261) +#define org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier "\x61\x32\x70\x8c" +#ifndef org_apache_arrow_flatbuf_DictionaryEncoding_file_extension +#define org_apache_arrow_flatbuf_DictionaryEncoding_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Field_file_identifier +#define org_apache_arrow_flatbuf_Field_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Field_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Field_identifier +#define org_apache_arrow_flatbuf_Field_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Field_type_hash ((flatbuffers_thash_t)0xd981525c) +#define org_apache_arrow_flatbuf_Field_type_identifier "\x5c\x52\x81\xd9" +#ifndef org_apache_arrow_flatbuf_Field_file_extension +#define org_apache_arrow_flatbuf_Field_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Buffer_file_identifier +#define org_apache_arrow_flatbuf_Buffer_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Buffer_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Buffer_identifier +#define org_apache_arrow_flatbuf_Buffer_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Buffer_type_hash ((flatbuffers_thash_t)0x519d7fea) +#define org_apache_arrow_flatbuf_Buffer_type_identifier "\xea\x7f\x9d\x51" +#ifndef org_apache_arrow_flatbuf_Buffer_file_extension +#define org_apache_arrow_flatbuf_Buffer_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_Schema_file_identifier +#define org_apache_arrow_flatbuf_Schema_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Schema_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Schema_identifier +#define org_apache_arrow_flatbuf_Schema_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Schema_type_hash ((flatbuffers_thash_t)0x406570b) +#define org_apache_arrow_flatbuf_Schema_type_identifier "\x0b\x57\x06\x04" +#ifndef org_apache_arrow_flatbuf_Schema_file_extension +#define org_apache_arrow_flatbuf_Schema_file_extension "bin" +#endif + +typedef int16_t org_apache_arrow_flatbuf_MetadataVersion_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, 16) +/** 0.1.0 (October 2016). */ +#define org_apache_arrow_flatbuf_MetadataVersion_V1 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_MetadataVersion_V2 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(1)) +#define org_apache_arrow_flatbuf_MetadataVersion_V3 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(2)) +#define org_apache_arrow_flatbuf_MetadataVersion_V4 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(3)) +#define org_apache_arrow_flatbuf_MetadataVersion_V5 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(4)) + +static inline const char *org_apache_arrow_flatbuf_MetadataVersion_name(org_apache_arrow_flatbuf_MetadataVersion_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_MetadataVersion_V1: return "V1"; + case org_apache_arrow_flatbuf_MetadataVersion_V2: return "V2"; + case org_apache_arrow_flatbuf_MetadataVersion_V3: return "V3"; + case org_apache_arrow_flatbuf_MetadataVersion_V4: return "V4"; + case org_apache_arrow_flatbuf_MetadataVersion_V5: return "V5"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_MetadataVersion_is_known_value(org_apache_arrow_flatbuf_MetadataVersion_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_MetadataVersion_V1: return 1; + case org_apache_arrow_flatbuf_MetadataVersion_V2: return 1; + case org_apache_arrow_flatbuf_MetadataVersion_V3: return 1; + case org_apache_arrow_flatbuf_MetadataVersion_V4: return 1; + case org_apache_arrow_flatbuf_MetadataVersion_V5: return 1; + default: return 0; + } +} + +/** Represents Arrow Features that might not have full support + * within implementations. This is intended to be used in + * two scenarios: + * 1. A mechanism for readers of Arrow Streams + * and files to understand that the stream or file makes + * use of a feature that isn't supported or unknown to + * the implementation (and therefore can meet the Arrow + * forward compatibility guarantees). + * 2. A means of negotiating between a client and server + * what features a stream is allowed to use. The enums + * values here are intented to represent higher level + * features, additional details maybe negotiated + * with key-value pairs specific to the protocol. + * + * Enums added to this list should be assigned power-of-two values + * to facilitate exchanging and comparing bitmaps for supported + * features. */ +typedef int64_t org_apache_arrow_flatbuf_Feature_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t, 64) +/** Needed to make flatbuffers happy. */ +#define org_apache_arrow_flatbuf_Feature_UNUSED ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(0)) +#define org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(1)) +#define org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(2)) + +static inline const char *org_apache_arrow_flatbuf_Feature_name(org_apache_arrow_flatbuf_Feature_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Feature_UNUSED: return "UNUSED"; + case org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT: return "DICTIONARY_REPLACEMENT"; + case org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY: return "COMPRESSED_BODY"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_Feature_is_known_value(org_apache_arrow_flatbuf_Feature_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Feature_UNUSED: return 1; + case org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT: return 1; + case org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY: return 1; + default: return 0; + } +} + +typedef int16_t org_apache_arrow_flatbuf_UnionMode_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, 16) +#define org_apache_arrow_flatbuf_UnionMode_Sparse ((org_apache_arrow_flatbuf_UnionMode_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_UnionMode_Dense ((org_apache_arrow_flatbuf_UnionMode_enum_t)INT16_C(1)) + +static inline const char *org_apache_arrow_flatbuf_UnionMode_name(org_apache_arrow_flatbuf_UnionMode_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_UnionMode_Sparse: return "Sparse"; + case org_apache_arrow_flatbuf_UnionMode_Dense: return "Dense"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_UnionMode_is_known_value(org_apache_arrow_flatbuf_UnionMode_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_UnionMode_Sparse: return 1; + case org_apache_arrow_flatbuf_UnionMode_Dense: return 1; + default: return 0; + } +} + +typedef int16_t org_apache_arrow_flatbuf_Precision_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, 16) +#define org_apache_arrow_flatbuf_Precision_HALF ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_Precision_SINGLE ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(1)) +#define org_apache_arrow_flatbuf_Precision_DOUBLE ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(2)) + +static inline const char *org_apache_arrow_flatbuf_Precision_name(org_apache_arrow_flatbuf_Precision_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Precision_HALF: return "HALF"; + case org_apache_arrow_flatbuf_Precision_SINGLE: return "SINGLE"; + case org_apache_arrow_flatbuf_Precision_DOUBLE: return "DOUBLE"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_Precision_is_known_value(org_apache_arrow_flatbuf_Precision_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Precision_HALF: return 1; + case org_apache_arrow_flatbuf_Precision_SINGLE: return 1; + case org_apache_arrow_flatbuf_Precision_DOUBLE: return 1; + default: return 0; + } +} + +typedef int16_t org_apache_arrow_flatbuf_DateUnit_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, 16) +#define org_apache_arrow_flatbuf_DateUnit_DAY ((org_apache_arrow_flatbuf_DateUnit_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_DateUnit_MILLISECOND ((org_apache_arrow_flatbuf_DateUnit_enum_t)INT16_C(1)) + +static inline const char *org_apache_arrow_flatbuf_DateUnit_name(org_apache_arrow_flatbuf_DateUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_DateUnit_DAY: return "DAY"; + case org_apache_arrow_flatbuf_DateUnit_MILLISECOND: return "MILLISECOND"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_DateUnit_is_known_value(org_apache_arrow_flatbuf_DateUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_DateUnit_DAY: return 1; + case org_apache_arrow_flatbuf_DateUnit_MILLISECOND: return 1; + default: return 0; + } +} + +typedef int16_t org_apache_arrow_flatbuf_TimeUnit_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 16) +#define org_apache_arrow_flatbuf_TimeUnit_SECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_TimeUnit_MILLISECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(1)) +#define org_apache_arrow_flatbuf_TimeUnit_MICROSECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(2)) +#define org_apache_arrow_flatbuf_TimeUnit_NANOSECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(3)) + +static inline const char *org_apache_arrow_flatbuf_TimeUnit_name(org_apache_arrow_flatbuf_TimeUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_TimeUnit_SECOND: return "SECOND"; + case org_apache_arrow_flatbuf_TimeUnit_MILLISECOND: return "MILLISECOND"; + case org_apache_arrow_flatbuf_TimeUnit_MICROSECOND: return "MICROSECOND"; + case org_apache_arrow_flatbuf_TimeUnit_NANOSECOND: return "NANOSECOND"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_TimeUnit_is_known_value(org_apache_arrow_flatbuf_TimeUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_TimeUnit_SECOND: return 1; + case org_apache_arrow_flatbuf_TimeUnit_MILLISECOND: return 1; + case org_apache_arrow_flatbuf_TimeUnit_MICROSECOND: return 1; + case org_apache_arrow_flatbuf_TimeUnit_NANOSECOND: return 1; + default: return 0; + } +} + +typedef int16_t org_apache_arrow_flatbuf_IntervalUnit_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, 16) +#define org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(1)) +#define org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(2)) + +static inline const char *org_apache_arrow_flatbuf_IntervalUnit_name(org_apache_arrow_flatbuf_IntervalUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH: return "YEAR_MONTH"; + case org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME: return "DAY_TIME"; + case org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO: return "MONTH_DAY_NANO"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_IntervalUnit_is_known_value(org_apache_arrow_flatbuf_IntervalUnit_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH: return 1; + case org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME: return 1; + case org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO: return 1; + default: return 0; + } +} + +/** ---------------------------------------------------------------------- + * Dictionary encoding metadata + * Maintained for forwards compatibility, in the future + * Dictionaries might be explicit maps between integers and values + * allowing for non-contiguous index values */ +typedef int16_t org_apache_arrow_flatbuf_DictionaryKind_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, 16) +#define org_apache_arrow_flatbuf_DictionaryKind_DenseArray ((org_apache_arrow_flatbuf_DictionaryKind_enum_t)INT16_C(0)) + +static inline const char *org_apache_arrow_flatbuf_DictionaryKind_name(org_apache_arrow_flatbuf_DictionaryKind_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_DictionaryKind_DenseArray: return "DenseArray"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_DictionaryKind_is_known_value(org_apache_arrow_flatbuf_DictionaryKind_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_DictionaryKind_DenseArray: return 1; + default: return 0; + } +} + +/** ---------------------------------------------------------------------- + * Endianness of the platform producing the data */ +typedef int16_t org_apache_arrow_flatbuf_Endianness_enum_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, 16) +#define org_apache_arrow_flatbuf_Endianness_Little ((org_apache_arrow_flatbuf_Endianness_enum_t)INT16_C(0)) +#define org_apache_arrow_flatbuf_Endianness_Big ((org_apache_arrow_flatbuf_Endianness_enum_t)INT16_C(1)) + +static inline const char *org_apache_arrow_flatbuf_Endianness_name(org_apache_arrow_flatbuf_Endianness_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Endianness_Little: return "Little"; + case org_apache_arrow_flatbuf_Endianness_Big: return "Big"; + default: return ""; + } +} + +static inline int org_apache_arrow_flatbuf_Endianness_is_known_value(org_apache_arrow_flatbuf_Endianness_enum_t value) +{ + switch (value) { + case org_apache_arrow_flatbuf_Endianness_Little: return 1; + case org_apache_arrow_flatbuf_Endianness_Big: return 1; + default: return 0; + } +} + + +/** ---------------------------------------------------------------------- + * A Buffer represents a single contiguous memory segment */ +struct org_apache_arrow_flatbuf_Buffer { + /** The relative offset into the shared memory page where the bytes for this + * buffer starts */ + alignas(8) int64_t offset; + /** The absolute length (in bytes) of the memory buffer. The memory is found + * from offset (inclusive) to offset + length (non-inclusive). When building + * messages using the encapsulated IPC message, padding bytes may be written + * after a buffer, but such padding bytes do not need to be accounted for in + * the size here. */ + alignas(8) int64_t length; +}; +static_assert(sizeof(org_apache_arrow_flatbuf_Buffer_t) == 16, "struct size mismatch"); + +static inline const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer__const_ptr_add(const org_apache_arrow_flatbuf_Buffer_t *p, size_t i) { return p + i; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer__ptr_add(org_apache_arrow_flatbuf_Buffer_t *p, size_t i) { return p + i; } +static inline org_apache_arrow_flatbuf_Buffer_struct_t org_apache_arrow_flatbuf_Buffer_vec_at(org_apache_arrow_flatbuf_Buffer_vec_t vec, size_t i) +__flatbuffers_struct_vec_at(vec, i) +static inline size_t org_apache_arrow_flatbuf_Buffer__size(void) { return 16; } +static inline size_t org_apache_arrow_flatbuf_Buffer_vec_len(org_apache_arrow_flatbuf_Buffer_vec_t vec) +__flatbuffers_vec_len(vec) +__flatbuffers_struct_as_root(org_apache_arrow_flatbuf_Buffer) + +__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_Buffer, offset, flatbuffers_int64, int64_t) +__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_Buffer, length, flatbuffers_int64, int64_t) + + +/** These are stored in the flatbuffer in the Type union below */ +struct org_apache_arrow_flatbuf_Null_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Null_vec_len(org_apache_arrow_flatbuf_Null_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Null_table_t org_apache_arrow_flatbuf_Null_vec_at(org_apache_arrow_flatbuf_Null_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Null_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Null) + + +/** A Struct_ in the flatbuffer metadata is the same as an Arrow Struct + * (according to the physical memory layout). We used Struct_ here as + * Struct is a reserved word in Flatbuffers */ +struct org_apache_arrow_flatbuf_Struct__table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Struct__vec_len(org_apache_arrow_flatbuf_Struct__vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Struct__table_t org_apache_arrow_flatbuf_Struct__vec_at(org_apache_arrow_flatbuf_Struct__vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Struct__table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Struct_) + + +struct org_apache_arrow_flatbuf_List_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_List_vec_len(org_apache_arrow_flatbuf_List_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_List_table_t org_apache_arrow_flatbuf_List_vec_at(org_apache_arrow_flatbuf_List_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_List_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_List) + + +/** Same as List, but with 64-bit offsets, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeList_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeList_vec_len(org_apache_arrow_flatbuf_LargeList_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeList_table_t org_apache_arrow_flatbuf_LargeList_vec_at(org_apache_arrow_flatbuf_LargeList_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) + + +/** Represents the same logical types that List can, but contains offsets and + * sizes allowing for writes in any order and sharing of child values among + * list values. */ +struct org_apache_arrow_flatbuf_ListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_ListView_vec_len(org_apache_arrow_flatbuf_ListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_ListView_table_t org_apache_arrow_flatbuf_ListView_vec_at(org_apache_arrow_flatbuf_ListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_ListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_ListView) + + +/** Same as ListView, but with 64-bit offsets and sizes, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeListView_vec_len(org_apache_arrow_flatbuf_LargeListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeListView_table_t org_apache_arrow_flatbuf_LargeListView_vec_at(org_apache_arrow_flatbuf_LargeListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeListView) + + +struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_FixedSizeList_table_t org_apache_arrow_flatbuf_FixedSizeList_vec_at(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FixedSizeList_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FixedSizeList) + +/** Number of list items per value */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FixedSizeList, listSize, flatbuffers_int32, int32_t, INT32_C(0)) + +/** A Map is a logical nested type that is represented as + * + * List> + * + * In this layout, the keys and values are each respectively contiguous. We do + * not constrain the key and value types, so the application is responsible + * for ensuring that the keys are hashable and unique. Whether the keys are sorted + * may be set in the metadata for this field. + * + * In a field with Map type, the field has a child Struct field, which then + * has two children: key type and the second the value type. The names of the + * child fields may be respectively "entries", "key", and "value", but this is + * not enforced. + * + * Map + * ```text + * - child[0] entries: Struct + * - child[0] key: K + * - child[1] value: V + * ``` + * Neither the "entries" field nor the "key" field may be nullable. + * + * The metadata is structured so that Arrow systems without special handling + * for Map can make Map an alias for List. The "layout" attribute for the Map + * field must have the same contents as a List. */ +struct org_apache_arrow_flatbuf_Map_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Map_vec_len(org_apache_arrow_flatbuf_Map_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Map_table_t org_apache_arrow_flatbuf_Map_vec_at(org_apache_arrow_flatbuf_Map_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Map_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Map) + +/** Set to true if the keys within each value are sorted */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Map, keysSorted, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) + +/** A union is a complex type with children in Field + * By default ids in the type vector refer to the offsets in the children + * optionally typeIds provides an indirection between the child offset and the type id + * for each child `typeIds[offset]` is the id used in the type vector */ +struct org_apache_arrow_flatbuf_Union_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Union_vec_len(org_apache_arrow_flatbuf_Union_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Union_table_t org_apache_arrow_flatbuf_Union_vec_at(org_apache_arrow_flatbuf_Union_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Union_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Union) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Union, mode, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, INT16_C(0)) +__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_Union, typeIds, flatbuffers_int32_vec_t, 0) + +struct org_apache_arrow_flatbuf_Int_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Int_vec_len(org_apache_arrow_flatbuf_Int_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Int_table_t org_apache_arrow_flatbuf_Int_vec_at(org_apache_arrow_flatbuf_Int_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Int_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Int) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Int, bitWidth, flatbuffers_int32, int32_t, INT32_C(0)) +__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Int, is_signed, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) + +struct org_apache_arrow_flatbuf_FloatingPoint_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_FloatingPoint_vec_len(org_apache_arrow_flatbuf_FloatingPoint_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_FloatingPoint_table_t org_apache_arrow_flatbuf_FloatingPoint_vec_at(org_apache_arrow_flatbuf_FloatingPoint_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FloatingPoint_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FloatingPoint) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FloatingPoint, precision, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, INT16_C(0)) + +/** Unicode with UTF-8 encoding */ +struct org_apache_arrow_flatbuf_Utf8_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8_vec_len(org_apache_arrow_flatbuf_Utf8_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8_table_t org_apache_arrow_flatbuf_Utf8_vec_at(org_apache_arrow_flatbuf_Utf8_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8) + + +/** Opaque binary data */ +struct org_apache_arrow_flatbuf_Binary_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Binary_vec_len(org_apache_arrow_flatbuf_Binary_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Binary_table_t org_apache_arrow_flatbuf_Binary_vec_at(org_apache_arrow_flatbuf_Binary_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Binary_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Binary) + + +/** Same as Utf8, but with 64-bit offsets, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeUtf8_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeUtf8_vec_len(org_apache_arrow_flatbuf_LargeUtf8_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeUtf8_table_t org_apache_arrow_flatbuf_LargeUtf8_vec_at(org_apache_arrow_flatbuf_LargeUtf8_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeUtf8_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeUtf8) + + +/** Same as Binary, but with 64-bit offsets, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeBinary_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeBinary_vec_len(org_apache_arrow_flatbuf_LargeBinary_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeBinary_table_t org_apache_arrow_flatbuf_LargeBinary_vec_at(org_apache_arrow_flatbuf_LargeBinary_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) + + +/** Logically the same as Utf8, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_Utf8View_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8View_vec_len(org_apache_arrow_flatbuf_Utf8View_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8View_table_t org_apache_arrow_flatbuf_Utf8View_vec_at(org_apache_arrow_flatbuf_Utf8View_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8View_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8View) + + +/** Logically the same as Binary, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_BinaryView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BinaryView_vec_len(org_apache_arrow_flatbuf_BinaryView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BinaryView_table_t org_apache_arrow_flatbuf_BinaryView_vec_at(org_apache_arrow_flatbuf_BinaryView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BinaryView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BinaryView) + + +struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_FixedSizeBinary_table_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_at(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FixedSizeBinary_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FixedSizeBinary) + +/** Number of bytes per value */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FixedSizeBinary, byteWidth, flatbuffers_int32, int32_t, INT32_C(0)) + +struct org_apache_arrow_flatbuf_Bool_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Bool_vec_len(org_apache_arrow_flatbuf_Bool_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Bool_table_t org_apache_arrow_flatbuf_Bool_vec_at(org_apache_arrow_flatbuf_Bool_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Bool_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Bool) + + +/** Contains two child arrays, run_ends and values. + * The run_ends child array must be a 16/32/64-bit integer array + * which encodes the indices at which the run with the value in + * each corresponding index in the values child array ends. + * Like list/struct types, the value array can be of any type. */ +struct org_apache_arrow_flatbuf_RunEndEncoded_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_RunEndEncoded_vec_len(org_apache_arrow_flatbuf_RunEndEncoded_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_RunEndEncoded_table_t org_apache_arrow_flatbuf_RunEndEncoded_vec_at(org_apache_arrow_flatbuf_RunEndEncoded_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_RunEndEncoded_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_RunEndEncoded) + + +/** Exact decimal value represented as an integer value in two's + * complement. Currently only 128-bit (16-byte) and 256-bit (32-byte) integers + * are used. The representation uses the endianness indicated + * in the Schema. */ +struct org_apache_arrow_flatbuf_Decimal_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Decimal_vec_len(org_apache_arrow_flatbuf_Decimal_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Decimal_table_t org_apache_arrow_flatbuf_Decimal_vec_at(org_apache_arrow_flatbuf_Decimal_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Decimal_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Decimal) + +/** Total number of decimal digits */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Decimal, precision, flatbuffers_int32, int32_t, INT32_C(0)) +/** Number of digits after the decimal point "." */ +__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Decimal, scale, flatbuffers_int32, int32_t, INT32_C(0)) +/** Number of bits per value. The only accepted widths are 128 and 256. + * We use bitWidth for consistency with Int::bitWidth. */ +__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_Decimal, bitWidth, flatbuffers_int32, int32_t, INT32_C(128)) + +/** Date is either a 32-bit or 64-bit signed integer type representing an + * elapsed time since UNIX epoch (1970-01-01), stored in either of two units: + * + * * Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no + * leap seconds), where the values are evenly divisible by 86400000 + * * Days (32 bits) since the UNIX epoch */ +struct org_apache_arrow_flatbuf_Date_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Date_vec_len(org_apache_arrow_flatbuf_Date_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Date_table_t org_apache_arrow_flatbuf_Date_vec_at(org_apache_arrow_flatbuf_Date_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Date_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Date) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Date, unit, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, INT16_C(1)) + +/** Time is either a 32-bit or 64-bit signed integer type representing an + * elapsed time since midnight, stored in either of four units: seconds, + * milliseconds, microseconds or nanoseconds. + * + * The integer `bitWidth` depends on the `unit` and must be one of the following: + * * SECOND and MILLISECOND: 32 bits + * * MICROSECOND and NANOSECOND: 64 bits + * + * The allowed values are between 0 (inclusive) and 86400 (=24*60*60) seconds + * (exclusive), adjusted for the time unit (for example, up to 86400000 + * exclusive for the MILLISECOND unit). + * This definition doesn't allow for leap seconds. Time values from + * measurements with leap seconds will need to be corrected when ingesting + * into Arrow (for example by replacing the value 86400 with 86399). */ +struct org_apache_arrow_flatbuf_Time_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Time_vec_len(org_apache_arrow_flatbuf_Time_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Time_table_t org_apache_arrow_flatbuf_Time_vec_at(org_apache_arrow_flatbuf_Time_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Time_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Time) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Time, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(1)) +__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, flatbuffers_int32, int32_t, INT32_C(32)) + +/** Timestamp is a 64-bit signed integer representing an elapsed time since a + * fixed epoch, stored in either of four units: seconds, milliseconds, + * microseconds or nanoseconds, and is optionally annotated with a timezone. + * + * Timestamp values do not include any leap seconds (in other words, all + * days are considered 86400 seconds long). + * + * Timestamps with a non-empty timezone + * ------------------------------------ + * + * If a Timestamp column has a non-empty timezone value, its epoch is + * 1970-01-01 00:00:00 (January 1st 1970, midnight) in the *UTC* timezone + * (the Unix epoch), regardless of the Timestamp's own timezone. + * + * Therefore, timestamp values with a non-empty timezone correspond to + * physical points in time together with some additional information about + * how the data was obtained and/or how to display it (the timezone). + * + * For example, the timestamp value 0 with the timezone string "Europe/Paris" + * corresponds to "January 1st 1970, 00h00" in the UTC timezone, but the + * application may prefer to display it as "January 1st 1970, 01h00" in + * the Europe/Paris timezone (which is the same physical point in time). + * + * One consequence is that timestamp values with a non-empty timezone + * can be compared and ordered directly, since they all share the same + * well-known point of reference (the Unix epoch). + * + * Timestamps with an unset / empty timezone + * ----------------------------------------- + * + * If a Timestamp column has no timezone value, its epoch is + * 1970-01-01 00:00:00 (January 1st 1970, midnight) in an *unknown* timezone. + * + * Therefore, timestamp values without a timezone cannot be meaningfully + * interpreted as physical points in time, but only as calendar / clock + * indications ("wall clock time") in an unspecified timezone. + * + * For example, the timestamp value 0 with an empty timezone string + * corresponds to "January 1st 1970, 00h00" in an unknown timezone: there + * is not enough information to interpret it as a well-defined physical + * point in time. + * + * One consequence is that timestamp values without a timezone cannot + * be reliably compared or ordered, since they may have different points of + * reference. In particular, it is *not* possible to interpret an unset + * or empty timezone as the same as "UTC". + * + * Conversion between timezones + * ---------------------------- + * + * If a Timestamp column has a non-empty timezone, changing the timezone + * to a different non-empty value is a metadata-only operation: + * the timestamp values need not change as their point of reference remains + * the same (the Unix epoch). + * + * However, if a Timestamp column has no timezone value, changing it to a + * non-empty value requires to think about the desired semantics. + * One possibility is to assume that the original timestamp values are + * relative to the epoch of the timezone being set; timestamp values should + * then adjusted to the Unix epoch (for example, changing the timezone from + * empty to "Europe/Paris" would require converting the timestamp values + * from "Europe/Paris" to "UTC", which seems counter-intuitive but is + * nevertheless correct). + * + * Guidelines for encoding data from external libraries + * ---------------------------------------------------- + * + * Date & time libraries often have multiple different data types for temporal + * data. In order to ease interoperability between different implementations the + * Arrow project has some recommendations for encoding these types into a Timestamp + * column. + * + * An "instant" represents a physical point in time that has no relevant timezone + * (for example, astronomical data). To encode an instant, use a Timestamp with + * the timezone string set to "UTC", and make sure the Timestamp values + * are relative to the UTC epoch (January 1st 1970, midnight). + * + * A "zoned date-time" represents a physical point in time annotated with an + * informative timezone (for example, the timezone in which the data was + * recorded). To encode a zoned date-time, use a Timestamp with the timezone + * string set to the name of the timezone, and make sure the Timestamp values + * are relative to the UTC epoch (January 1st 1970, midnight). + * + * (There is some ambiguity between an instant and a zoned date-time with the + * UTC timezone. Both of these are stored the same in Arrow. Typically, + * this distinction does not matter. If it does, then an application should + * use custom metadata or an extension type to distinguish between the two cases.) + * + * An "offset date-time" represents a physical point in time combined with an + * explicit offset from UTC. To encode an offset date-time, use a Timestamp + * with the timezone string set to the numeric timezone offset string + * (e.g. "+03:00"), and make sure the Timestamp values are relative to + * the UTC epoch (January 1st 1970, midnight). + * + * A "naive date-time" (also called "local date-time" in some libraries) + * represents a wall clock time combined with a calendar date, but with + * no indication of how to map this information to a physical point in time. + * Naive date-times must be handled with care because of this missing + * information, and also because daylight saving time (DST) may make + * some values ambiguous or nonexistent. A naive date-time may be + * stored as a struct with Date and Time fields. However, it may also be + * encoded into a Timestamp column with an empty timezone. The timestamp + * values should be computed "as if" the timezone of the date-time values + * was UTC; for example, the naive date-time "January 1st 1970, 00h00" would + * be encoded as timestamp value 0. */ +struct org_apache_arrow_flatbuf_Timestamp_table { uint8_t unused__; }; -typedef int16_t org_apache_arrow_flatbuf_MetadataVersion_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t, 16) -/** 0.1.0 (October 2016). */ -#define org_apache_arrow_flatbuf_MetadataVersion_V1 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_MetadataVersion_V2 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(1)) -#define org_apache_arrow_flatbuf_MetadataVersion_V3 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(2)) -#define org_apache_arrow_flatbuf_MetadataVersion_V4 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(3)) -#define org_apache_arrow_flatbuf_MetadataVersion_V5 ((org_apache_arrow_flatbuf_MetadataVersion_enum_t)INT16_C(4)) +static inline size_t org_apache_arrow_flatbuf_Timestamp_vec_len(org_apache_arrow_flatbuf_Timestamp_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Timestamp_table_t org_apache_arrow_flatbuf_Timestamp_vec_at(org_apache_arrow_flatbuf_Timestamp_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Timestamp_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Timestamp) -static inline const char *org_apache_arrow_flatbuf_MetadataVersion_name(org_apache_arrow_flatbuf_MetadataVersion_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_MetadataVersion_V1: return "V1"; - case org_apache_arrow_flatbuf_MetadataVersion_V2: return "V2"; - case org_apache_arrow_flatbuf_MetadataVersion_V3: return "V3"; - case org_apache_arrow_flatbuf_MetadataVersion_V4: return "V4"; - case org_apache_arrow_flatbuf_MetadataVersion_V5: return "V5"; - default: return ""; - } -} +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Timestamp, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(0)) +/** The timezone is an optional string indicating the name of a timezone, + * one of: + * + * * As used in the Olson timezone database (the "tz database" or + * "tzdata"), such as "America/New_York". + * * An absolute timezone offset of the form "+XX:XX" or "-XX:XX", + * such as "+07:30". + * + * Whether a timezone string is present indicates different semantics about + * the data (see above). */ +__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_Timestamp, timezone, 0) -static inline int org_apache_arrow_flatbuf_MetadataVersion_is_known_value(org_apache_arrow_flatbuf_MetadataVersion_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_MetadataVersion_V1: return 1; - case org_apache_arrow_flatbuf_MetadataVersion_V2: return 1; - case org_apache_arrow_flatbuf_MetadataVersion_V3: return 1; - case org_apache_arrow_flatbuf_MetadataVersion_V4: return 1; - case org_apache_arrow_flatbuf_MetadataVersion_V5: return 1; - default: return 0; - } -} +struct org_apache_arrow_flatbuf_Interval_table { uint8_t unused__; }; -/** Represents Arrow Features that might not have full support - * within implementations. This is intended to be used in - * two scenarios: - * 1. A mechanism for readers of Arrow Streams - * and files to understand that the stream or file makes - * use of a feature that isn't supported or unknown to - * the implementation (and therefore can meet the Arrow - * forward compatibility guarantees). - * 2. A means of negotiating between a client and server - * what features a stream is allowed to use. The enums - * values here are intented to represent higher level - * features, additional details maybe negotiated - * with key-value pairs specific to the protocol. - * - * Enums added to this list should be assigned power-of-two values - * to facilitate exchanging and comparing bitmaps for supported - * features. */ -typedef int64_t org_apache_arrow_flatbuf_Feature_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t, 64) -/** Needed to make flatbuffers happy. */ -#define org_apache_arrow_flatbuf_Feature_UNUSED ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(0)) -#define org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(1)) -#define org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY ((org_apache_arrow_flatbuf_Feature_enum_t)INT64_C(2)) +static inline size_t org_apache_arrow_flatbuf_Interval_vec_len(org_apache_arrow_flatbuf_Interval_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Interval_table_t org_apache_arrow_flatbuf_Interval_vec_at(org_apache_arrow_flatbuf_Interval_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Interval_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Interval) -static inline const char *org_apache_arrow_flatbuf_Feature_name(org_apache_arrow_flatbuf_Feature_enum_t value) +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Interval, unit, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, INT16_C(0)) + +struct org_apache_arrow_flatbuf_Duration_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Duration_vec_len(org_apache_arrow_flatbuf_Duration_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Duration_table_t org_apache_arrow_flatbuf_Duration_vec_at(org_apache_arrow_flatbuf_Duration_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Duration_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Duration) + +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Duration, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(1)) +/** ---------------------------------------------------------------------- + * Top-level Type value, enabling extensible type-specific metadata. We can + * add new logical types to Type without breaking backwards compatibility */ +typedef uint8_t org_apache_arrow_flatbuf_Type_union_type_t; +__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Type_union_type_t, 8) +__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) +/** ---------------------------------------------------------------------- + * user defined key value pairs to add custom metadata to arrow + * key namespacing is the responsibility of the user */ +#define org_apache_arrow_flatbuf_Type_NONE ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(0)) +#define org_apache_arrow_flatbuf_Type_Null ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(1)) +#define org_apache_arrow_flatbuf_Type_Int ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(2)) +#define org_apache_arrow_flatbuf_Type_FloatingPoint ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(3)) +#define org_apache_arrow_flatbuf_Type_Binary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(4)) +#define org_apache_arrow_flatbuf_Type_Utf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(5)) +#define org_apache_arrow_flatbuf_Type_Bool ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(6)) +#define org_apache_arrow_flatbuf_Type_Decimal ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(7)) +#define org_apache_arrow_flatbuf_Type_Date ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(8)) +#define org_apache_arrow_flatbuf_Type_Time ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(9)) +#define org_apache_arrow_flatbuf_Type_Timestamp ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(10)) +#define org_apache_arrow_flatbuf_Type_Interval ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(11)) +#define org_apache_arrow_flatbuf_Type_List ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(12)) +#define org_apache_arrow_flatbuf_Type_Struct_ ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(13)) +#define org_apache_arrow_flatbuf_Type_Union ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(14)) +#define org_apache_arrow_flatbuf_Type_FixedSizeBinary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(15)) +#define org_apache_arrow_flatbuf_Type_FixedSizeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(16)) +#define org_apache_arrow_flatbuf_Type_Map ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(17)) +#define org_apache_arrow_flatbuf_Type_Duration ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(18)) +#define org_apache_arrow_flatbuf_Type_LargeBinary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(19)) +#define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) +#define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) +#define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +#define org_apache_arrow_flatbuf_Type_BinaryView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(23)) +#define org_apache_arrow_flatbuf_Type_Utf8View ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(24)) +#define org_apache_arrow_flatbuf_Type_ListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(25)) +#define org_apache_arrow_flatbuf_Type_LargeListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(26)) + +static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) { - switch (value) { - case org_apache_arrow_flatbuf_Feature_UNUSED: return "UNUSED"; - case org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT: return "DICTIONARY_REPLACEMENT"; - case org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY: return "COMPRESSED_BODY"; + switch (type) { + case org_apache_arrow_flatbuf_Type_NONE: return "NONE"; + case org_apache_arrow_flatbuf_Type_Null: return "Null"; + case org_apache_arrow_flatbuf_Type_Int: return "Int"; + case org_apache_arrow_flatbuf_Type_FloatingPoint: return "FloatingPoint"; + case org_apache_arrow_flatbuf_Type_Binary: return "Binary"; + case org_apache_arrow_flatbuf_Type_Utf8: return "Utf8"; + case org_apache_arrow_flatbuf_Type_Bool: return "Bool"; + case org_apache_arrow_flatbuf_Type_Decimal: return "Decimal"; + case org_apache_arrow_flatbuf_Type_Date: return "Date"; + case org_apache_arrow_flatbuf_Type_Time: return "Time"; + case org_apache_arrow_flatbuf_Type_Timestamp: return "Timestamp"; + case org_apache_arrow_flatbuf_Type_Interval: return "Interval"; + case org_apache_arrow_flatbuf_Type_List: return "List"; + case org_apache_arrow_flatbuf_Type_Struct_: return "Struct_"; + case org_apache_arrow_flatbuf_Type_Union: return "Union"; + case org_apache_arrow_flatbuf_Type_FixedSizeBinary: return "FixedSizeBinary"; + case org_apache_arrow_flatbuf_Type_FixedSizeList: return "FixedSizeList"; + case org_apache_arrow_flatbuf_Type_Map: return "Map"; + case org_apache_arrow_flatbuf_Type_Duration: return "Duration"; + case org_apache_arrow_flatbuf_Type_LargeBinary: return "LargeBinary"; + case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; + case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; + case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; + case org_apache_arrow_flatbuf_Type_BinaryView: return "BinaryView"; + case org_apache_arrow_flatbuf_Type_Utf8View: return "Utf8View"; + case org_apache_arrow_flatbuf_Type_ListView: return "ListView"; + case org_apache_arrow_flatbuf_Type_LargeListView: return "LargeListView"; default: return ""; } } -static inline int org_apache_arrow_flatbuf_Feature_is_known_value(org_apache_arrow_flatbuf_Feature_enum_t value) +static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_flatbuf_Type_union_type_t type) { - switch (value) { - case org_apache_arrow_flatbuf_Feature_UNUSED: return 1; - case org_apache_arrow_flatbuf_Feature_DICTIONARY_REPLACEMENT: return 1; - case org_apache_arrow_flatbuf_Feature_COMPRESSED_BODY: return 1; + switch (type) { + case org_apache_arrow_flatbuf_Type_NONE: return 1; + case org_apache_arrow_flatbuf_Type_Null: return 1; + case org_apache_arrow_flatbuf_Type_Int: return 1; + case org_apache_arrow_flatbuf_Type_FloatingPoint: return 1; + case org_apache_arrow_flatbuf_Type_Binary: return 1; + case org_apache_arrow_flatbuf_Type_Utf8: return 1; + case org_apache_arrow_flatbuf_Type_Bool: return 1; + case org_apache_arrow_flatbuf_Type_Decimal: return 1; + case org_apache_arrow_flatbuf_Type_Date: return 1; + case org_apache_arrow_flatbuf_Type_Time: return 1; + case org_apache_arrow_flatbuf_Type_Timestamp: return 1; + case org_apache_arrow_flatbuf_Type_Interval: return 1; + case org_apache_arrow_flatbuf_Type_List: return 1; + case org_apache_arrow_flatbuf_Type_Struct_: return 1; + case org_apache_arrow_flatbuf_Type_Union: return 1; + case org_apache_arrow_flatbuf_Type_FixedSizeBinary: return 1; + case org_apache_arrow_flatbuf_Type_FixedSizeList: return 1; + case org_apache_arrow_flatbuf_Type_Map: return 1; + case org_apache_arrow_flatbuf_Type_Duration: return 1; + case org_apache_arrow_flatbuf_Type_LargeBinary: return 1; + case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; + case org_apache_arrow_flatbuf_Type_LargeList: return 1; + case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; + case org_apache_arrow_flatbuf_Type_BinaryView: return 1; + case org_apache_arrow_flatbuf_Type_Utf8View: return 1; + case org_apache_arrow_flatbuf_Type_ListView: return 1; + case org_apache_arrow_flatbuf_Type_LargeListView: return 1; default: return 0; } } -typedef int16_t org_apache_arrow_flatbuf_UnionMode_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, 16) -#define org_apache_arrow_flatbuf_UnionMode_Sparse ((org_apache_arrow_flatbuf_UnionMode_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_UnionMode_Dense ((org_apache_arrow_flatbuf_UnionMode_enum_t)INT16_C(1)) -static inline const char *org_apache_arrow_flatbuf_UnionMode_name(org_apache_arrow_flatbuf_UnionMode_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_UnionMode_Sparse: return "Sparse"; - case org_apache_arrow_flatbuf_UnionMode_Dense: return "Dense"; - default: return ""; - } -} +struct org_apache_arrow_flatbuf_KeyValue_table { uint8_t unused__; }; -static inline int org_apache_arrow_flatbuf_UnionMode_is_known_value(org_apache_arrow_flatbuf_UnionMode_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_UnionMode_Sparse: return 1; - case org_apache_arrow_flatbuf_UnionMode_Dense: return 1; - default: return 0; - } -} +static inline size_t org_apache_arrow_flatbuf_KeyValue_vec_len(org_apache_arrow_flatbuf_KeyValue_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_KeyValue_table_t org_apache_arrow_flatbuf_KeyValue_vec_at(org_apache_arrow_flatbuf_KeyValue_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_KeyValue_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_KeyValue) -typedef int16_t org_apache_arrow_flatbuf_Precision_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, 16) -#define org_apache_arrow_flatbuf_Precision_HALF ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_Precision_SINGLE ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(1)) -#define org_apache_arrow_flatbuf_Precision_DOUBLE ((org_apache_arrow_flatbuf_Precision_enum_t)INT16_C(2)) +__flatbuffers_define_string_field(0, org_apache_arrow_flatbuf_KeyValue, key, 0) +__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_KeyValue, value, 0) -static inline const char *org_apache_arrow_flatbuf_Precision_name(org_apache_arrow_flatbuf_Precision_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_Precision_HALF: return "HALF"; - case org_apache_arrow_flatbuf_Precision_SINGLE: return "SINGLE"; - case org_apache_arrow_flatbuf_Precision_DOUBLE: return "DOUBLE"; - default: return ""; - } -} +struct org_apache_arrow_flatbuf_DictionaryEncoding_table { uint8_t unused__; }; -static inline int org_apache_arrow_flatbuf_Precision_is_known_value(org_apache_arrow_flatbuf_Precision_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_Precision_HALF: return 1; - case org_apache_arrow_flatbuf_Precision_SINGLE: return 1; - case org_apache_arrow_flatbuf_Precision_DOUBLE: return 1; - default: return 0; - } -} +static inline size_t org_apache_arrow_flatbuf_DictionaryEncoding_vec_len(org_apache_arrow_flatbuf_DictionaryEncoding_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_DictionaryEncoding_table_t org_apache_arrow_flatbuf_DictionaryEncoding_vec_at(org_apache_arrow_flatbuf_DictionaryEncoding_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_DictionaryEncoding_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_DictionaryEncoding) -typedef int16_t org_apache_arrow_flatbuf_DateUnit_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, 16) -#define org_apache_arrow_flatbuf_DateUnit_DAY ((org_apache_arrow_flatbuf_DateUnit_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_DateUnit_MILLISECOND ((org_apache_arrow_flatbuf_DateUnit_enum_t)INT16_C(1)) +/** The known dictionary id in the application where this data is used. In + * the file or streaming formats, the dictionary ids are found in the + * DictionaryBatch messages */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_DictionaryEncoding, id, flatbuffers_int64, int64_t, INT64_C(0)) +/** The dictionary indices are constrained to be non-negative integers. If + * this field is null, the indices must be signed int32. To maximize + * cross-language compatibility and performance, implementations are + * recommended to prefer signed integer types over unsigned integer types + * and to avoid uint64 indices unless they are required by an application. */ +__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_DictionaryEncoding, indexType, org_apache_arrow_flatbuf_Int_table_t, 0) +/** By default, dictionaries are not ordered, or the order does not have + * semantic meaning. In some statistical, applications, dictionary-encoding + * is used to represent ordered categorical data, and we provide a way to + * preserve that metadata here */ +__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_DictionaryEncoding, isOrdered, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_DictionaryEncoding, dictionaryKind, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, INT16_C(0)) -static inline const char *org_apache_arrow_flatbuf_DateUnit_name(org_apache_arrow_flatbuf_DateUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_DateUnit_DAY: return "DAY"; - case org_apache_arrow_flatbuf_DateUnit_MILLISECOND: return "MILLISECOND"; - default: return ""; - } -} +/** ---------------------------------------------------------------------- + * A field represents a named column in a record / row batch or child of a + * nested type. */ +struct org_apache_arrow_flatbuf_Field_table { uint8_t unused__; }; -static inline int org_apache_arrow_flatbuf_DateUnit_is_known_value(org_apache_arrow_flatbuf_DateUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_DateUnit_DAY: return 1; - case org_apache_arrow_flatbuf_DateUnit_MILLISECOND: return 1; - default: return 0; - } -} +static inline size_t org_apache_arrow_flatbuf_Field_vec_len(org_apache_arrow_flatbuf_Field_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Field_table_t org_apache_arrow_flatbuf_Field_vec_at(org_apache_arrow_flatbuf_Field_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Field_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Field) -typedef int16_t org_apache_arrow_flatbuf_TimeUnit_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 16) -#define org_apache_arrow_flatbuf_TimeUnit_SECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_TimeUnit_MILLISECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(1)) -#define org_apache_arrow_flatbuf_TimeUnit_MICROSECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(2)) -#define org_apache_arrow_flatbuf_TimeUnit_NANOSECOND ((org_apache_arrow_flatbuf_TimeUnit_enum_t)INT16_C(3)) +/** Name is not required, in i.e. a List */ +__flatbuffers_define_string_field(0, org_apache_arrow_flatbuf_Field, name, 0) +/** Whether or not this field can contain nulls. Should be true in general. */ +__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Field, nullable, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +/** This is the type of the decoded value if the field is dictionary encoded. */ +__flatbuffers_define_union_field(flatbuffers_, 3, org_apache_arrow_flatbuf_Field, type, org_apache_arrow_flatbuf_Type, 0) +/** Present only if the field is dictionary encoded. */ +__flatbuffers_define_table_field(4, org_apache_arrow_flatbuf_Field, dictionary, org_apache_arrow_flatbuf_DictionaryEncoding_table_t, 0) +/** children apply only to nested data types like Struct, List and Union. For + * primitive types children will have length 0. */ +__flatbuffers_define_vector_field(5, org_apache_arrow_flatbuf_Field, children, org_apache_arrow_flatbuf_Field_vec_t, 0) +/** User-defined metadata */ +__flatbuffers_define_vector_field(6, org_apache_arrow_flatbuf_Field, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) -static inline const char *org_apache_arrow_flatbuf_TimeUnit_name(org_apache_arrow_flatbuf_TimeUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_TimeUnit_SECOND: return "SECOND"; - case org_apache_arrow_flatbuf_TimeUnit_MILLISECOND: return "MILLISECOND"; - case org_apache_arrow_flatbuf_TimeUnit_MICROSECOND: return "MICROSECOND"; - case org_apache_arrow_flatbuf_TimeUnit_NANOSECOND: return "NANOSECOND"; - default: return ""; - } -} +/** ---------------------------------------------------------------------- + * A Schema describes the columns in a row batch */ +struct org_apache_arrow_flatbuf_Schema_table { uint8_t unused__; }; -static inline int org_apache_arrow_flatbuf_TimeUnit_is_known_value(org_apache_arrow_flatbuf_TimeUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_TimeUnit_SECOND: return 1; - case org_apache_arrow_flatbuf_TimeUnit_MILLISECOND: return 1; - case org_apache_arrow_flatbuf_TimeUnit_MICROSECOND: return 1; - case org_apache_arrow_flatbuf_TimeUnit_NANOSECOND: return 1; - default: return 0; - } -} +static inline size_t org_apache_arrow_flatbuf_Schema_vec_len(org_apache_arrow_flatbuf_Schema_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Schema_table_t org_apache_arrow_flatbuf_Schema_vec_at(org_apache_arrow_flatbuf_Schema_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Schema_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Schema) -typedef int16_t org_apache_arrow_flatbuf_IntervalUnit_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, 16) -#define org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(1)) -#define org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO ((org_apache_arrow_flatbuf_IntervalUnit_enum_t)INT16_C(2)) +/** endianness of the buffer + * it is Little Endian by default + * if endianness doesn't match the underlying system then the vectors need to be converted */ +__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Schema, endianness, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, INT16_C(0)) +__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_Schema, fields, org_apache_arrow_flatbuf_Field_vec_t, 0) +__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_Schema, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) +/** Features used in the stream/file. */ +__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, org_apache_arrow_flatbuf_Feature_vec_t, 0) -static inline const char *org_apache_arrow_flatbuf_IntervalUnit_name(org_apache_arrow_flatbuf_IntervalUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH: return "YEAR_MONTH"; - case org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME: return "DAY_TIME"; - case org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO: return "MONTH_DAY_NANO"; - default: return ""; - } -} -static inline int org_apache_arrow_flatbuf_IntervalUnit_is_known_value(org_apache_arrow_flatbuf_IntervalUnit_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_IntervalUnit_YEAR_MONTH: return 1; - case org_apache_arrow_flatbuf_IntervalUnit_DAY_TIME: return 1; - case org_apache_arrow_flatbuf_IntervalUnit_MONTH_DAY_NANO: return 1; - default: return 0; - } -} +#include "flatcc/flatcc_epilogue.h" +#endif /* SCHEMA_READER_H */ +#ifndef SCHEMA_BUILDER_H +#define SCHEMA_BUILDER_H + +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ + +#ifndef SCHEMA_READER_H +#include "Schema_reader.h" +#endif +#ifndef FLATBUFFERS_COMMON_BUILDER_H +#include "flatbuffers_common_builder.h" +#endif +#include "flatcc/flatcc_prologue.h" +#ifndef flatbuffers_identifier +#define flatbuffers_identifier 0 +#endif +#ifndef flatbuffers_extension +#define flatbuffers_extension "bin" +#endif + +#define __org_apache_arrow_flatbuf_MetadataVersion_formal_args , org_apache_arrow_flatbuf_MetadataVersion_enum_t v0 +#define __org_apache_arrow_flatbuf_MetadataVersion_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t) +#define __org_apache_arrow_flatbuf_Feature_formal_args , org_apache_arrow_flatbuf_Feature_enum_t v0 +#define __org_apache_arrow_flatbuf_Feature_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t) +#define __org_apache_arrow_flatbuf_UnionMode_formal_args , org_apache_arrow_flatbuf_UnionMode_enum_t v0 +#define __org_apache_arrow_flatbuf_UnionMode_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t) +#define __org_apache_arrow_flatbuf_Precision_formal_args , org_apache_arrow_flatbuf_Precision_enum_t v0 +#define __org_apache_arrow_flatbuf_Precision_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t) +#define __org_apache_arrow_flatbuf_DateUnit_formal_args , org_apache_arrow_flatbuf_DateUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_DateUnit_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t) +#define __org_apache_arrow_flatbuf_TimeUnit_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_TimeUnit_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t) +#define __org_apache_arrow_flatbuf_IntervalUnit_formal_args , org_apache_arrow_flatbuf_IntervalUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_IntervalUnit_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t) +#define __org_apache_arrow_flatbuf_DictionaryKind_formal_args , org_apache_arrow_flatbuf_DictionaryKind_enum_t v0 +#define __org_apache_arrow_flatbuf_DictionaryKind_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t) +#define __org_apache_arrow_flatbuf_Endianness_formal_args , org_apache_arrow_flatbuf_Endianness_enum_t v0 +#define __org_apache_arrow_flatbuf_Endianness_call_args , v0 +__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t) + +#define __org_apache_arrow_flatbuf_Buffer_formal_args , int64_t v0, int64_t v1 +#define __org_apache_arrow_flatbuf_Buffer_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) +{ p->offset = v0; p->length = v1; + return p; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) +{ p->offset = p2->offset; p->length = p2->length; + return p; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign_to_pe(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) +{ flatbuffers_int64_assign_to_pe(&p->offset, v0); flatbuffers_int64_assign_to_pe(&p->length, v1); + return p; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy_to_pe(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) +{ flatbuffers_int64_copy_to_pe(&p->offset, &p2->offset); flatbuffers_int64_copy_to_pe(&p->length, &p2->length); + return p; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign_from_pe(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) +{ flatbuffers_int64_assign_from_pe(&p->offset, v0); flatbuffers_int64_assign_from_pe(&p->length, v1); + return p; } +static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy_from_pe(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) +{ flatbuffers_int64_copy_from_pe(&p->offset, &p2->offset); flatbuffers_int64_copy_from_pe(&p->length, &p2->length); + return p; } +__flatbuffers_build_struct(flatbuffers_, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Buffer_file_identifier, org_apache_arrow_flatbuf_Buffer_type_identifier) +__flatbuffers_define_fixed_array_primitives(flatbuffers_, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t) + +typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_Type_union_ref_t; +typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_Type_union_vec_ref_t; +static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t t); + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Null_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Null_ref_t; +static org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Null_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Null, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Struct__required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Struct__ref_t; +static org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Struct__table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Struct_, 0) -/** ---------------------------------------------------------------------- - * Dictionary encoding metadata - * Maintained for forwards compatibility, in the future - * Dictionaries might be explicit maps between integers and values - * allowing for non-contiguous index values */ -typedef int16_t org_apache_arrow_flatbuf_DictionaryKind_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, 16) -#define org_apache_arrow_flatbuf_DictionaryKind_DenseArray ((org_apache_arrow_flatbuf_DictionaryKind_enum_t)INT16_C(0)) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_List_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_List_ref_t; +static org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_List_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_List, 0) -static inline const char *org_apache_arrow_flatbuf_DictionaryKind_name(org_apache_arrow_flatbuf_DictionaryKind_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_DictionaryKind_DenseArray: return "DenseArray"; - default: return ""; - } -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeList_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; +static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) -static inline int org_apache_arrow_flatbuf_DictionaryKind_is_known_value(org_apache_arrow_flatbuf_DictionaryKind_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_DictionaryKind_DenseArray: return 1; - default: return 0; - } -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_ListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_ListView_ref_t; +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_ListView, 0) -/** ---------------------------------------------------------------------- - * Endianness of the platform producing the data */ -typedef int16_t org_apache_arrow_flatbuf_Endianness_enum_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, 16) -#define org_apache_arrow_flatbuf_Endianness_Little ((org_apache_arrow_flatbuf_Endianness_enum_t)INT16_C(0)) -#define org_apache_arrow_flatbuf_Endianness_Big ((org_apache_arrow_flatbuf_Endianness_enum_t)INT16_C(1)) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeListView_ref_t; +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, 0) -static inline const char *org_apache_arrow_flatbuf_Endianness_name(org_apache_arrow_flatbuf_Endianness_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_Endianness_Little: return "Little"; - case org_apache_arrow_flatbuf_Endianness_Big: return "Big"; - default: return ""; - } -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; +static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList, 1) -static inline int org_apache_arrow_flatbuf_Endianness_is_known_value(org_apache_arrow_flatbuf_Endianness_enum_t value) -{ - switch (value) { - case org_apache_arrow_flatbuf_Endianness_Little: return 1; - case org_apache_arrow_flatbuf_Endianness_Big: return 1; - default: return 0; - } -} +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Map_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Map_ref_t; +static org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Map_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Map, 1) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Union_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Union_ref_t; +static org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Union_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Union, 2) -/** ---------------------------------------------------------------------- - * A Buffer represents a single contiguous memory segment */ -struct org_apache_arrow_flatbuf_Buffer { - /** The relative offset into the shared memory page where the bytes for this - * buffer starts */ - alignas(8) int64_t offset; - /** The absolute length (in bytes) of the memory buffer. The memory is found - * from offset (inclusive) to offset + length (non-inclusive). When building - * messages using the encapsulated IPC message, padding bytes may be written - * after a buffer, but such padding bytes do not need to be accounted for in - * the size here. */ - alignas(8) int64_t length; -}; -static_assert(sizeof(org_apache_arrow_flatbuf_Buffer_t) == 16, "struct size mismatch"); +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Int_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Int_ref_t; +static org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Int_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Int, 2) -static inline const org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer__const_ptr_add(const org_apache_arrow_flatbuf_Buffer_t *p, size_t i) { return p + i; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer__ptr_add(org_apache_arrow_flatbuf_Buffer_t *p, size_t i) { return p + i; } -static inline org_apache_arrow_flatbuf_Buffer_struct_t org_apache_arrow_flatbuf_Buffer_vec_at(org_apache_arrow_flatbuf_Buffer_vec_t vec, size_t i) -__flatbuffers_struct_vec_at(vec, i) -static inline size_t org_apache_arrow_flatbuf_Buffer__size(void) { return 16; } -static inline size_t org_apache_arrow_flatbuf_Buffer_vec_len(org_apache_arrow_flatbuf_Buffer_vec_t vec) -__flatbuffers_vec_len(vec) -__flatbuffers_struct_as_root(org_apache_arrow_flatbuf_Buffer) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FloatingPoint_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FloatingPoint_ref_t; +static org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FloatingPoint_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint, 1) -__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_Buffer, offset, flatbuffers_int64, int64_t) -__flatbuffers_define_struct_scalar_field(org_apache_arrow_flatbuf_Buffer, length, flatbuffers_int64, int64_t) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8_ref_t; +static org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Binary_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Binary_ref_t; +static org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Binary_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Binary, 0) -/** These are stored in the flatbuffer in the Type union below */ -struct org_apache_arrow_flatbuf_Null_table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeUtf8_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeUtf8_ref_t; +static org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeUtf8_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf8, 0) -static inline size_t org_apache_arrow_flatbuf_Null_vec_len(org_apache_arrow_flatbuf_Null_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Null_table_t org_apache_arrow_flatbuf_Null_vec_at(org_apache_arrow_flatbuf_Null_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Null_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Null) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeBinary_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; +static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8View_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8View_ref_t; +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, 0) -/** A Struct_ in the flatbuffer metadata is the same as an Arrow Struct - * (according to the physical memory layout). We used Struct_ here as - * Struct is a reserved word in Flatbuffers */ -struct org_apache_arrow_flatbuf_Struct__table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BinaryView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BinaryView_ref_t; +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, 0) -static inline size_t org_apache_arrow_flatbuf_Struct__vec_len(org_apache_arrow_flatbuf_Struct__vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Struct__table_t org_apache_arrow_flatbuf_Struct__vec_at(org_apache_arrow_flatbuf_Struct__vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Struct__table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Struct_) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; +static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary, 1) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Bool_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Bool_ref_t; +static org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Bool_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Bool, 0) -struct org_apache_arrow_flatbuf_List_table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_RunEndEncoded_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_RunEndEncoded_ref_t; +static org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RunEndEncoded_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_RunEndEncoded, 0) -static inline size_t org_apache_arrow_flatbuf_List_vec_len(org_apache_arrow_flatbuf_List_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_List_table_t org_apache_arrow_flatbuf_List_vec_at(org_apache_arrow_flatbuf_List_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_List_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_List) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Decimal_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Decimal_ref_t; +static org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Decimal_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Decimal, 3) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Date_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Date_ref_t; +static org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Date_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Date, 1) -/** Same as List, but with 64-bit offsets, allowing to represent - * extremely large data values. */ -struct org_apache_arrow_flatbuf_LargeList_table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Time_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Time_ref_t; +static org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Time_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Time, 2) -static inline size_t org_apache_arrow_flatbuf_LargeList_vec_len(org_apache_arrow_flatbuf_LargeList_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_LargeList_table_t org_apache_arrow_flatbuf_LargeList_vec_at(org_apache_arrow_flatbuf_LargeList_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Timestamp_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Timestamp_ref_t; +static org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Timestamp_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Timestamp, 2) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Interval_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Interval_ref_t; +static org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Interval_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Interval, 1) -struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Duration_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Duration_ref_t; +static org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Duration_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Duration, 1) -static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_FixedSizeList_table_t org_apache_arrow_flatbuf_FixedSizeList_vec_at(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FixedSizeList_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FixedSizeList) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_KeyValue_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_KeyValue_ref_t; +static org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_KeyValue_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_KeyValue, 2) -/** Number of list items per value */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FixedSizeList, listSize, flatbuffers_int32, int32_t, INT32_C(0)) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_DictionaryEncoding_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_ref_t; +static org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryEncoding_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding, 4) -/** A Map is a logical nested type that is represented as - * - * List> - * - * In this layout, the keys and values are each respectively contiguous. We do - * not constrain the key and value types, so the application is responsible - * for ensuring that the keys are hashable and unique. Whether the keys are sorted - * may be set in the metadata for this field. - * - * In a field with Map type, the field has a child Struct field, which then - * has two children: key type and the second the value type. The names of the - * child fields may be respectively "entries", "key", and "value", but this is - * not enforced. - * - * Map - * ```text - * - child[0] entries: Struct - * - child[0] key: K - * - child[1] value: V - * ``` - * Neither the "entries" field nor the "key" field may be nullable. - * - * The metadata is structured so that Arrow systems without special handling - * for Map can make Map an alias for List. The "layout" attribute for the Map - * field must have the same contents as a List. */ -struct org_apache_arrow_flatbuf_Map_table { uint8_t unused__; }; +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Field_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Field_ref_t; +static org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Field_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Field, 7) -static inline size_t org_apache_arrow_flatbuf_Map_vec_len(org_apache_arrow_flatbuf_Map_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Map_table_t org_apache_arrow_flatbuf_Map_vec_at(org_apache_arrow_flatbuf_Map_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Map_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Map) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Schema_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Schema_ref_t; +static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Schema_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Schema, 4) + +#define __org_apache_arrow_flatbuf_Null_formal_args +#define __org_apache_arrow_flatbuf_Null_call_args +static inline org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Null_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Null, org_apache_arrow_flatbuf_Null_file_identifier, org_apache_arrow_flatbuf_Null_type_identifier) + +#define __org_apache_arrow_flatbuf_Struct__formal_args +#define __org_apache_arrow_flatbuf_Struct__call_args +static inline org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Struct__formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Struct_, org_apache_arrow_flatbuf_Struct__file_identifier, org_apache_arrow_flatbuf_Struct__type_identifier) -/** Set to true if the keys within each value are sorted */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Map, keysSorted, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +#define __org_apache_arrow_flatbuf_List_formal_args +#define __org_apache_arrow_flatbuf_List_call_args +static inline org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_List_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, org_apache_arrow_flatbuf_List_file_identifier, org_apache_arrow_flatbuf_List_type_identifier) -/** A union is a complex type with children in Field - * By default ids in the type vector refer to the offsets in the children - * optionally typeIds provides an indirection between the child offset and the type id - * for each child `typeIds[offset]` is the id used in the type vector */ -struct org_apache_arrow_flatbuf_Union_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_LargeList_formal_args +#define __org_apache_arrow_flatbuf_LargeList_call_args +static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) -static inline size_t org_apache_arrow_flatbuf_Union_vec_len(org_apache_arrow_flatbuf_Union_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Union_table_t org_apache_arrow_flatbuf_Union_vec_at(org_apache_arrow_flatbuf_Union_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Union_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Union) +#define __org_apache_arrow_flatbuf_ListView_formal_args +#define __org_apache_arrow_flatbuf_ListView_call_args +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_ListView, org_apache_arrow_flatbuf_ListView_file_identifier, org_apache_arrow_flatbuf_ListView_type_identifier) -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Union, mode, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, INT16_C(0)) -__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_Union, typeIds, flatbuffers_int32_vec_t, 0) +#define __org_apache_arrow_flatbuf_LargeListView_formal_args +#define __org_apache_arrow_flatbuf_LargeListView_call_args +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, org_apache_arrow_flatbuf_LargeListView_file_identifier, org_apache_arrow_flatbuf_LargeListView_type_identifier) -struct org_apache_arrow_flatbuf_Int_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 +#define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 +static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList_file_identifier, org_apache_arrow_flatbuf_FixedSizeList_type_identifier) -static inline size_t org_apache_arrow_flatbuf_Int_vec_len(org_apache_arrow_flatbuf_Int_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Int_table_t org_apache_arrow_flatbuf_Int_vec_at(org_apache_arrow_flatbuf_Int_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Int_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Int) +#define __org_apache_arrow_flatbuf_Map_formal_args , flatbuffers_bool_t v0 +#define __org_apache_arrow_flatbuf_Map_call_args , v0 +static inline org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Map_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Map, org_apache_arrow_flatbuf_Map_file_identifier, org_apache_arrow_flatbuf_Map_type_identifier) -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Int, bitWidth, flatbuffers_int32, int32_t, INT32_C(0)) -__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Int, is_signed, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) +#define __org_apache_arrow_flatbuf_Union_formal_args , org_apache_arrow_flatbuf_UnionMode_enum_t v0, flatbuffers_int32_vec_ref_t v1 +#define __org_apache_arrow_flatbuf_Union_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Union_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Union, org_apache_arrow_flatbuf_Union_file_identifier, org_apache_arrow_flatbuf_Union_type_identifier) -struct org_apache_arrow_flatbuf_FloatingPoint_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Int_formal_args , int32_t v0, flatbuffers_bool_t v1 +#define __org_apache_arrow_flatbuf_Int_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Int_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_Int_file_identifier, org_apache_arrow_flatbuf_Int_type_identifier) -static inline size_t org_apache_arrow_flatbuf_FloatingPoint_vec_len(org_apache_arrow_flatbuf_FloatingPoint_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_FloatingPoint_table_t org_apache_arrow_flatbuf_FloatingPoint_vec_at(org_apache_arrow_flatbuf_FloatingPoint_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FloatingPoint_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FloatingPoint) +#define __org_apache_arrow_flatbuf_FloatingPoint_formal_args , org_apache_arrow_flatbuf_Precision_enum_t v0 +#define __org_apache_arrow_flatbuf_FloatingPoint_call_args , v0 +static inline org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FloatingPoint_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint_file_identifier, org_apache_arrow_flatbuf_FloatingPoint_type_identifier) -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FloatingPoint, precision, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, INT16_C(0)) +#define __org_apache_arrow_flatbuf_Utf8_formal_args +#define __org_apache_arrow_flatbuf_Utf8_call_args +static inline org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8, org_apache_arrow_flatbuf_Utf8_file_identifier, org_apache_arrow_flatbuf_Utf8_type_identifier) -/** Unicode with UTF-8 encoding */ -struct org_apache_arrow_flatbuf_Utf8_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Binary_formal_args +#define __org_apache_arrow_flatbuf_Binary_call_args +static inline org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Binary_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Binary, org_apache_arrow_flatbuf_Binary_file_identifier, org_apache_arrow_flatbuf_Binary_type_identifier) -static inline size_t org_apache_arrow_flatbuf_Utf8_vec_len(org_apache_arrow_flatbuf_Utf8_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Utf8_table_t org_apache_arrow_flatbuf_Utf8_vec_at(org_apache_arrow_flatbuf_Utf8_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8) +#define __org_apache_arrow_flatbuf_LargeUtf8_formal_args +#define __org_apache_arrow_flatbuf_LargeUtf8_call_args +static inline org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeUtf8_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8_file_identifier, org_apache_arrow_flatbuf_LargeUtf8_type_identifier) +#define __org_apache_arrow_flatbuf_LargeBinary_formal_args +#define __org_apache_arrow_flatbuf_LargeBinary_call_args +static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) -/** Opaque binary data */ -struct org_apache_arrow_flatbuf_Binary_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Utf8View_formal_args +#define __org_apache_arrow_flatbuf_Utf8View_call_args +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, org_apache_arrow_flatbuf_Utf8View_file_identifier, org_apache_arrow_flatbuf_Utf8View_type_identifier) -static inline size_t org_apache_arrow_flatbuf_Binary_vec_len(org_apache_arrow_flatbuf_Binary_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Binary_table_t org_apache_arrow_flatbuf_Binary_vec_at(org_apache_arrow_flatbuf_Binary_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Binary_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Binary) +#define __org_apache_arrow_flatbuf_BinaryView_formal_args +#define __org_apache_arrow_flatbuf_BinaryView_call_args +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, org_apache_arrow_flatbuf_BinaryView_file_identifier, org_apache_arrow_flatbuf_BinaryView_type_identifier) +#define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 +#define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 +static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier) -/** Same as Utf8, but with 64-bit offsets, allowing to represent - * extremely large data values. */ -struct org_apache_arrow_flatbuf_LargeUtf8_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Bool_formal_args +#define __org_apache_arrow_flatbuf_Bool_call_args +static inline org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Bool_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Bool, org_apache_arrow_flatbuf_Bool_file_identifier, org_apache_arrow_flatbuf_Bool_type_identifier) -static inline size_t org_apache_arrow_flatbuf_LargeUtf8_vec_len(org_apache_arrow_flatbuf_LargeUtf8_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_LargeUtf8_table_t org_apache_arrow_flatbuf_LargeUtf8_vec_at(org_apache_arrow_flatbuf_LargeUtf8_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeUtf8_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeUtf8) +#define __org_apache_arrow_flatbuf_RunEndEncoded_formal_args +#define __org_apache_arrow_flatbuf_RunEndEncoded_call_args +static inline org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RunEndEncoded_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded_file_identifier, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier) +#define __org_apache_arrow_flatbuf_Decimal_formal_args , int32_t v0, int32_t v1, int32_t v2 +#define __org_apache_arrow_flatbuf_Decimal_call_args , v0, v1, v2 +static inline org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Decimal_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Decimal, org_apache_arrow_flatbuf_Decimal_file_identifier, org_apache_arrow_flatbuf_Decimal_type_identifier) -/** Same as Binary, but with 64-bit offsets, allowing to represent - * extremely large data values. */ -struct org_apache_arrow_flatbuf_LargeBinary_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Date_formal_args , org_apache_arrow_flatbuf_DateUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_Date_call_args , v0 +static inline org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Date_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Date, org_apache_arrow_flatbuf_Date_file_identifier, org_apache_arrow_flatbuf_Date_type_identifier) -static inline size_t org_apache_arrow_flatbuf_LargeBinary_vec_len(org_apache_arrow_flatbuf_LargeBinary_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_LargeBinary_table_t org_apache_arrow_flatbuf_LargeBinary_vec_at(org_apache_arrow_flatbuf_LargeBinary_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) +#define __org_apache_arrow_flatbuf_Time_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0, int32_t v1 +#define __org_apache_arrow_flatbuf_Time_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Time_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Time, org_apache_arrow_flatbuf_Time_file_identifier, org_apache_arrow_flatbuf_Time_type_identifier) +#define __org_apache_arrow_flatbuf_Timestamp_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0, flatbuffers_string_ref_t v1 +#define __org_apache_arrow_flatbuf_Timestamp_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Timestamp_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Timestamp, org_apache_arrow_flatbuf_Timestamp_file_identifier, org_apache_arrow_flatbuf_Timestamp_type_identifier) -struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_Interval_formal_args , org_apache_arrow_flatbuf_IntervalUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_Interval_call_args , v0 +static inline org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Interval_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Interval, org_apache_arrow_flatbuf_Interval_file_identifier, org_apache_arrow_flatbuf_Interval_type_identifier) -static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_FixedSizeBinary_table_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_at(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_FixedSizeBinary_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_FixedSizeBinary) +#define __org_apache_arrow_flatbuf_Duration_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0 +#define __org_apache_arrow_flatbuf_Duration_call_args , v0 +static inline org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Duration_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Duration, org_apache_arrow_flatbuf_Duration_file_identifier, org_apache_arrow_flatbuf_Duration_type_identifier) -/** Number of bytes per value */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_FixedSizeBinary, byteWidth, flatbuffers_int32, int32_t, INT32_C(0)) +#define __org_apache_arrow_flatbuf_KeyValue_formal_args , flatbuffers_string_ref_t v0, flatbuffers_string_ref_t v1 +#define __org_apache_arrow_flatbuf_KeyValue_call_args , v0, v1 +static inline org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_KeyValue_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_KeyValue_file_identifier, org_apache_arrow_flatbuf_KeyValue_type_identifier) -struct org_apache_arrow_flatbuf_Bool_table { uint8_t unused__; }; +#define __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args , int64_t v0, org_apache_arrow_flatbuf_Int_ref_t v1, flatbuffers_bool_t v2, org_apache_arrow_flatbuf_DictionaryKind_enum_t v3 +#define __org_apache_arrow_flatbuf_DictionaryEncoding_call_args , v0, v1, v2, v3 +static inline org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier) -static inline size_t org_apache_arrow_flatbuf_Bool_vec_len(org_apache_arrow_flatbuf_Bool_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Bool_table_t org_apache_arrow_flatbuf_Bool_vec_at(org_apache_arrow_flatbuf_Bool_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Bool_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Bool) +#define __org_apache_arrow_flatbuf_Field_formal_args ,\ + flatbuffers_string_ref_t v0, flatbuffers_bool_t v1, org_apache_arrow_flatbuf_Type_union_ref_t v3, org_apache_arrow_flatbuf_DictionaryEncoding_ref_t v4, org_apache_arrow_flatbuf_Field_vec_ref_t v5, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v6 +#define __org_apache_arrow_flatbuf_Field_call_args ,\ + v0, v1, v3, v4, v5, v6 +static inline org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Field_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field_file_identifier, org_apache_arrow_flatbuf_Field_type_identifier) +#define __org_apache_arrow_flatbuf_Schema_formal_args , org_apache_arrow_flatbuf_Endianness_enum_t v0, org_apache_arrow_flatbuf_Field_vec_ref_t v1, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v2, org_apache_arrow_flatbuf_Feature_vec_ref_t v3 +#define __org_apache_arrow_flatbuf_Schema_call_args , v0, v1, v2, v3 +static inline org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Schema_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Schema, org_apache_arrow_flatbuf_Schema_file_identifier, org_apache_arrow_flatbuf_Schema_type_identifier) -/** Contains two child arrays, run_ends and values. - * The run_ends child array must be a 16/32/64-bit integer array - * which encodes the indices at which the run with the value in - * each corresponding index in the values child array ends. - * Like list/struct types, the value array can be of any type. */ -struct org_apache_arrow_flatbuf_RunEndEncoded_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_NONE(void) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_NONE; uref.value = 0; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Null(org_apache_arrow_flatbuf_Null_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Null; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Int(org_apache_arrow_flatbuf_Int_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Int; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FloatingPoint(org_apache_arrow_flatbuf_FloatingPoint_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FloatingPoint; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Binary(org_apache_arrow_flatbuf_Binary_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Binary; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8(org_apache_arrow_flatbuf_Utf8_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Bool(org_apache_arrow_flatbuf_Bool_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Bool; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Decimal(org_apache_arrow_flatbuf_Decimal_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Decimal; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Date(org_apache_arrow_flatbuf_Date_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Date; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Time(org_apache_arrow_flatbuf_Time_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Time; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Timestamp(org_apache_arrow_flatbuf_Timestamp_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Timestamp; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Interval(org_apache_arrow_flatbuf_Interval_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Interval; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_List(org_apache_arrow_flatbuf_List_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_List; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Struct_(org_apache_arrow_flatbuf_Struct__ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Struct_; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Union(org_apache_arrow_flatbuf_Union_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Union; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FixedSizeBinary(org_apache_arrow_flatbuf_FixedSizeBinary_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FixedSizeBinary; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FixedSizeList(org_apache_arrow_flatbuf_FixedSizeList_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FixedSizeList; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Map(org_apache_arrow_flatbuf_Map_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Map; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Duration(org_apache_arrow_flatbuf_Duration_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Duration; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeBinary(org_apache_arrow_flatbuf_LargeBinary_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeBinary; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeUtf8; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_BinaryView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8View; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_ListView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeListView; uref.value = ref; return uref; } +__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) -static inline size_t org_apache_arrow_flatbuf_RunEndEncoded_vec_len(org_apache_arrow_flatbuf_RunEndEncoded_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_RunEndEncoded_table_t org_apache_arrow_flatbuf_RunEndEncoded_vec_at(org_apache_arrow_flatbuf_RunEndEncoded_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_RunEndEncoded_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_RunEndEncoded) +static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) +{ + switch (u.type) { + case 1: return org_apache_arrow_flatbuf_Type_as_Null(org_apache_arrow_flatbuf_Null_clone(B, (org_apache_arrow_flatbuf_Null_table_t)u.value)); + case 2: return org_apache_arrow_flatbuf_Type_as_Int(org_apache_arrow_flatbuf_Int_clone(B, (org_apache_arrow_flatbuf_Int_table_t)u.value)); + case 3: return org_apache_arrow_flatbuf_Type_as_FloatingPoint(org_apache_arrow_flatbuf_FloatingPoint_clone(B, (org_apache_arrow_flatbuf_FloatingPoint_table_t)u.value)); + case 4: return org_apache_arrow_flatbuf_Type_as_Binary(org_apache_arrow_flatbuf_Binary_clone(B, (org_apache_arrow_flatbuf_Binary_table_t)u.value)); + case 5: return org_apache_arrow_flatbuf_Type_as_Utf8(org_apache_arrow_flatbuf_Utf8_clone(B, (org_apache_arrow_flatbuf_Utf8_table_t)u.value)); + case 6: return org_apache_arrow_flatbuf_Type_as_Bool(org_apache_arrow_flatbuf_Bool_clone(B, (org_apache_arrow_flatbuf_Bool_table_t)u.value)); + case 7: return org_apache_arrow_flatbuf_Type_as_Decimal(org_apache_arrow_flatbuf_Decimal_clone(B, (org_apache_arrow_flatbuf_Decimal_table_t)u.value)); + case 8: return org_apache_arrow_flatbuf_Type_as_Date(org_apache_arrow_flatbuf_Date_clone(B, (org_apache_arrow_flatbuf_Date_table_t)u.value)); + case 9: return org_apache_arrow_flatbuf_Type_as_Time(org_apache_arrow_flatbuf_Time_clone(B, (org_apache_arrow_flatbuf_Time_table_t)u.value)); + case 10: return org_apache_arrow_flatbuf_Type_as_Timestamp(org_apache_arrow_flatbuf_Timestamp_clone(B, (org_apache_arrow_flatbuf_Timestamp_table_t)u.value)); + case 11: return org_apache_arrow_flatbuf_Type_as_Interval(org_apache_arrow_flatbuf_Interval_clone(B, (org_apache_arrow_flatbuf_Interval_table_t)u.value)); + case 12: return org_apache_arrow_flatbuf_Type_as_List(org_apache_arrow_flatbuf_List_clone(B, (org_apache_arrow_flatbuf_List_table_t)u.value)); + case 13: return org_apache_arrow_flatbuf_Type_as_Struct_(org_apache_arrow_flatbuf_Struct__clone(B, (org_apache_arrow_flatbuf_Struct__table_t)u.value)); + case 14: return org_apache_arrow_flatbuf_Type_as_Union(org_apache_arrow_flatbuf_Union_clone(B, (org_apache_arrow_flatbuf_Union_table_t)u.value)); + case 15: return org_apache_arrow_flatbuf_Type_as_FixedSizeBinary(org_apache_arrow_flatbuf_FixedSizeBinary_clone(B, (org_apache_arrow_flatbuf_FixedSizeBinary_table_t)u.value)); + case 16: return org_apache_arrow_flatbuf_Type_as_FixedSizeList(org_apache_arrow_flatbuf_FixedSizeList_clone(B, (org_apache_arrow_flatbuf_FixedSizeList_table_t)u.value)); + case 17: return org_apache_arrow_flatbuf_Type_as_Map(org_apache_arrow_flatbuf_Map_clone(B, (org_apache_arrow_flatbuf_Map_table_t)u.value)); + case 18: return org_apache_arrow_flatbuf_Type_as_Duration(org_apache_arrow_flatbuf_Duration_clone(B, (org_apache_arrow_flatbuf_Duration_table_t)u.value)); + case 19: return org_apache_arrow_flatbuf_Type_as_LargeBinary(org_apache_arrow_flatbuf_LargeBinary_clone(B, (org_apache_arrow_flatbuf_LargeBinary_table_t)u.value)); + case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); + case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); + case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); + case 23: return org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_clone(B, (org_apache_arrow_flatbuf_BinaryView_table_t)u.value)); + case 24: return org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_clone(B, (org_apache_arrow_flatbuf_Utf8View_table_t)u.value)); + case 25: return org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_clone(B, (org_apache_arrow_flatbuf_ListView_table_t)u.value)); + case 26: return org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_clone(B, (org_apache_arrow_flatbuf_LargeListView_table_t)u.value)); + default: return org_apache_arrow_flatbuf_Type_as_NONE(); + } +} -/** Exact decimal value represented as an integer value in two's - * complement. Currently only 128-bit (16-byte) and 256-bit (32-byte) integers - * are used. The representation uses the endianness indicated - * in the Schema. */ -struct org_apache_arrow_flatbuf_Decimal_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Null_formal_args) +{ + if (org_apache_arrow_flatbuf_Null_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Null_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Decimal_vec_len(org_apache_arrow_flatbuf_Decimal_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Decimal_table_t org_apache_arrow_flatbuf_Decimal_vec_at(org_apache_arrow_flatbuf_Decimal_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Decimal_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Decimal) +static org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Null_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Null_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Null_end(B)); +} -/** Total number of decimal digits */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Decimal, precision, flatbuffers_int32, int32_t, INT32_C(0)) -/** Number of digits after the decimal point "." */ -__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Decimal, scale, flatbuffers_int32, int32_t, INT32_C(0)) -/** Number of bits per value. The only accepted widths are 128 and 256. - * We use bitWidth for consistency with Int::bitWidth. */ -__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_Decimal, bitWidth, flatbuffers_int32, int32_t, INT32_C(128)) -/** Date is either a 32-bit or 64-bit signed integer type representing an - * elapsed time since UNIX epoch (1970-01-01), stored in either of two units: - * - * * Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no - * leap seconds), where the values are evenly divisible by 86400000 - * * Days (32 bits) since the UNIX epoch */ -struct org_apache_arrow_flatbuf_Date_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Struct__formal_args) +{ + if (org_apache_arrow_flatbuf_Struct__start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Struct__end(B); +} -static inline size_t org_apache_arrow_flatbuf_Date_vec_len(org_apache_arrow_flatbuf_Date_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Date_table_t org_apache_arrow_flatbuf_Date_vec_at(org_apache_arrow_flatbuf_Date_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Date_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Date) +static org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Struct__table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Struct__start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Struct__end(B)); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Date, unit, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, INT16_C(1)) -/** Time is either a 32-bit or 64-bit signed integer type representing an - * elapsed time since midnight, stored in either of four units: seconds, - * milliseconds, microseconds or nanoseconds. - * - * The integer `bitWidth` depends on the `unit` and must be one of the following: - * * SECOND and MILLISECOND: 32 bits - * * MICROSECOND and NANOSECOND: 64 bits - * - * The allowed values are between 0 (inclusive) and 86400 (=24*60*60) seconds - * (exclusive), adjusted for the time unit (for example, up to 86400000 - * exclusive for the MILLISECOND unit). - * This definition doesn't allow for leap seconds. Time values from - * measurements with leap seconds will need to be corrected when ingesting - * into Arrow (for example by replacing the value 86400 with 86399). */ -struct org_apache_arrow_flatbuf_Time_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_List_formal_args) +{ + if (org_apache_arrow_flatbuf_List_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_List_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Time_vec_len(org_apache_arrow_flatbuf_Time_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Time_table_t org_apache_arrow_flatbuf_Time_vec_at(org_apache_arrow_flatbuf_Time_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Time_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Time) +static org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_List_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_List_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_List_end(B)); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Time, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(1)) -__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, flatbuffers_int32, int32_t, INT32_C(32)) -/** Timestamp is a 64-bit signed integer representing an elapsed time since a - * fixed epoch, stored in either of four units: seconds, milliseconds, - * microseconds or nanoseconds, and is optionally annotated with a timezone. - * - * Timestamp values do not include any leap seconds (in other words, all - * days are considered 86400 seconds long). - * - * Timestamps with a non-empty timezone - * ------------------------------------ - * - * If a Timestamp column has a non-empty timezone value, its epoch is - * 1970-01-01 00:00:00 (January 1st 1970, midnight) in the *UTC* timezone - * (the Unix epoch), regardless of the Timestamp's own timezone. - * - * Therefore, timestamp values with a non-empty timezone correspond to - * physical points in time together with some additional information about - * how the data was obtained and/or how to display it (the timezone). - * - * For example, the timestamp value 0 with the timezone string "Europe/Paris" - * corresponds to "January 1st 1970, 00h00" in the UTC timezone, but the - * application may prefer to display it as "January 1st 1970, 01h00" in - * the Europe/Paris timezone (which is the same physical point in time). - * - * One consequence is that timestamp values with a non-empty timezone - * can be compared and ordered directly, since they all share the same - * well-known point of reference (the Unix epoch). - * - * Timestamps with an unset / empty timezone - * ----------------------------------------- - * - * If a Timestamp column has no timezone value, its epoch is - * 1970-01-01 00:00:00 (January 1st 1970, midnight) in an *unknown* timezone. - * - * Therefore, timestamp values without a timezone cannot be meaningfully - * interpreted as physical points in time, but only as calendar / clock - * indications ("wall clock time") in an unspecified timezone. - * - * For example, the timestamp value 0 with an empty timezone string - * corresponds to "January 1st 1970, 00h00" in an unknown timezone: there - * is not enough information to interpret it as a well-defined physical - * point in time. - * - * One consequence is that timestamp values without a timezone cannot - * be reliably compared or ordered, since they may have different points of - * reference. In particular, it is *not* possible to interpret an unset - * or empty timezone as the same as "UTC". - * - * Conversion between timezones - * ---------------------------- - * - * If a Timestamp column has a non-empty timezone, changing the timezone - * to a different non-empty value is a metadata-only operation: - * the timestamp values need not change as their point of reference remains - * the same (the Unix epoch). - * - * However, if a Timestamp column has no timezone value, changing it to a - * non-empty value requires to think about the desired semantics. - * One possibility is to assume that the original timestamp values are - * relative to the epoch of the timezone being set; timestamp values should - * then adjusted to the Unix epoch (for example, changing the timezone from - * empty to "Europe/Paris" would require converting the timestamp values - * from "Europe/Paris" to "UTC", which seems counter-intuitive but is - * nevertheless correct). - * - * Guidelines for encoding data from external libraries - * ---------------------------------------------------- - * - * Date & time libraries often have multiple different data types for temporal - * data. In order to ease interoperability between different implementations the - * Arrow project has some recommendations for encoding these types into a Timestamp - * column. - * - * An "instant" represents a physical point in time that has no relevant timezone - * (for example, astronomical data). To encode an instant, use a Timestamp with - * the timezone string set to "UTC", and make sure the Timestamp values - * are relative to the UTC epoch (January 1st 1970, midnight). - * - * A "zoned date-time" represents a physical point in time annotated with an - * informative timezone (for example, the timezone in which the data was - * recorded). To encode a zoned date-time, use a Timestamp with the timezone - * string set to the name of the timezone, and make sure the Timestamp values - * are relative to the UTC epoch (January 1st 1970, midnight). - * - * (There is some ambiguity between an instant and a zoned date-time with the - * UTC timezone. Both of these are stored the same in Arrow. Typically, - * this distinction does not matter. If it does, then an application should - * use custom metadata or an extension type to distinguish between the two cases.) - * - * An "offset date-time" represents a physical point in time combined with an - * explicit offset from UTC. To encode an offset date-time, use a Timestamp - * with the timezone string set to the numeric timezone offset string - * (e.g. "+03:00"), and make sure the Timestamp values are relative to - * the UTC epoch (January 1st 1970, midnight). - * - * A "naive date-time" (also called "local date-time" in some libraries) - * represents a wall clock time combined with a calendar date, but with - * no indication of how to map this information to a physical point in time. - * Naive date-times must be handled with care because of this missing - * information, and also because daylight saving time (DST) may make - * some values ambiguous or non-existent. A naive date-time may be - * stored as a struct with Date and Time fields. However, it may also be - * encoded into a Timestamp column with an empty timezone. The timestamp - * values should be computed "as if" the timezone of the date-time values - * was UTC; for example, the naive date-time "January 1st 1970, 00h00" would - * be encoded as timestamp value 0. */ -struct org_apache_arrow_flatbuf_Timestamp_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeList_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeList_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Timestamp_vec_len(org_apache_arrow_flatbuf_Timestamp_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Timestamp_table_t org_apache_arrow_flatbuf_Timestamp_vec_at(org_apache_arrow_flatbuf_Timestamp_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Timestamp_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Timestamp) +static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeList_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Timestamp, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(0)) -/** The timezone is an optional string indicating the name of a timezone, - * one of: - * - * * As used in the Olson timezone database (the "tz database" or - * "tzdata"), such as "America/New_York". - * * An absolute timezone offset of the form "+XX:XX" or "-XX:XX", - * such as "+07:30". - * - * Whether a timezone string is present indicates different semantics about - * the data (see above). */ -__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_Timestamp, timezone, 0) -struct org_apache_arrow_flatbuf_Interval_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args) +{ + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_ListView_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Interval_vec_len(org_apache_arrow_flatbuf_Interval_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Interval_table_t org_apache_arrow_flatbuf_Interval_vec_at(org_apache_arrow_flatbuf_Interval_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Interval_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Interval) +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_ListView_end(B)); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Interval, unit, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, INT16_C(0)) -struct org_apache_arrow_flatbuf_Duration_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeListView_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Duration_vec_len(org_apache_arrow_flatbuf_Duration_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Duration_table_t org_apache_arrow_flatbuf_Duration_vec_at(org_apache_arrow_flatbuf_Duration_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Duration_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Duration) +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeListView_end(B)); +} -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Duration, unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, INT16_C(1)) -/** ---------------------------------------------------------------------- - * Top-level Type value, enabling extensible type-specific metadata. We can - * add new logical types to Type without breaking backwards compatibility */ -typedef uint8_t org_apache_arrow_flatbuf_Type_union_type_t; -__flatbuffers_define_integer_type(org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Type_union_type_t, 8) -__flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) -/** ---------------------------------------------------------------------- - * user defined key value pairs to add custom metadata to arrow - * key namespacing is the responsibility of the user */ -#define org_apache_arrow_flatbuf_Type_NONE ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(0)) -#define org_apache_arrow_flatbuf_Type_Null ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(1)) -#define org_apache_arrow_flatbuf_Type_Int ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(2)) -#define org_apache_arrow_flatbuf_Type_FloatingPoint ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(3)) -#define org_apache_arrow_flatbuf_Type_Binary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(4)) -#define org_apache_arrow_flatbuf_Type_Utf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(5)) -#define org_apache_arrow_flatbuf_Type_Bool ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(6)) -#define org_apache_arrow_flatbuf_Type_Decimal ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(7)) -#define org_apache_arrow_flatbuf_Type_Date ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(8)) -#define org_apache_arrow_flatbuf_Type_Time ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(9)) -#define org_apache_arrow_flatbuf_Type_Timestamp ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(10)) -#define org_apache_arrow_flatbuf_Type_Interval ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(11)) -#define org_apache_arrow_flatbuf_Type_List ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(12)) -#define org_apache_arrow_flatbuf_Type_Struct_ ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(13)) -#define org_apache_arrow_flatbuf_Type_Union ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(14)) -#define org_apache_arrow_flatbuf_Type_FixedSizeBinary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(15)) -#define org_apache_arrow_flatbuf_Type_FixedSizeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(16)) -#define org_apache_arrow_flatbuf_Type_Map ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(17)) -#define org_apache_arrow_flatbuf_Type_Duration ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(18)) -#define org_apache_arrow_flatbuf_Type_LargeBinary ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(19)) -#define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) -#define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) -#define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) -static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) +static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) { - switch (type) { - case org_apache_arrow_flatbuf_Type_NONE: return "NONE"; - case org_apache_arrow_flatbuf_Type_Null: return "Null"; - case org_apache_arrow_flatbuf_Type_Int: return "Int"; - case org_apache_arrow_flatbuf_Type_FloatingPoint: return "FloatingPoint"; - case org_apache_arrow_flatbuf_Type_Binary: return "Binary"; - case org_apache_arrow_flatbuf_Type_Utf8: return "Utf8"; - case org_apache_arrow_flatbuf_Type_Bool: return "Bool"; - case org_apache_arrow_flatbuf_Type_Decimal: return "Decimal"; - case org_apache_arrow_flatbuf_Type_Date: return "Date"; - case org_apache_arrow_flatbuf_Type_Time: return "Time"; - case org_apache_arrow_flatbuf_Type_Timestamp: return "Timestamp"; - case org_apache_arrow_flatbuf_Type_Interval: return "Interval"; - case org_apache_arrow_flatbuf_Type_List: return "List"; - case org_apache_arrow_flatbuf_Type_Struct_: return "Struct_"; - case org_apache_arrow_flatbuf_Type_Union: return "Union"; - case org_apache_arrow_flatbuf_Type_FixedSizeBinary: return "FixedSizeBinary"; - case org_apache_arrow_flatbuf_Type_FixedSizeList: return "FixedSizeList"; - case org_apache_arrow_flatbuf_Type_Map: return "Map"; - case org_apache_arrow_flatbuf_Type_Duration: return "Duration"; - case org_apache_arrow_flatbuf_Type_LargeBinary: return "LargeBinary"; - case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; - case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; - case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; - default: return ""; + if (org_apache_arrow_flatbuf_FixedSizeList_start(B) + || org_apache_arrow_flatbuf_FixedSizeList_listSize_add(B, v0)) { + return 0; } + return org_apache_arrow_flatbuf_FixedSizeList_end(B); } -static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_flatbuf_Type_union_type_t type) +static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t) { - switch (type) { - case org_apache_arrow_flatbuf_Type_NONE: return 1; - case org_apache_arrow_flatbuf_Type_Null: return 1; - case org_apache_arrow_flatbuf_Type_Int: return 1; - case org_apache_arrow_flatbuf_Type_FloatingPoint: return 1; - case org_apache_arrow_flatbuf_Type_Binary: return 1; - case org_apache_arrow_flatbuf_Type_Utf8: return 1; - case org_apache_arrow_flatbuf_Type_Bool: return 1; - case org_apache_arrow_flatbuf_Type_Decimal: return 1; - case org_apache_arrow_flatbuf_Type_Date: return 1; - case org_apache_arrow_flatbuf_Type_Time: return 1; - case org_apache_arrow_flatbuf_Type_Timestamp: return 1; - case org_apache_arrow_flatbuf_Type_Interval: return 1; - case org_apache_arrow_flatbuf_Type_List: return 1; - case org_apache_arrow_flatbuf_Type_Struct_: return 1; - case org_apache_arrow_flatbuf_Type_Union: return 1; - case org_apache_arrow_flatbuf_Type_FixedSizeBinary: return 1; - case org_apache_arrow_flatbuf_Type_FixedSizeList: return 1; - case org_apache_arrow_flatbuf_Type_Map: return 1; - case org_apache_arrow_flatbuf_Type_Duration: return 1; - case org_apache_arrow_flatbuf_Type_LargeBinary: return 1; - case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; - case org_apache_arrow_flatbuf_Type_LargeList: return 1; - case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; - default: return 0; + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_FixedSizeList_start(B) + || org_apache_arrow_flatbuf_FixedSizeList_listSize_pick(B, t)) { + return 0; } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FixedSizeList_end(B)); } +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Map_keysSorted, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Map) -struct org_apache_arrow_flatbuf_KeyValue_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Map_formal_args) +{ + if (org_apache_arrow_flatbuf_Map_start(B) + || org_apache_arrow_flatbuf_Map_keysSorted_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Map_end(B); +} -static inline size_t org_apache_arrow_flatbuf_KeyValue_vec_len(org_apache_arrow_flatbuf_KeyValue_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_KeyValue_table_t org_apache_arrow_flatbuf_KeyValue_vec_at(org_apache_arrow_flatbuf_KeyValue_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_KeyValue_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_KeyValue) +static org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Map_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Map_start(B) + || org_apache_arrow_flatbuf_Map_keysSorted_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Map_end(B)); +} -__flatbuffers_define_string_field(0, org_apache_arrow_flatbuf_KeyValue, key, 0) -__flatbuffers_define_string_field(1, org_apache_arrow_flatbuf_KeyValue, value, 0) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Union_mode, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Union) +__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_Union_typeIds, flatbuffers_int32, int32_t, org_apache_arrow_flatbuf_Union) -struct org_apache_arrow_flatbuf_DictionaryEncoding_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Union_formal_args) +{ + if (org_apache_arrow_flatbuf_Union_start(B) + || org_apache_arrow_flatbuf_Union_typeIds_add(B, v1) + || org_apache_arrow_flatbuf_Union_mode_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Union_end(B); +} -static inline size_t org_apache_arrow_flatbuf_DictionaryEncoding_vec_len(org_apache_arrow_flatbuf_DictionaryEncoding_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_DictionaryEncoding_table_t org_apache_arrow_flatbuf_DictionaryEncoding_vec_at(org_apache_arrow_flatbuf_DictionaryEncoding_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_DictionaryEncoding_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_DictionaryEncoding) +static org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Union_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Union_start(B) + || org_apache_arrow_flatbuf_Union_typeIds_pick(B, t) + || org_apache_arrow_flatbuf_Union_mode_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Union_end(B)); +} -/** The known dictionary id in the application where this data is used. In - * the file or streaming formats, the dictionary ids are found in the - * DictionaryBatch messages */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_DictionaryEncoding, id, flatbuffers_int64, int64_t, INT64_C(0)) -/** The dictionary indices are constrained to be non-negative integers. If - * this field is null, the indices must be signed int32. To maximize - * cross-language compatibility and performance, implementations are - * recommended to prefer signed integer types over unsigned integer types - * and to avoid uint64 indices unless they are required by an application. */ -__flatbuffers_define_table_field(1, org_apache_arrow_flatbuf_DictionaryEncoding, indexType, org_apache_arrow_flatbuf_Int_table_t, 0) -/** By default, dictionaries are not ordered, or the order does not have - * semantic meaning. In some statistical, applications, dictionary-encoding - * is used to represent ordered categorical data, and we provide a way to - * preserve that metadata here */ -__flatbuffers_define_scalar_field(2, org_apache_arrow_flatbuf_DictionaryEncoding, isOrdered, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) -__flatbuffers_define_scalar_field(3, org_apache_arrow_flatbuf_DictionaryEncoding, dictionaryKind, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, INT16_C(0)) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Int_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Int) +__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Int_is_signed, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Int) -/** ---------------------------------------------------------------------- - * A field represents a named column in a record / row batch or child of a - * nested type. */ -struct org_apache_arrow_flatbuf_Field_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Int_formal_args) +{ + if (org_apache_arrow_flatbuf_Int_start(B) + || org_apache_arrow_flatbuf_Int_bitWidth_add(B, v0) + || org_apache_arrow_flatbuf_Int_is_signed_add(B, v1)) { + return 0; + } + return org_apache_arrow_flatbuf_Int_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Field_vec_len(org_apache_arrow_flatbuf_Field_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Field_table_t org_apache_arrow_flatbuf_Field_vec_at(org_apache_arrow_flatbuf_Field_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Field_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Field) +static org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Int_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Int_start(B) + || org_apache_arrow_flatbuf_Int_bitWidth_pick(B, t) + || org_apache_arrow_flatbuf_Int_is_signed_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Int_end(B)); +} -/** Name is not required, in i.e. a List */ -__flatbuffers_define_string_field(0, org_apache_arrow_flatbuf_Field, name, 0) -/** Whether or not this field can contain nulls. Should be true in general. */ -__flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Field, nullable, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(0)) -/** This is the type of the decoded value if the field is dictionary encoded. */ -__flatbuffers_define_union_field(flatbuffers_, 3, org_apache_arrow_flatbuf_Field, type, org_apache_arrow_flatbuf_Type, 0) -/** Present only if the field is dictionary encoded. */ -__flatbuffers_define_table_field(4, org_apache_arrow_flatbuf_Field, dictionary, org_apache_arrow_flatbuf_DictionaryEncoding_table_t, 0) -/** children apply only to nested data types like Struct, List and Union. For - * primitive types children will have length 0. */ -__flatbuffers_define_vector_field(5, org_apache_arrow_flatbuf_Field, children, org_apache_arrow_flatbuf_Field_vec_t, 0) -/** User-defined metadata */ -__flatbuffers_define_vector_field(6, org_apache_arrow_flatbuf_Field, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint_precision, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_FloatingPoint) -/** ---------------------------------------------------------------------- - * A Schema describes the columns in a row batch */ -struct org_apache_arrow_flatbuf_Schema_table { uint8_t unused__; }; +static inline org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FloatingPoint_formal_args) +{ + if (org_apache_arrow_flatbuf_FloatingPoint_start(B) + || org_apache_arrow_flatbuf_FloatingPoint_precision_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_FloatingPoint_end(B); +} -static inline size_t org_apache_arrow_flatbuf_Schema_vec_len(org_apache_arrow_flatbuf_Schema_vec_t vec) -__flatbuffers_vec_len(vec) -static inline org_apache_arrow_flatbuf_Schema_table_t org_apache_arrow_flatbuf_Schema_vec_at(org_apache_arrow_flatbuf_Schema_vec_t vec, size_t i) -__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Schema_table_t, vec, i, 0) -__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Schema) +static org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FloatingPoint_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_FloatingPoint_start(B) + || org_apache_arrow_flatbuf_FloatingPoint_precision_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FloatingPoint_end(B)); +} -/** endianness of the buffer - * it is Little Endian by default - * if endianness doesn't match the underlying system then the vectors need to be converted */ -__flatbuffers_define_scalar_field(0, org_apache_arrow_flatbuf_Schema, endianness, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, INT16_C(0)) -__flatbuffers_define_vector_field(1, org_apache_arrow_flatbuf_Schema, fields, org_apache_arrow_flatbuf_Field_vec_t, 0) -__flatbuffers_define_vector_field(2, org_apache_arrow_flatbuf_Schema, custom_metadata, org_apache_arrow_flatbuf_KeyValue_vec_t, 0) -/** Features used in the stream/file. */ -__flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, org_apache_arrow_flatbuf_Feature_vec_t, 0) +static inline org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8_end(B); +} -#include "flatcc/flatcc_epilogue.h" -#endif /* SCHEMA_READER_H */ -#ifndef SCHEMA_BUILDER_H -#define SCHEMA_BUILDER_H +static org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8_end(B)); +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ -#ifndef SCHEMA_READER_H -#include "Schema_reader.h" -#endif -#ifndef FLATBUFFERS_COMMON_BUILDER_H -#include "flatbuffers_common_builder.h" -#endif -#include "flatcc/flatcc_prologue.h" -#ifndef flatbuffers_identifier -#define flatbuffers_identifier 0 -#endif -#ifndef flatbuffers_extension -#define flatbuffers_extension "bin" -#endif +static inline org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Binary_formal_args) +{ + if (org_apache_arrow_flatbuf_Binary_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Binary_end(B); +} -#define __org_apache_arrow_flatbuf_MetadataVersion_formal_args , org_apache_arrow_flatbuf_MetadataVersion_enum_t v0 -#define __org_apache_arrow_flatbuf_MetadataVersion_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_MetadataVersion, org_apache_arrow_flatbuf_MetadataVersion_enum_t) -#define __org_apache_arrow_flatbuf_Feature_formal_args , org_apache_arrow_flatbuf_Feature_enum_t v0 -#define __org_apache_arrow_flatbuf_Feature_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t) -#define __org_apache_arrow_flatbuf_UnionMode_formal_args , org_apache_arrow_flatbuf_UnionMode_enum_t v0 -#define __org_apache_arrow_flatbuf_UnionMode_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t) -#define __org_apache_arrow_flatbuf_Precision_formal_args , org_apache_arrow_flatbuf_Precision_enum_t v0 -#define __org_apache_arrow_flatbuf_Precision_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t) -#define __org_apache_arrow_flatbuf_DateUnit_formal_args , org_apache_arrow_flatbuf_DateUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_DateUnit_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t) -#define __org_apache_arrow_flatbuf_TimeUnit_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_TimeUnit_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t) -#define __org_apache_arrow_flatbuf_IntervalUnit_formal_args , org_apache_arrow_flatbuf_IntervalUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_IntervalUnit_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t) -#define __org_apache_arrow_flatbuf_DictionaryKind_formal_args , org_apache_arrow_flatbuf_DictionaryKind_enum_t v0 -#define __org_apache_arrow_flatbuf_DictionaryKind_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t) -#define __org_apache_arrow_flatbuf_Endianness_formal_args , org_apache_arrow_flatbuf_Endianness_enum_t v0 -#define __org_apache_arrow_flatbuf_Endianness_call_args , v0 -__flatbuffers_build_scalar(flatbuffers_, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t) +static org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Binary_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Binary_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Binary_end(B)); +} -#define __org_apache_arrow_flatbuf_Buffer_formal_args , int64_t v0, int64_t v1 -#define __org_apache_arrow_flatbuf_Buffer_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) -{ p->offset = v0; p->length = v1; - return p; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) -{ p->offset = p2->offset; p->length = p2->length; - return p; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign_to_pe(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) -{ flatbuffers_int64_assign_to_pe(&p->offset, v0); flatbuffers_int64_assign_to_pe(&p->length, v1); - return p; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy_to_pe(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) -{ flatbuffers_int64_copy_to_pe(&p->offset, &p2->offset); flatbuffers_int64_copy_to_pe(&p->length, &p2->length); - return p; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_assign_from_pe(org_apache_arrow_flatbuf_Buffer_t *p, int64_t v0, int64_t v1) -{ flatbuffers_int64_assign_from_pe(&p->offset, v0); flatbuffers_int64_assign_from_pe(&p->length, v1); - return p; } -static inline org_apache_arrow_flatbuf_Buffer_t *org_apache_arrow_flatbuf_Buffer_copy_from_pe(org_apache_arrow_flatbuf_Buffer_t *p, const org_apache_arrow_flatbuf_Buffer_t *p2) -{ flatbuffers_int64_copy_from_pe(&p->offset, &p2->offset); flatbuffers_int64_copy_from_pe(&p->length, &p2->length); - return p; } -__flatbuffers_build_struct(flatbuffers_, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Buffer_file_identifier, org_apache_arrow_flatbuf_Buffer_type_identifier) -__flatbuffers_define_fixed_array_primitives(flatbuffers_, org_apache_arrow_flatbuf_Buffer, org_apache_arrow_flatbuf_Buffer_t) -typedef flatbuffers_union_ref_t org_apache_arrow_flatbuf_Type_union_ref_t; -typedef flatbuffers_union_vec_ref_t org_apache_arrow_flatbuf_Type_union_vec_ref_t; -static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t t); +static inline org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeUtf8_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeUtf8_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeUtf8_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Null_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Null_ref_t; -static org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Null_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Null, 0) +static org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeUtf8_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeUtf8_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeUtf8_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Struct__required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Struct__ref_t; -static org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Struct__table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Struct_, 0) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_List_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_List_ref_t; -static org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_List_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_List, 0) +static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeBinary_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeBinary_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeList_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; -static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) +static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeBinary_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; -static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList, 1) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Map_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Map_ref_t; -static org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Map_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Map, 1) +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8View_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Union_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Union_ref_t; -static org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Union_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Union, 2) +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8View_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Int_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Int_ref_t; -static org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Int_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Int, 2) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FloatingPoint_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FloatingPoint_ref_t; -static org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FloatingPoint_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint, 1) +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args) +{ + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_BinaryView_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8_ref_t; -static org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8, 0) +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BinaryView_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Binary_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Binary_ref_t; -static org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Binary_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Binary, 0) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeUtf8_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeUtf8_ref_t; -static org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeUtf8_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf8, 0) +static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) +{ + if (org_apache_arrow_flatbuf_FixedSizeBinary_start(B) + || org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_FixedSizeBinary_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeBinary_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; -static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_FixedSizeBinary_start(B) + || org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FixedSizeBinary_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; -static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary, 1) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Bool_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Bool_ref_t; -static org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Bool_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Bool, 0) +static inline org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Bool_formal_args) +{ + if (org_apache_arrow_flatbuf_Bool_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Bool_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_RunEndEncoded_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_RunEndEncoded_ref_t; -static org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RunEndEncoded_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_RunEndEncoded, 0) +static org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Bool_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Bool_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Bool_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Decimal_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Decimal_ref_t; -static org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Decimal_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Decimal, 3) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Date_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Date_ref_t; -static org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Date_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Date, 1) +static inline org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RunEndEncoded_formal_args) +{ + if (org_apache_arrow_flatbuf_RunEndEncoded_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_RunEndEncoded_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Time_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Time_ref_t; -static org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Time_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Time, 2) +static org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RunEndEncoded_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_RunEndEncoded_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_RunEndEncoded_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Timestamp_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Timestamp_ref_t; -static org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Timestamp_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Timestamp, 2) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Decimal_precision, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Decimal) +__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Decimal_scale, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Decimal) +__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_Decimal_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(128), org_apache_arrow_flatbuf_Decimal) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Interval_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Interval_ref_t; -static org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Interval_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Interval, 1) +static inline org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Decimal_formal_args) +{ + if (org_apache_arrow_flatbuf_Decimal_start(B) + || org_apache_arrow_flatbuf_Decimal_precision_add(B, v0) + || org_apache_arrow_flatbuf_Decimal_scale_add(B, v1) + || org_apache_arrow_flatbuf_Decimal_bitWidth_add(B, v2)) { + return 0; + } + return org_apache_arrow_flatbuf_Decimal_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Duration_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Duration_ref_t; -static org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Duration_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Duration, 1) +static org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Decimal_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Decimal_start(B) + || org_apache_arrow_flatbuf_Decimal_precision_pick(B, t) + || org_apache_arrow_flatbuf_Decimal_scale_pick(B, t) + || org_apache_arrow_flatbuf_Decimal_bitWidth_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Decimal_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_KeyValue_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_KeyValue_ref_t; -static org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_KeyValue_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_KeyValue, 2) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Date_unit, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Date) -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_DictionaryEncoding_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_ref_t; -static org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryEncoding_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding, 4) +static inline org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Date_formal_args) +{ + if (org_apache_arrow_flatbuf_Date_start(B) + || org_apache_arrow_flatbuf_Date_unit_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Date_end(B); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Field_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Field_ref_t; -static org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Field_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Field, 7) +static org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Date_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Date_start(B) + || org_apache_arrow_flatbuf_Date_unit_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Date_end(B)); +} -static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Schema_required[] = { 0 }; -typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Schema_ref_t; -static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Schema_table_t t); -__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Schema, 4) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Time_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Time) +__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Time_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(32), org_apache_arrow_flatbuf_Time) -#define __org_apache_arrow_flatbuf_Null_formal_args -#define __org_apache_arrow_flatbuf_Null_call_args -static inline org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Null_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Null, org_apache_arrow_flatbuf_Null_file_identifier, org_apache_arrow_flatbuf_Null_type_identifier) +static inline org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Time_formal_args) +{ + if (org_apache_arrow_flatbuf_Time_start(B) + || org_apache_arrow_flatbuf_Time_bitWidth_add(B, v1) + || org_apache_arrow_flatbuf_Time_unit_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Time_end(B); +} -#define __org_apache_arrow_flatbuf_Struct__formal_args -#define __org_apache_arrow_flatbuf_Struct__call_args -static inline org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Struct__formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Struct_, org_apache_arrow_flatbuf_Struct__file_identifier, org_apache_arrow_flatbuf_Struct__type_identifier) +static org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Time_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Time_start(B) + || org_apache_arrow_flatbuf_Time_bitWidth_pick(B, t) + || org_apache_arrow_flatbuf_Time_unit_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Time_end(B)); +} -#define __org_apache_arrow_flatbuf_List_formal_args -#define __org_apache_arrow_flatbuf_List_call_args -static inline org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_List_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, org_apache_arrow_flatbuf_List_file_identifier, org_apache_arrow_flatbuf_List_type_identifier) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Timestamp_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Timestamp) +__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_Timestamp_timezone, org_apache_arrow_flatbuf_Timestamp) -#define __org_apache_arrow_flatbuf_LargeList_formal_args -#define __org_apache_arrow_flatbuf_LargeList_call_args -static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) +static inline org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Timestamp_formal_args) +{ + if (org_apache_arrow_flatbuf_Timestamp_start(B) + || org_apache_arrow_flatbuf_Timestamp_timezone_add(B, v1) + || org_apache_arrow_flatbuf_Timestamp_unit_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Timestamp_end(B); +} -#define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 -#define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 -static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList_file_identifier, org_apache_arrow_flatbuf_FixedSizeList_type_identifier) +static org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Timestamp_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Timestamp_start(B) + || org_apache_arrow_flatbuf_Timestamp_timezone_pick(B, t) + || org_apache_arrow_flatbuf_Timestamp_unit_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Timestamp_end(B)); +} -#define __org_apache_arrow_flatbuf_Map_formal_args , flatbuffers_bool_t v0 -#define __org_apache_arrow_flatbuf_Map_call_args , v0 -static inline org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Map_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Map, org_apache_arrow_flatbuf_Map_file_identifier, org_apache_arrow_flatbuf_Map_type_identifier) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Interval_unit, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Interval) -#define __org_apache_arrow_flatbuf_Union_formal_args , org_apache_arrow_flatbuf_UnionMode_enum_t v0, flatbuffers_int32_vec_ref_t v1 -#define __org_apache_arrow_flatbuf_Union_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Union_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Union, org_apache_arrow_flatbuf_Union_file_identifier, org_apache_arrow_flatbuf_Union_type_identifier) +static inline org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Interval_formal_args) +{ + if (org_apache_arrow_flatbuf_Interval_start(B) + || org_apache_arrow_flatbuf_Interval_unit_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Interval_end(B); +} -#define __org_apache_arrow_flatbuf_Int_formal_args , int32_t v0, flatbuffers_bool_t v1 -#define __org_apache_arrow_flatbuf_Int_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Int_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_Int_file_identifier, org_apache_arrow_flatbuf_Int_type_identifier) +static org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Interval_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Interval_start(B) + || org_apache_arrow_flatbuf_Interval_unit_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Interval_end(B)); +} -#define __org_apache_arrow_flatbuf_FloatingPoint_formal_args , org_apache_arrow_flatbuf_Precision_enum_t v0 -#define __org_apache_arrow_flatbuf_FloatingPoint_call_args , v0 -static inline org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FloatingPoint_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint_file_identifier, org_apache_arrow_flatbuf_FloatingPoint_type_identifier) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Duration_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Duration) -#define __org_apache_arrow_flatbuf_Utf8_formal_args -#define __org_apache_arrow_flatbuf_Utf8_call_args -static inline org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8, org_apache_arrow_flatbuf_Utf8_file_identifier, org_apache_arrow_flatbuf_Utf8_type_identifier) +static inline org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Duration_formal_args) +{ + if (org_apache_arrow_flatbuf_Duration_start(B) + || org_apache_arrow_flatbuf_Duration_unit_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Duration_end(B); +} -#define __org_apache_arrow_flatbuf_Binary_formal_args -#define __org_apache_arrow_flatbuf_Binary_call_args -static inline org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Binary_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Binary, org_apache_arrow_flatbuf_Binary_file_identifier, org_apache_arrow_flatbuf_Binary_type_identifier) +static org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Duration_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Duration_start(B) + || org_apache_arrow_flatbuf_Duration_unit_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Duration_end(B)); +} -#define __org_apache_arrow_flatbuf_LargeUtf8_formal_args -#define __org_apache_arrow_flatbuf_LargeUtf8_call_args -static inline org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeUtf8_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8_file_identifier, org_apache_arrow_flatbuf_LargeUtf8_type_identifier) +__flatbuffers_build_string_field(0, flatbuffers_, org_apache_arrow_flatbuf_KeyValue_key, org_apache_arrow_flatbuf_KeyValue) +__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_KeyValue_value, org_apache_arrow_flatbuf_KeyValue) -#define __org_apache_arrow_flatbuf_LargeBinary_formal_args -#define __org_apache_arrow_flatbuf_LargeBinary_call_args -static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) +static inline org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_KeyValue_formal_args) +{ + if (org_apache_arrow_flatbuf_KeyValue_start(B) + || org_apache_arrow_flatbuf_KeyValue_key_add(B, v0) + || org_apache_arrow_flatbuf_KeyValue_value_add(B, v1)) { + return 0; + } + return org_apache_arrow_flatbuf_KeyValue_end(B); +} -#define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 -#define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 -static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier) +static org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_KeyValue_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_KeyValue_start(B) + || org_apache_arrow_flatbuf_KeyValue_key_pick(B, t) + || org_apache_arrow_flatbuf_KeyValue_value_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_KeyValue_end(B)); +} -#define __org_apache_arrow_flatbuf_Bool_formal_args -#define __org_apache_arrow_flatbuf_Bool_call_args -static inline org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Bool_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Bool, org_apache_arrow_flatbuf_Bool_file_identifier, org_apache_arrow_flatbuf_Bool_type_identifier) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_id, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) +__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_indexType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_DictionaryEncoding) +__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) +__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) + +static inline org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args) +{ + if (org_apache_arrow_flatbuf_DictionaryEncoding_start(B) + || org_apache_arrow_flatbuf_DictionaryEncoding_id_add(B, v0) + || org_apache_arrow_flatbuf_DictionaryEncoding_indexType_add(B, v1) + || org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind_add(B, v3) + || org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered_add(B, v2)) { + return 0; + } + return org_apache_arrow_flatbuf_DictionaryEncoding_end(B); +} -#define __org_apache_arrow_flatbuf_RunEndEncoded_formal_args -#define __org_apache_arrow_flatbuf_RunEndEncoded_call_args -static inline org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RunEndEncoded_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded_file_identifier, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier) +static org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryEncoding_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_DictionaryEncoding_start(B) + || org_apache_arrow_flatbuf_DictionaryEncoding_id_pick(B, t) + || org_apache_arrow_flatbuf_DictionaryEncoding_indexType_pick(B, t) + || org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind_pick(B, t) + || org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_DictionaryEncoding_end(B)); +} -#define __org_apache_arrow_flatbuf_Decimal_formal_args , int32_t v0, int32_t v1, int32_t v2 -#define __org_apache_arrow_flatbuf_Decimal_call_args , v0, v1, v2 -static inline org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Decimal_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Decimal, org_apache_arrow_flatbuf_Decimal_file_identifier, org_apache_arrow_flatbuf_Decimal_type_identifier) +__flatbuffers_build_string_field(0, flatbuffers_, org_apache_arrow_flatbuf_Field_name, org_apache_arrow_flatbuf_Field) +__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Field_nullable, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Field) +__flatbuffers_build_union_field(3, flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Field) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) +__flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) +__flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) +__flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) -#define __org_apache_arrow_flatbuf_Date_formal_args , org_apache_arrow_flatbuf_DateUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_Date_call_args , v0 -static inline org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Date_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Date, org_apache_arrow_flatbuf_Date_file_identifier, org_apache_arrow_flatbuf_Date_type_identifier) +static inline org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Field_formal_args) +{ + if (org_apache_arrow_flatbuf_Field_start(B) + || org_apache_arrow_flatbuf_Field_name_add(B, v0) + || org_apache_arrow_flatbuf_Field_type_add_value(B, v3) + || org_apache_arrow_flatbuf_Field_dictionary_add(B, v4) + || org_apache_arrow_flatbuf_Field_children_add(B, v5) + || org_apache_arrow_flatbuf_Field_custom_metadata_add(B, v6) + || org_apache_arrow_flatbuf_Field_nullable_add(B, v1) + || org_apache_arrow_flatbuf_Field_type_add_type(B, v3.type)) { + return 0; + } + return org_apache_arrow_flatbuf_Field_end(B); +} -#define __org_apache_arrow_flatbuf_Time_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0, int32_t v1 -#define __org_apache_arrow_flatbuf_Time_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Time_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Time, org_apache_arrow_flatbuf_Time_file_identifier, org_apache_arrow_flatbuf_Time_type_identifier) +static org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Field_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Field_start(B) + || org_apache_arrow_flatbuf_Field_name_pick(B, t) + || org_apache_arrow_flatbuf_Field_type_pick(B, t) + || org_apache_arrow_flatbuf_Field_dictionary_pick(B, t) + || org_apache_arrow_flatbuf_Field_children_pick(B, t) + || org_apache_arrow_flatbuf_Field_custom_metadata_pick(B, t) + || org_apache_arrow_flatbuf_Field_nullable_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Field_end(B)); +} -#define __org_apache_arrow_flatbuf_Timestamp_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0, flatbuffers_string_ref_t v1 -#define __org_apache_arrow_flatbuf_Timestamp_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Timestamp_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Timestamp, org_apache_arrow_flatbuf_Timestamp_file_identifier, org_apache_arrow_flatbuf_Timestamp_type_identifier) +__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Schema_endianness, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Schema) +__flatbuffers_build_table_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_Schema_fields, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Schema) +__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Schema_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Schema) +__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Schema_features, org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t, org_apache_arrow_flatbuf_Schema) -#define __org_apache_arrow_flatbuf_Interval_formal_args , org_apache_arrow_flatbuf_IntervalUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_Interval_call_args , v0 -static inline org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Interval_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Interval, org_apache_arrow_flatbuf_Interval_file_identifier, org_apache_arrow_flatbuf_Interval_type_identifier) +static inline org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Schema_formal_args) +{ + if (org_apache_arrow_flatbuf_Schema_start(B) + || org_apache_arrow_flatbuf_Schema_fields_add(B, v1) + || org_apache_arrow_flatbuf_Schema_custom_metadata_add(B, v2) + || org_apache_arrow_flatbuf_Schema_features_add(B, v3) + || org_apache_arrow_flatbuf_Schema_endianness_add(B, v0)) { + return 0; + } + return org_apache_arrow_flatbuf_Schema_end(B); +} -#define __org_apache_arrow_flatbuf_Duration_formal_args , org_apache_arrow_flatbuf_TimeUnit_enum_t v0 -#define __org_apache_arrow_flatbuf_Duration_call_args , v0 -static inline org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Duration_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Duration, org_apache_arrow_flatbuf_Duration_file_identifier, org_apache_arrow_flatbuf_Duration_type_identifier) +static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Schema_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Schema_start(B) + || org_apache_arrow_flatbuf_Schema_fields_pick(B, t) + || org_apache_arrow_flatbuf_Schema_custom_metadata_pick(B, t) + || org_apache_arrow_flatbuf_Schema_features_pick(B, t) + || org_apache_arrow_flatbuf_Schema_endianness_pick(B, t)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Schema_end(B)); +} -#define __org_apache_arrow_flatbuf_KeyValue_formal_args , flatbuffers_string_ref_t v0, flatbuffers_string_ref_t v1 -#define __org_apache_arrow_flatbuf_KeyValue_call_args , v0, v1 -static inline org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_KeyValue_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_KeyValue_file_identifier, org_apache_arrow_flatbuf_KeyValue_type_identifier) +#include "flatcc/flatcc_epilogue.h" +#endif /* SCHEMA_BUILDER_H */ +#ifndef SCHEMA_VERIFIER_H +#define SCHEMA_VERIFIER_H -#define __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args , int64_t v0, org_apache_arrow_flatbuf_Int_ref_t v1, flatbuffers_bool_t v2, org_apache_arrow_flatbuf_DictionaryKind_enum_t v3 -#define __org_apache_arrow_flatbuf_DictionaryEncoding_call_args , v0, v1, v2, v3 -static inline org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_DictionaryEncoding_file_identifier, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier) +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ -#define __org_apache_arrow_flatbuf_Field_formal_args ,\ - flatbuffers_string_ref_t v0, flatbuffers_bool_t v1, org_apache_arrow_flatbuf_Type_union_ref_t v3, org_apache_arrow_flatbuf_DictionaryEncoding_ref_t v4, org_apache_arrow_flatbuf_Field_vec_ref_t v5, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v6 -#define __org_apache_arrow_flatbuf_Field_call_args ,\ - v0, v1, v3, v4, v5, v6 -static inline org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Field_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field_file_identifier, org_apache_arrow_flatbuf_Field_type_identifier) +#ifndef SCHEMA_READER_H +#include "Schema_reader.h" +#endif +#include "flatcc/flatcc_verifier.h" +#include "flatcc/flatcc_prologue.h" -#define __org_apache_arrow_flatbuf_Schema_formal_args , org_apache_arrow_flatbuf_Endianness_enum_t v0, org_apache_arrow_flatbuf_Field_vec_ref_t v1, org_apache_arrow_flatbuf_KeyValue_vec_ref_t v2, org_apache_arrow_flatbuf_Feature_vec_ref_t v3 -#define __org_apache_arrow_flatbuf_Schema_call_args , v0, v1, v2, v3 -static inline org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Schema_formal_args); -__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Schema, org_apache_arrow_flatbuf_Schema_file_identifier, org_apache_arrow_flatbuf_Schema_type_identifier) +static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td); -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_NONE(void) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_NONE; uref.value = 0; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Null(org_apache_arrow_flatbuf_Null_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Null; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Int(org_apache_arrow_flatbuf_Int_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Int; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FloatingPoint(org_apache_arrow_flatbuf_FloatingPoint_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FloatingPoint; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Binary(org_apache_arrow_flatbuf_Binary_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Binary; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8(org_apache_arrow_flatbuf_Utf8_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Bool(org_apache_arrow_flatbuf_Bool_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Bool; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Decimal(org_apache_arrow_flatbuf_Decimal_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Decimal; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Date(org_apache_arrow_flatbuf_Date_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Date; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Time(org_apache_arrow_flatbuf_Time_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Time; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Timestamp(org_apache_arrow_flatbuf_Timestamp_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Timestamp; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Interval(org_apache_arrow_flatbuf_Interval_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Interval; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_List(org_apache_arrow_flatbuf_List_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_List; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Struct_(org_apache_arrow_flatbuf_Struct__ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Struct_; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Union(org_apache_arrow_flatbuf_Union_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Union; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FixedSizeBinary(org_apache_arrow_flatbuf_FixedSizeBinary_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FixedSizeBinary; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_FixedSizeList(org_apache_arrow_flatbuf_FixedSizeList_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_FixedSizeList; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Map(org_apache_arrow_flatbuf_Map_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Map; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Duration(org_apache_arrow_flatbuf_Duration_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Duration; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeBinary(org_apache_arrow_flatbuf_LargeBinary_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeBinary; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeUtf8; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } -static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) -{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } -__flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) +static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_descriptor_t *ud) +{ + switch (ud->type) { + case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Null_verify_table); /* Null */ + case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Int_verify_table); /* Int */ + case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FloatingPoint_verify_table); /* FloatingPoint */ + case 4: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Binary_verify_table); /* Binary */ + case 5: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8_verify_table); /* Utf8 */ + case 6: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Bool_verify_table); /* Bool */ + case 7: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Decimal_verify_table); /* Decimal */ + case 8: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Date_verify_table); /* Date */ + case 9: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Time_verify_table); /* Time */ + case 10: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Timestamp_verify_table); /* Timestamp */ + case 11: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Interval_verify_table); /* Interval */ + case 12: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_List_verify_table); /* List */ + case 13: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Struct__verify_table); /* Struct_ */ + case 14: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Union_verify_table); /* Union */ + case 15: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); /* FixedSizeBinary */ + case 16: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FixedSizeList_verify_table); /* FixedSizeList */ + case 17: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Map_verify_table); /* Map */ + case 18: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Duration_verify_table); /* Duration */ + case 19: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeBinary_verify_table); /* LargeBinary */ + case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ + case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ + case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ + case 23: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_BinaryView_verify_table); /* BinaryView */ + case 24: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8View_verify_table); /* Utf8View */ + case 25: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_ListView_verify_table); /* ListView */ + case 26: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeListView_verify_table); /* LargeListView */ + default: return flatcc_verify_ok; + } +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} -static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_size(const void *buf, size_t bufsiz) { - switch (u.type) { - case 1: return org_apache_arrow_flatbuf_Type_as_Null(org_apache_arrow_flatbuf_Null_clone(B, (org_apache_arrow_flatbuf_Null_table_t)u.value)); - case 2: return org_apache_arrow_flatbuf_Type_as_Int(org_apache_arrow_flatbuf_Int_clone(B, (org_apache_arrow_flatbuf_Int_table_t)u.value)); - case 3: return org_apache_arrow_flatbuf_Type_as_FloatingPoint(org_apache_arrow_flatbuf_FloatingPoint_clone(B, (org_apache_arrow_flatbuf_FloatingPoint_table_t)u.value)); - case 4: return org_apache_arrow_flatbuf_Type_as_Binary(org_apache_arrow_flatbuf_Binary_clone(B, (org_apache_arrow_flatbuf_Binary_table_t)u.value)); - case 5: return org_apache_arrow_flatbuf_Type_as_Utf8(org_apache_arrow_flatbuf_Utf8_clone(B, (org_apache_arrow_flatbuf_Utf8_table_t)u.value)); - case 6: return org_apache_arrow_flatbuf_Type_as_Bool(org_apache_arrow_flatbuf_Bool_clone(B, (org_apache_arrow_flatbuf_Bool_table_t)u.value)); - case 7: return org_apache_arrow_flatbuf_Type_as_Decimal(org_apache_arrow_flatbuf_Decimal_clone(B, (org_apache_arrow_flatbuf_Decimal_table_t)u.value)); - case 8: return org_apache_arrow_flatbuf_Type_as_Date(org_apache_arrow_flatbuf_Date_clone(B, (org_apache_arrow_flatbuf_Date_table_t)u.value)); - case 9: return org_apache_arrow_flatbuf_Type_as_Time(org_apache_arrow_flatbuf_Time_clone(B, (org_apache_arrow_flatbuf_Time_table_t)u.value)); - case 10: return org_apache_arrow_flatbuf_Type_as_Timestamp(org_apache_arrow_flatbuf_Timestamp_clone(B, (org_apache_arrow_flatbuf_Timestamp_table_t)u.value)); - case 11: return org_apache_arrow_flatbuf_Type_as_Interval(org_apache_arrow_flatbuf_Interval_clone(B, (org_apache_arrow_flatbuf_Interval_table_t)u.value)); - case 12: return org_apache_arrow_flatbuf_Type_as_List(org_apache_arrow_flatbuf_List_clone(B, (org_apache_arrow_flatbuf_List_table_t)u.value)); - case 13: return org_apache_arrow_flatbuf_Type_as_Struct_(org_apache_arrow_flatbuf_Struct__clone(B, (org_apache_arrow_flatbuf_Struct__table_t)u.value)); - case 14: return org_apache_arrow_flatbuf_Type_as_Union(org_apache_arrow_flatbuf_Union_clone(B, (org_apache_arrow_flatbuf_Union_table_t)u.value)); - case 15: return org_apache_arrow_flatbuf_Type_as_FixedSizeBinary(org_apache_arrow_flatbuf_FixedSizeBinary_clone(B, (org_apache_arrow_flatbuf_FixedSizeBinary_table_t)u.value)); - case 16: return org_apache_arrow_flatbuf_Type_as_FixedSizeList(org_apache_arrow_flatbuf_FixedSizeList_clone(B, (org_apache_arrow_flatbuf_FixedSizeList_table_t)u.value)); - case 17: return org_apache_arrow_flatbuf_Type_as_Map(org_apache_arrow_flatbuf_Map_clone(B, (org_apache_arrow_flatbuf_Map_table_t)u.value)); - case 18: return org_apache_arrow_flatbuf_Type_as_Duration(org_apache_arrow_flatbuf_Duration_clone(B, (org_apache_arrow_flatbuf_Duration_table_t)u.value)); - case 19: return org_apache_arrow_flatbuf_Type_as_LargeBinary(org_apache_arrow_flatbuf_LargeBinary_clone(B, (org_apache_arrow_flatbuf_LargeBinary_table_t)u.value)); - case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); - case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); - case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); - default: return org_apache_arrow_flatbuf_Type_as_NONE(); - } + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} -static inline org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Null_formal_args) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Null_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_Null_end(B); + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); } -static org_apache_arrow_flatbuf_Null_ref_t org_apache_arrow_flatbuf_Null_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Null_table_t t) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Null_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Null_end(B)); + return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} -static inline org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Struct__formal_args) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - if (org_apache_arrow_flatbuf_Struct__start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_Struct__end(B); + return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); } -static org_apache_arrow_flatbuf_Struct__ref_t org_apache_arrow_flatbuf_Struct__clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Struct__table_t t) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Struct__start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Struct__end(B)); + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); } +static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_List_formal_args) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_List_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_List_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } -static org_apache_arrow_flatbuf_List_ref_t org_apache_arrow_flatbuf_List_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_List_table_t t) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_List_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_List_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} -static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args) +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_LargeList_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_LargeList_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); } -static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_LargeList_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} -static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_FixedSizeList_start(B) - || org_apache_arrow_flatbuf_FixedSizeList_listSize_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_FixedSizeList_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); } -static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t) +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_FixedSizeList_start(B) - || org_apache_arrow_flatbuf_FixedSizeList_listSize_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FixedSizeList_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Map_keysSorted, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Map) +static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Map_formal_args) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Map_start(B) - || org_apache_arrow_flatbuf_Map_keysSorted_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Map_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } -static org_apache_arrow_flatbuf_Map_ref_t org_apache_arrow_flatbuf_Map_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Map_table_t t) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Map_start(B) - || org_apache_arrow_flatbuf_Map_keysSorted_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Map_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Union_mode, org_apache_arrow_flatbuf_UnionMode, org_apache_arrow_flatbuf_UnionMode_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Union) -__flatbuffers_build_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_Union_typeIds, flatbuffers_int32, int32_t, org_apache_arrow_flatbuf_Union) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} -static inline org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Union_formal_args) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Union_start(B) - || org_apache_arrow_flatbuf_Union_typeIds_add(B, v1) - || org_apache_arrow_flatbuf_Union_mode_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Union_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); } -static org_apache_arrow_flatbuf_Union_ref_t org_apache_arrow_flatbuf_Union_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Union_table_t t) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Union_start(B) - || org_apache_arrow_flatbuf_Union_typeIds_pick(B, t) - || org_apache_arrow_flatbuf_Union_mode_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Union_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Int_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Int) -__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Int_is_signed, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Int) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} -static inline org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Int_formal_args) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Int_start(B) - || org_apache_arrow_flatbuf_Int_bitWidth_add(B, v0) - || org_apache_arrow_flatbuf_Int_is_signed_add(B, v1)) { - return 0; - } - return org_apache_arrow_flatbuf_Int_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); } -static org_apache_arrow_flatbuf_Int_ref_t org_apache_arrow_flatbuf_Int_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Int_table_t t) +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Int_start(B) - || org_apache_arrow_flatbuf_Int_bitWidth_pick(B, t) - || org_apache_arrow_flatbuf_Int_is_signed_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Int_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FloatingPoint_precision, org_apache_arrow_flatbuf_Precision, org_apache_arrow_flatbuf_Precision_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_FloatingPoint) +static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FloatingPoint_formal_args) +static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_FloatingPoint_start(B) - || org_apache_arrow_flatbuf_FloatingPoint_precision_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_FloatingPoint_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); } -static org_apache_arrow_flatbuf_FloatingPoint_ref_t org_apache_arrow_flatbuf_FloatingPoint_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FloatingPoint_table_t t) +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_FloatingPoint_start(B) - || org_apache_arrow_flatbuf_FloatingPoint_precision_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FloatingPoint_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} -static inline org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8_formal_args) +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Utf8_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_Utf8_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); } -static org_apache_arrow_flatbuf_Utf8_ref_t org_apache_arrow_flatbuf_Utf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8_table_t t) +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Utf8_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); } +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} -static inline org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Binary_formal_args) +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Binary_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_Binary_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); } -static org_apache_arrow_flatbuf_Binary_ref_t org_apache_arrow_flatbuf_Binary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Binary_table_t t) +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Binary_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Binary_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); } +static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeUtf8_formal_args) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_LargeUtf8_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_LargeUtf8_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static org_apache_arrow_flatbuf_LargeUtf8_ref_t org_apache_arrow_flatbuf_LargeUtf8_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeUtf8_table_t t) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_LargeUtf8_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeUtf8_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} -static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_LargeBinary_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_LargeBinary_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_LargeBinary_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) - -static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_FixedSizeBinary_start(B) - || org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_FixedSizeBinary_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_FixedSizeBinary_start(B) - || org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_FixedSizeBinary_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Bool_formal_args) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Bool_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_Bool_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static org_apache_arrow_flatbuf_Bool_ref_t org_apache_arrow_flatbuf_Bool_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Bool_table_t t) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Bool_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Bool_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); +} -static inline org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_RunEndEncoded_formal_args) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_RunEndEncoded_start(B)) { - return 0; - } - return org_apache_arrow_flatbuf_RunEndEncoded_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static org_apache_arrow_flatbuf_RunEndEncoded_ref_t org_apache_arrow_flatbuf_RunEndEncoded_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_RunEndEncoded_table_t t) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_RunEndEncoded_start(B)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_RunEndEncoded_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Decimal_precision, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Decimal) -__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Decimal_scale, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_Decimal) -__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_Decimal_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(128), org_apache_arrow_flatbuf_Decimal) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); +} -static inline org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Decimal_formal_args) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Decimal_start(B) - || org_apache_arrow_flatbuf_Decimal_precision_add(B, v0) - || org_apache_arrow_flatbuf_Decimal_scale_add(B, v1) - || org_apache_arrow_flatbuf_Decimal_bitWidth_add(B, v2)) { - return 0; - } - return org_apache_arrow_flatbuf_Decimal_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static org_apache_arrow_flatbuf_Decimal_ref_t org_apache_arrow_flatbuf_Decimal_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Decimal_table_t t) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Decimal_start(B) - || org_apache_arrow_flatbuf_Decimal_precision_pick(B, t) - || org_apache_arrow_flatbuf_Decimal_scale_pick(B, t) - || org_apache_arrow_flatbuf_Decimal_bitWidth_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Decimal_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Date_unit, org_apache_arrow_flatbuf_DateUnit, org_apache_arrow_flatbuf_DateUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Date) +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Date_formal_args) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Date_start(B) - || org_apache_arrow_flatbuf_Date_unit_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Date_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static org_apache_arrow_flatbuf_Date_ref_t org_apache_arrow_flatbuf_Date_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Date_table_t t) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Date_start(B) - || org_apache_arrow_flatbuf_Date_unit_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Date_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Time_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Time) -__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Time_bitWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(32), org_apache_arrow_flatbuf_Time) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} -static inline org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Time_formal_args) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Time_start(B) - || org_apache_arrow_flatbuf_Time_bitWidth_add(B, v1) - || org_apache_arrow_flatbuf_Time_unit_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Time_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static org_apache_arrow_flatbuf_Time_ref_t org_apache_arrow_flatbuf_Time_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Time_table_t t) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Time_start(B) - || org_apache_arrow_flatbuf_Time_bitWidth_pick(B, t) - || org_apache_arrow_flatbuf_Time_unit_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Time_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Timestamp_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Timestamp) -__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_Timestamp_timezone, org_apache_arrow_flatbuf_Timestamp) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); +} -static inline org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Timestamp_formal_args) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Timestamp_start(B) - || org_apache_arrow_flatbuf_Timestamp_timezone_add(B, v1) - || org_apache_arrow_flatbuf_Timestamp_unit_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Timestamp_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static org_apache_arrow_flatbuf_Timestamp_ref_t org_apache_arrow_flatbuf_Timestamp_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Timestamp_table_t t) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Timestamp_start(B) - || org_apache_arrow_flatbuf_Timestamp_timezone_pick(B, t) - || org_apache_arrow_flatbuf_Timestamp_unit_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Timestamp_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Interval_unit, org_apache_arrow_flatbuf_IntervalUnit, org_apache_arrow_flatbuf_IntervalUnit_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Interval) +static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* listSize */)) return ret; + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Interval_formal_args) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Interval_start(B) - || org_apache_arrow_flatbuf_Interval_unit_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Interval_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static org_apache_arrow_flatbuf_Interval_ref_t org_apache_arrow_flatbuf_Interval_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Interval_table_t t) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Interval_start(B) - || org_apache_arrow_flatbuf_Interval_unit_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Interval_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Duration_unit, org_apache_arrow_flatbuf_TimeUnit, org_apache_arrow_flatbuf_TimeUnit_enum_t, 2, 2, INT16_C(1), org_apache_arrow_flatbuf_Duration) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} -static inline org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Duration_formal_args) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Duration_start(B) - || org_apache_arrow_flatbuf_Duration_unit_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Duration_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static org_apache_arrow_flatbuf_Duration_ref_t org_apache_arrow_flatbuf_Duration_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Duration_table_t t) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Duration_start(B) - || org_apache_arrow_flatbuf_Duration_unit_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Duration_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -__flatbuffers_build_string_field(0, flatbuffers_, org_apache_arrow_flatbuf_KeyValue_key, org_apache_arrow_flatbuf_KeyValue) -__flatbuffers_build_string_field(1, flatbuffers_, org_apache_arrow_flatbuf_KeyValue_value, org_apache_arrow_flatbuf_KeyValue) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} -static inline org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_KeyValue_formal_args) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_KeyValue_start(B) - || org_apache_arrow_flatbuf_KeyValue_key_add(B, v0) - || org_apache_arrow_flatbuf_KeyValue_value_add(B, v1)) { - return 0; - } - return org_apache_arrow_flatbuf_KeyValue_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -static org_apache_arrow_flatbuf_KeyValue_ref_t org_apache_arrow_flatbuf_KeyValue_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_KeyValue_table_t t) +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_KeyValue_start(B) - || org_apache_arrow_flatbuf_KeyValue_key_pick(B, t) - || org_apache_arrow_flatbuf_KeyValue_value_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_KeyValue_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_id, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) -__flatbuffers_build_table_field(1, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_indexType, org_apache_arrow_flatbuf_Int, org_apache_arrow_flatbuf_DictionaryEncoding) -__flatbuffers_build_scalar_field(2, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) -__flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind, org_apache_arrow_flatbuf_DictionaryKind, org_apache_arrow_flatbuf_DictionaryKind_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_DictionaryEncoding) +static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 1, 1) /* keysSorted */)) return ret; + return flatcc_verify_ok; +} -static inline org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_DictionaryEncoding_formal_args) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_DictionaryEncoding_start(B) - || org_apache_arrow_flatbuf_DictionaryEncoding_id_add(B, v0) - || org_apache_arrow_flatbuf_DictionaryEncoding_indexType_add(B, v1) - || org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind_add(B, v3) - || org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered_add(B, v2)) { - return 0; - } - return org_apache_arrow_flatbuf_DictionaryEncoding_end(B); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static org_apache_arrow_flatbuf_DictionaryEncoding_ref_t org_apache_arrow_flatbuf_DictionaryEncoding_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_DictionaryEncoding_table_t t) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_size(const void *buf, size_t bufsiz) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_DictionaryEncoding_start(B) - || org_apache_arrow_flatbuf_DictionaryEncoding_id_pick(B, t) - || org_apache_arrow_flatbuf_DictionaryEncoding_indexType_pick(B, t) - || org_apache_arrow_flatbuf_DictionaryEncoding_dictionaryKind_pick(B, t) - || org_apache_arrow_flatbuf_DictionaryEncoding_isOrdered_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_DictionaryEncoding_end(B)); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -__flatbuffers_build_string_field(0, flatbuffers_, org_apache_arrow_flatbuf_Field_name, org_apache_arrow_flatbuf_Field) -__flatbuffers_build_scalar_field(1, flatbuffers_, org_apache_arrow_flatbuf_Field_nullable, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), org_apache_arrow_flatbuf_Field) -__flatbuffers_build_union_field(3, flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, org_apache_arrow_flatbuf_Field) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Null, org_apache_arrow_flatbuf_Null) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Int, org_apache_arrow_flatbuf_Int) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FloatingPoint, org_apache_arrow_flatbuf_FloatingPoint) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Binary, org_apache_arrow_flatbuf_Binary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8, org_apache_arrow_flatbuf_Utf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Bool, org_apache_arrow_flatbuf_Bool) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Decimal, org_apache_arrow_flatbuf_Decimal) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Date, org_apache_arrow_flatbuf_Date) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Time, org_apache_arrow_flatbuf_Time) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Timestamp, org_apache_arrow_flatbuf_Timestamp) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Interval, org_apache_arrow_flatbuf_Interval) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, List, org_apache_arrow_flatbuf_List) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Struct_, org_apache_arrow_flatbuf_Struct_) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Union, org_apache_arrow_flatbuf_Union) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FixedSizeBinary, org_apache_arrow_flatbuf_FixedSizeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, FixedSizeList, org_apache_arrow_flatbuf_FixedSizeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Map, org_apache_arrow_flatbuf_Map) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Duration, org_apache_arrow_flatbuf_Duration) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeBinary, org_apache_arrow_flatbuf_LargeBinary) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) -__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) -__flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) -__flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) -__flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} -static inline org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Field_formal_args) +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - if (org_apache_arrow_flatbuf_Field_start(B) - || org_apache_arrow_flatbuf_Field_name_add(B, v0) - || org_apache_arrow_flatbuf_Field_type_add_value(B, v3) - || org_apache_arrow_flatbuf_Field_dictionary_add(B, v4) - || org_apache_arrow_flatbuf_Field_children_add(B, v5) - || org_apache_arrow_flatbuf_Field_custom_metadata_add(B, v6) - || org_apache_arrow_flatbuf_Field_nullable_add(B, v1) - || org_apache_arrow_flatbuf_Field_type_add_type(B, v3.type)) { - return 0; - } - return org_apache_arrow_flatbuf_Field_end(B); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } -static org_apache_arrow_flatbuf_Field_ref_t org_apache_arrow_flatbuf_Field_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Field_table_t t) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Field_start(B) - || org_apache_arrow_flatbuf_Field_name_pick(B, t) - || org_apache_arrow_flatbuf_Field_type_pick(B, t) - || org_apache_arrow_flatbuf_Field_dictionary_pick(B, t) - || org_apache_arrow_flatbuf_Field_children_pick(B, t) - || org_apache_arrow_flatbuf_Field_custom_metadata_pick(B, t) - || org_apache_arrow_flatbuf_Field_nullable_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Field_end(B)); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } -__flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_Schema_endianness, org_apache_arrow_flatbuf_Endianness, org_apache_arrow_flatbuf_Endianness_enum_t, 2, 2, INT16_C(0), org_apache_arrow_flatbuf_Schema) -__flatbuffers_build_table_vector_field(1, flatbuffers_, org_apache_arrow_flatbuf_Schema_fields, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Schema) -__flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Schema_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Schema) -__flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Schema_features, org_apache_arrow_flatbuf_Feature, org_apache_arrow_flatbuf_Feature_enum_t, org_apache_arrow_flatbuf_Schema) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); +} -static inline org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Schema_formal_args) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - if (org_apache_arrow_flatbuf_Schema_start(B) - || org_apache_arrow_flatbuf_Schema_fields_add(B, v1) - || org_apache_arrow_flatbuf_Schema_custom_metadata_add(B, v2) - || org_apache_arrow_flatbuf_Schema_features_add(B, v3) - || org_apache_arrow_flatbuf_Schema_endianness_add(B, v0)) { - return 0; - } - return org_apache_arrow_flatbuf_Schema_end(B); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } -static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Schema_table_t t) +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - __flatbuffers_memoize_begin(B, t); - if (org_apache_arrow_flatbuf_Schema_start(B) - || org_apache_arrow_flatbuf_Schema_fields_pick(B, t) - || org_apache_arrow_flatbuf_Schema_custom_metadata_pick(B, t) - || org_apache_arrow_flatbuf_Schema_features_pick(B, t) - || org_apache_arrow_flatbuf_Schema_endianness_pick(B, t)) { - return 0; - } - __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Schema_end(B)); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } -#include "flatcc/flatcc_epilogue.h" -#endif /* SCHEMA_BUILDER_H */ -#ifndef SCHEMA_VERIFIER_H -#define SCHEMA_VERIFIER_H +static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* mode */)) return ret; + if ((ret = flatcc_verify_vector_field(td, 1, 0, 4, 4, INT64_C(1073741823)) /* typeIds */)) return ret; + return flatcc_verify_ok; +} -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} -#ifndef SCHEMA_READER_H -#include "Schema_reader.h" -#endif -#include "flatcc/flatcc_verifier.h" -#include "flatcc/flatcc_prologue.h" +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} -static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td); -static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td); +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} -static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_descriptor_t *ud) +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - switch (ud->type) { - case 1: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Null_verify_table); /* Null */ - case 2: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Int_verify_table); /* Int */ - case 3: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FloatingPoint_verify_table); /* FloatingPoint */ - case 4: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Binary_verify_table); /* Binary */ - case 5: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8_verify_table); /* Utf8 */ - case 6: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Bool_verify_table); /* Bool */ - case 7: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Decimal_verify_table); /* Decimal */ - case 8: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Date_verify_table); /* Date */ - case 9: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Time_verify_table); /* Time */ - case 10: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Timestamp_verify_table); /* Timestamp */ - case 11: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Interval_verify_table); /* Interval */ - case 12: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_List_verify_table); /* List */ - case 13: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Struct__verify_table); /* Struct_ */ - case 14: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Union_verify_table); /* Union */ - case 15: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); /* FixedSizeBinary */ - case 16: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_FixedSizeList_verify_table); /* FixedSizeList */ - case 17: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Map_verify_table); /* Map */ - case 18: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Duration_verify_table); /* Duration */ - case 19: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeBinary_verify_table); /* LargeBinary */ - case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ - case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ - case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ - default: return flatcc_verify_ok; - } + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } -static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) { + int ret; + if ((ret = flatcc_verify_field(td, 0, 4, 4) /* bitWidth */)) return ret; + if ((ret = flatcc_verify_field(td, 1, 1, 1) /* is_signed */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } -static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; + return flatcc_verify_ok; } -static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } -static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); } -static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* listSize */)) return ret; return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); } -static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 1, 1) /* keysSorted */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); } -static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); + return flatcc_verify_ok; } -static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* mode */)) return ret; - if ((ret = flatcc_verify_vector_field(td, 1, 0, 4, 4, INT64_C(1073741823)) /* typeIds */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 4, 4) /* bitWidth */)) return ret; - if ((ret = flatcc_verify_field(td, 1, 1, 1) /* is_signed */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -12330,21 +15320,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -12355,21 +15365,41 @@ static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -12380,21 +15410,41 @@ static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12409,21 +15459,41 @@ static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12436,21 +15506,41 @@ static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); +} + static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12464,21 +15554,41 @@ static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} + static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12492,21 +15602,41 @@ static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12519,21 +15649,41 @@ static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12546,21 +15696,41 @@ static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12574,21 +15744,41 @@ static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12604,21 +15794,41 @@ static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(con return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -12636,19 +15846,39 @@ static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); } -static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); } static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -12666,27 +15896,47 @@ static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* SCHEMA_VERIFIER_H */ #ifndef SCHEMA_READER_H #define SCHEMA_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -12725,6 +15975,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_ typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_table_t; +typedef struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_table_t; +typedef struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; @@ -12761,6 +16019,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arro typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_table_t; +typedef struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; @@ -12861,6 +16127,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeList_file_extension #define org_apache_arrow_flatbuf_LargeList_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_ListView_file_identifier +#define org_apache_arrow_flatbuf_ListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_ListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_ListView_identifier +#define org_apache_arrow_flatbuf_ListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_ListView_type_hash ((flatbuffers_thash_t)0x23d37919) +#define org_apache_arrow_flatbuf_ListView_type_identifier "\x19\x79\xd3\x23" +#ifndef org_apache_arrow_flatbuf_ListView_file_extension +#define org_apache_arrow_flatbuf_ListView_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeListView_file_identifier +#define org_apache_arrow_flatbuf_LargeListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeListView_identifier +#define org_apache_arrow_flatbuf_LargeListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeListView_type_hash ((flatbuffers_thash_t)0x28efac02) +#define org_apache_arrow_flatbuf_LargeListView_type_identifier "\x02\xac\xef\x28" +#ifndef org_apache_arrow_flatbuf_LargeListView_file_extension +#define org_apache_arrow_flatbuf_LargeListView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier #define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 #endif @@ -12969,6 +16259,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension #define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_Utf8View_file_identifier +#define org_apache_arrow_flatbuf_Utf8View_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8View_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8View_identifier +#define org_apache_arrow_flatbuf_Utf8View_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8View_type_hash ((flatbuffers_thash_t)0xab7692) +#define org_apache_arrow_flatbuf_Utf8View_type_identifier "\x92\x76\xab\x00" +#ifndef org_apache_arrow_flatbuf_Utf8View_file_extension +#define org_apache_arrow_flatbuf_Utf8View_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_BinaryView_file_identifier +#define org_apache_arrow_flatbuf_BinaryView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_BinaryView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BinaryView_identifier +#define org_apache_arrow_flatbuf_BinaryView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_BinaryView_type_hash ((flatbuffers_thash_t)0x18c52428) +#define org_apache_arrow_flatbuf_BinaryView_type_identifier "\x28\x24\xc5\x18" +#ifndef org_apache_arrow_flatbuf_BinaryView_file_extension +#define org_apache_arrow_flatbuf_BinaryView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier #define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 #endif @@ -13463,6 +16777,29 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) +/** Represents the same logical types that List can, but contains offsets and + * sizes allowing for writes in any order and sharing of child values among + * list values. */ +struct org_apache_arrow_flatbuf_ListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_ListView_vec_len(org_apache_arrow_flatbuf_ListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_ListView_table_t org_apache_arrow_flatbuf_ListView_vec_at(org_apache_arrow_flatbuf_ListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_ListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_ListView) + + +/** Same as ListView, but with 64-bit offsets and sizes, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeListView_vec_len(org_apache_arrow_flatbuf_LargeListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeListView_table_t org_apache_arrow_flatbuf_LargeListView_vec_at(org_apache_arrow_flatbuf_LargeListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeListView) + + struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) @@ -13588,6 +16925,38 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) +/** Logically the same as Utf8, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_Utf8View_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8View_vec_len(org_apache_arrow_flatbuf_Utf8View_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8View_table_t org_apache_arrow_flatbuf_Utf8View_vec_at(org_apache_arrow_flatbuf_Utf8View_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8View_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8View) + + +/** Logically the same as Binary, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_BinaryView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BinaryView_vec_len(org_apache_arrow_flatbuf_BinaryView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BinaryView_table_t org_apache_arrow_flatbuf_BinaryView_vec_at(org_apache_arrow_flatbuf_BinaryView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BinaryView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BinaryView) + + struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) @@ -13782,7 +17151,7 @@ __flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, fl * no indication of how to map this information to a physical point in time. * Naive date-times must be handled with care because of this missing * information, and also because daylight saving time (DST) may make - * some values ambiguous or non-existent. A naive date-time may be + * some values ambiguous or nonexistent. A naive date-time may be * stored as a struct with Date and Time fields. However, it may also be * encoded into a Timestamp column with an empty timezone. The timestamp * values should be computed "as if" the timezone of the date-time values @@ -13860,6 +17229,10 @@ __flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) #define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) #define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) #define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +#define org_apache_arrow_flatbuf_Type_BinaryView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(23)) +#define org_apache_arrow_flatbuf_Type_Utf8View ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(24)) +#define org_apache_arrow_flatbuf_Type_ListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(25)) +#define org_apache_arrow_flatbuf_Type_LargeListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(26)) static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) { @@ -13887,6 +17260,10 @@ static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arr case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; + case org_apache_arrow_flatbuf_Type_BinaryView: return "BinaryView"; + case org_apache_arrow_flatbuf_Type_Utf8View: return "Utf8View"; + case org_apache_arrow_flatbuf_Type_ListView: return "ListView"; + case org_apache_arrow_flatbuf_Type_LargeListView: return "LargeListView"; default: return ""; } } @@ -13917,6 +17294,10 @@ static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_f case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; case org_apache_arrow_flatbuf_Type_LargeList: return 1; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; + case org_apache_arrow_flatbuf_Type_BinaryView: return 1; + case org_apache_arrow_flatbuf_Type_Utf8View: return 1; + case org_apache_arrow_flatbuf_Type_ListView: return 1; + case org_apache_arrow_flatbuf_Type_LargeListView: return 1; default: return 0; } } @@ -14008,7 +17389,7 @@ __flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, #ifndef SCHEMA_BUILDER_H #define SCHEMA_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -14099,6 +17480,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_ListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_ListView_ref_t; +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_ListView, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeListView_ref_t; +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); @@ -14144,6 +17535,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8View_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8View_ref_t; +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BinaryView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BinaryView_ref_t; +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); @@ -14229,6 +17630,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, or static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) +#define __org_apache_arrow_flatbuf_ListView_formal_args +#define __org_apache_arrow_flatbuf_ListView_call_args +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_ListView, org_apache_arrow_flatbuf_ListView_file_identifier, org_apache_arrow_flatbuf_ListView_type_identifier) + +#define __org_apache_arrow_flatbuf_LargeListView_formal_args +#define __org_apache_arrow_flatbuf_LargeListView_call_args +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, org_apache_arrow_flatbuf_LargeListView_file_identifier, org_apache_arrow_flatbuf_LargeListView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); @@ -14274,6 +17685,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) +#define __org_apache_arrow_flatbuf_Utf8View_formal_args +#define __org_apache_arrow_flatbuf_Utf8View_call_args +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, org_apache_arrow_flatbuf_Utf8View_file_identifier, org_apache_arrow_flatbuf_Utf8View_type_identifier) + +#define __org_apache_arrow_flatbuf_BinaryView_formal_args +#define __org_apache_arrow_flatbuf_BinaryView_call_args +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, org_apache_arrow_flatbuf_BinaryView_file_identifier, org_apache_arrow_flatbuf_BinaryView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); @@ -14387,6 +17808,14 @@ static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_BinaryView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8View; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_ListView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeListView; uref.value = ref; return uref; } __flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) @@ -14414,6 +17843,10 @@ static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_c case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); + case 23: return org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_clone(B, (org_apache_arrow_flatbuf_BinaryView_table_t)u.value)); + case 24: return org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_clone(B, (org_apache_arrow_flatbuf_Utf8View_table_t)u.value)); + case 25: return org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_clone(B, (org_apache_arrow_flatbuf_ListView_table_t)u.value)); + case 26: return org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_clone(B, (org_apache_arrow_flatbuf_LargeListView_table_t)u.value)); default: return org_apache_arrow_flatbuf_Type_as_NONE(); } } @@ -14490,6 +17923,42 @@ static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeLi __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); } + +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args) +{ + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_ListView_end(B); +} + +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_ListView_end(B)); +} + + +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeListView_end(B); +} + +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeListView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) @@ -14673,6 +18142,42 @@ static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_Large __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); } + +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8View_end(B); +} + +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8View_end(B)); +} + + +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args) +{ + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_BinaryView_end(B); +} + +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BinaryView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) @@ -14947,6 +18452,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) @@ -15016,7 +18525,7 @@ static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clo #ifndef SCHEMA_VERIFIER_H #define SCHEMA_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -15028,6 +18537,8 @@ static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -15037,6 +18548,8 @@ static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -15076,128 +18589,322 @@ static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_de case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ + case 23: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_BinaryView_verify_table); /* BinaryView */ + case 24: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8View_verify_table); /* Utf8View */ + case 25: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_ListView_verify_table); /* ListView */ + case 26: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeListView_verify_table); /* LargeListView */ default: return flatcc_verify_ok; } } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); +} + +static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -15212,21 +18919,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15239,21 +18966,41 @@ static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, s return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); +} + static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15267,21 +19014,41 @@ static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); +} + static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15295,21 +19062,41 @@ static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, s return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); +} + static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); } +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); +} + static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15322,119 +19109,309 @@ static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); } +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_ok; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -15449,21 +19426,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -15474,21 +19471,41 @@ static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -15499,21 +19516,41 @@ static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15528,21 +19565,41 @@ static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15555,21 +19612,41 @@ static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); +} + static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15583,21 +19660,41 @@ static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} + static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15611,21 +19708,41 @@ static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15638,21 +19755,41 @@ static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15665,21 +19802,41 @@ static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15693,21 +19850,41 @@ static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15723,21 +19900,41 @@ static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(con return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15755,21 +19952,41 @@ static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -15785,27 +20002,47 @@ static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* SCHEMA_VERIFIER_H */ #ifndef TENSOR_READER_H #define TENSOR_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -15902,7 +20139,7 @@ __flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_Tensor, data, org_ #ifndef TENSOR_BUILDER_H #define TENSOR_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef TENSOR_READER_H #include "Tensor_reader.h" @@ -15988,6 +20225,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Tensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_Tensor) __flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Tensor_strides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_Tensor) __flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_Tensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Tensor) @@ -16023,7 +20264,7 @@ static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clo #ifndef TENSOR_VERIFIER_H #define TENSOR_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef TENSOR_READER_H #include "Tensor_reader.h" @@ -16050,21 +20291,41 @@ static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -16080,27 +20341,47 @@ static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* TENSOR_VERIFIER_H */ #ifndef SPARSETENSOR_READER_H #define SPARSETENSOR_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -16450,7 +20731,7 @@ __flatbuffers_define_struct_field(6, org_apache_arrow_flatbuf_SparseTensor, data #ifndef SPARSETENSOR_BUILDER_H #define SPARSETENSOR_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SPARSETENSOR_READER_H #include "SparseTensor_reader.h" @@ -16662,6 +20943,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_SparseTensor) __flatbuffers_build_scalar_field(3, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_non_zero_length, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), org_apache_arrow_flatbuf_SparseTensor) __flatbuffers_build_union_field(5, flatbuffers_, org_apache_arrow_flatbuf_SparseTensor_sparseIndex, org_apache_arrow_flatbuf_SparseTensorIndex, org_apache_arrow_flatbuf_SparseTensor) @@ -16704,7 +20989,7 @@ static org_apache_arrow_flatbuf_SparseTensor_ref_t org_apache_arrow_flatbuf_Spar #ifndef SPARSETENSOR_VERIFIER_H #define SPARSETENSOR_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SPARSETENSOR_READER_H #include "SparseTensor_reader.h" @@ -16745,21 +21030,41 @@ static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root(c return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCOO_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCOO_verify_table); +} + static int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -16776,21 +21081,41 @@ static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root(c return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseMatrixIndexCSX_type_identifier, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseMatrixIndexCSX_verify_table); +} + static int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -16807,21 +21132,41 @@ static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root(c return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensorIndexCSF_type_identifier, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensorIndexCSF_verify_table); +} + static int org_apache_arrow_flatbuf_SparseTensor_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -16838,27 +21183,47 @@ static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root(const voi return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_type_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_SparseTensor_type_identifier, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensor_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensor_verify_table); } +static inline int org_apache_arrow_flatbuf_SparseTensor_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_SparseTensor_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* SPARSETENSOR_VERIFIER_H */ #ifndef SCHEMA_READER_H #define SCHEMA_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -16897,6 +21262,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_ typedef struct org_apache_arrow_flatbuf_LargeList_table *org_apache_arrow_flatbuf_LargeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeList_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_table_t; +typedef struct org_apache_arrow_flatbuf_ListView_table *org_apache_arrow_flatbuf_ListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_ListView_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_table_t; +typedef struct org_apache_arrow_flatbuf_LargeListView_table *org_apache_arrow_flatbuf_LargeListView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeListView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeList_table *org_apache_arrow_flatbuf_FixedSizeList_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeList_vec_t; @@ -16933,6 +21306,14 @@ typedef const struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arro typedef struct org_apache_arrow_flatbuf_LargeBinary_table *org_apache_arrow_flatbuf_LargeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_vec_t; typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_LargeBinary_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_table_t; +typedef struct org_apache_arrow_flatbuf_Utf8View_table *org_apache_arrow_flatbuf_Utf8View_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Utf8View_mutable_vec_t; +typedef const struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_table_t; +typedef struct org_apache_arrow_flatbuf_BinaryView_table *org_apache_arrow_flatbuf_BinaryView_mutable_table_t; +typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_vec_t; +typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_BinaryView_mutable_vec_t; typedef const struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_table_t; typedef struct org_apache_arrow_flatbuf_FixedSizeBinary_table *org_apache_arrow_flatbuf_FixedSizeBinary_mutable_table_t; typedef const flatbuffers_uoffset_t *org_apache_arrow_flatbuf_FixedSizeBinary_vec_t; @@ -17033,6 +21414,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeList_file_extension #define org_apache_arrow_flatbuf_LargeList_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_ListView_file_identifier +#define org_apache_arrow_flatbuf_ListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_ListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_ListView_identifier +#define org_apache_arrow_flatbuf_ListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_ListView_type_hash ((flatbuffers_thash_t)0x23d37919) +#define org_apache_arrow_flatbuf_ListView_type_identifier "\x19\x79\xd3\x23" +#ifndef org_apache_arrow_flatbuf_ListView_file_extension +#define org_apache_arrow_flatbuf_ListView_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_LargeListView_file_identifier +#define org_apache_arrow_flatbuf_LargeListView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_LargeListView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_LargeListView_identifier +#define org_apache_arrow_flatbuf_LargeListView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_LargeListView_type_hash ((flatbuffers_thash_t)0x28efac02) +#define org_apache_arrow_flatbuf_LargeListView_type_identifier "\x02\xac\xef\x28" +#ifndef org_apache_arrow_flatbuf_LargeListView_file_extension +#define org_apache_arrow_flatbuf_LargeListView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeList_file_identifier #define org_apache_arrow_flatbuf_FixedSizeList_file_identifier 0 #endif @@ -17141,6 +21546,30 @@ typedef flatbuffers_uoffset_t *org_apache_arrow_flatbuf_Schema_mutable_vec_t; #ifndef org_apache_arrow_flatbuf_LargeBinary_file_extension #define org_apache_arrow_flatbuf_LargeBinary_file_extension "bin" #endif +#ifndef org_apache_arrow_flatbuf_Utf8View_file_identifier +#define org_apache_arrow_flatbuf_Utf8View_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_Utf8View_file_identifier */ +#ifndef org_apache_arrow_flatbuf_Utf8View_identifier +#define org_apache_arrow_flatbuf_Utf8View_identifier 0 +#endif +#define org_apache_arrow_flatbuf_Utf8View_type_hash ((flatbuffers_thash_t)0xab7692) +#define org_apache_arrow_flatbuf_Utf8View_type_identifier "\x92\x76\xab\x00" +#ifndef org_apache_arrow_flatbuf_Utf8View_file_extension +#define org_apache_arrow_flatbuf_Utf8View_file_extension "bin" +#endif +#ifndef org_apache_arrow_flatbuf_BinaryView_file_identifier +#define org_apache_arrow_flatbuf_BinaryView_file_identifier 0 +#endif +/* deprecated, use org_apache_arrow_flatbuf_BinaryView_file_identifier */ +#ifndef org_apache_arrow_flatbuf_BinaryView_identifier +#define org_apache_arrow_flatbuf_BinaryView_identifier 0 +#endif +#define org_apache_arrow_flatbuf_BinaryView_type_hash ((flatbuffers_thash_t)0x18c52428) +#define org_apache_arrow_flatbuf_BinaryView_type_identifier "\x28\x24\xc5\x18" +#ifndef org_apache_arrow_flatbuf_BinaryView_file_extension +#define org_apache_arrow_flatbuf_BinaryView_file_extension "bin" +#endif #ifndef org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier #define org_apache_arrow_flatbuf_FixedSizeBinary_file_identifier 0 #endif @@ -17635,6 +22064,29 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeList_table_t, vec, i, __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeList) +/** Represents the same logical types that List can, but contains offsets and + * sizes allowing for writes in any order and sharing of child values among + * list values. */ +struct org_apache_arrow_flatbuf_ListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_ListView_vec_len(org_apache_arrow_flatbuf_ListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_ListView_table_t org_apache_arrow_flatbuf_ListView_vec_at(org_apache_arrow_flatbuf_ListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_ListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_ListView) + + +/** Same as ListView, but with 64-bit offsets and sizes, allowing to represent + * extremely large data values. */ +struct org_apache_arrow_flatbuf_LargeListView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_LargeListView_vec_len(org_apache_arrow_flatbuf_LargeListView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_LargeListView_table_t org_apache_arrow_flatbuf_LargeListView_vec_at(org_apache_arrow_flatbuf_LargeListView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeListView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeListView) + + struct org_apache_arrow_flatbuf_FixedSizeList_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeList_vec_len(org_apache_arrow_flatbuf_FixedSizeList_vec_t vec) @@ -17760,6 +22212,38 @@ __flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_LargeBinary_table_t, vec, i __flatbuffers_table_as_root(org_apache_arrow_flatbuf_LargeBinary) +/** Logically the same as Utf8, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_Utf8View_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_Utf8View_vec_len(org_apache_arrow_flatbuf_Utf8View_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_Utf8View_table_t org_apache_arrow_flatbuf_Utf8View_vec_at(org_apache_arrow_flatbuf_Utf8View_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_Utf8View_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_Utf8View) + + +/** Logically the same as Binary, but the internal representation uses a view + * struct that contains the string length and either the string's entire data + * inline (for small strings) or an inlined prefix, an index of another buffer, + * and an offset pointing to a slice in that buffer (for non-small strings). + * + * Since it uses a variable number of data buffers, each Field with this type + * must have a corresponding entry in `variadicBufferCounts`. */ +struct org_apache_arrow_flatbuf_BinaryView_table { uint8_t unused__; }; + +static inline size_t org_apache_arrow_flatbuf_BinaryView_vec_len(org_apache_arrow_flatbuf_BinaryView_vec_t vec) +__flatbuffers_vec_len(vec) +static inline org_apache_arrow_flatbuf_BinaryView_table_t org_apache_arrow_flatbuf_BinaryView_vec_at(org_apache_arrow_flatbuf_BinaryView_vec_t vec, size_t i) +__flatbuffers_offset_vec_at(org_apache_arrow_flatbuf_BinaryView_table_t, vec, i, 0) +__flatbuffers_table_as_root(org_apache_arrow_flatbuf_BinaryView) + + struct org_apache_arrow_flatbuf_FixedSizeBinary_table { uint8_t unused__; }; static inline size_t org_apache_arrow_flatbuf_FixedSizeBinary_vec_len(org_apache_arrow_flatbuf_FixedSizeBinary_vec_t vec) @@ -17954,7 +22438,7 @@ __flatbuffers_define_scalar_field(1, org_apache_arrow_flatbuf_Time, bitWidth, fl * no indication of how to map this information to a physical point in time. * Naive date-times must be handled with care because of this missing * information, and also because daylight saving time (DST) may make - * some values ambiguous or non-existent. A naive date-time may be + * some values ambiguous or nonexistent. A naive date-time may be * stored as a struct with Date and Time fields. However, it may also be * encoded into a Timestamp column with an empty timezone. The timestamp * values should be computed "as if" the timezone of the date-time values @@ -18032,6 +22516,10 @@ __flatbuffers_define_union(flatbuffers_, org_apache_arrow_flatbuf_Type) #define org_apache_arrow_flatbuf_Type_LargeUtf8 ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(20)) #define org_apache_arrow_flatbuf_Type_LargeList ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(21)) #define org_apache_arrow_flatbuf_Type_RunEndEncoded ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(22)) +#define org_apache_arrow_flatbuf_Type_BinaryView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(23)) +#define org_apache_arrow_flatbuf_Type_Utf8View ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(24)) +#define org_apache_arrow_flatbuf_Type_ListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(25)) +#define org_apache_arrow_flatbuf_Type_LargeListView ((org_apache_arrow_flatbuf_Type_union_type_t)UINT8_C(26)) static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arrow_flatbuf_Type_union_type_t type) { @@ -18059,6 +22547,10 @@ static inline const char *org_apache_arrow_flatbuf_Type_type_name(org_apache_arr case org_apache_arrow_flatbuf_Type_LargeUtf8: return "LargeUtf8"; case org_apache_arrow_flatbuf_Type_LargeList: return "LargeList"; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return "RunEndEncoded"; + case org_apache_arrow_flatbuf_Type_BinaryView: return "BinaryView"; + case org_apache_arrow_flatbuf_Type_Utf8View: return "Utf8View"; + case org_apache_arrow_flatbuf_Type_ListView: return "ListView"; + case org_apache_arrow_flatbuf_Type_LargeListView: return "LargeListView"; default: return ""; } } @@ -18089,6 +22581,10 @@ static inline int org_apache_arrow_flatbuf_Type_is_known_type(org_apache_arrow_f case org_apache_arrow_flatbuf_Type_LargeUtf8: return 1; case org_apache_arrow_flatbuf_Type_LargeList: return 1; case org_apache_arrow_flatbuf_Type_RunEndEncoded: return 1; + case org_apache_arrow_flatbuf_Type_BinaryView: return 1; + case org_apache_arrow_flatbuf_Type_Utf8View: return 1; + case org_apache_arrow_flatbuf_Type_ListView: return 1; + case org_apache_arrow_flatbuf_Type_LargeListView: return 1; default: return 0; } } @@ -18180,7 +22676,7 @@ __flatbuffers_define_vector_field(3, org_apache_arrow_flatbuf_Schema, features, #ifndef SCHEMA_BUILDER_H #define SCHEMA_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -18271,6 +22767,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeList_ref_t; static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeList_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeList, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_ListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_ListView_ref_t; +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_ListView, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_LargeListView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeListView_ref_t; +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeList_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeList_ref_t; static org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeList_table_t t); @@ -18316,6 +22822,16 @@ typedef flatbuffers_ref_t org_apache_arrow_flatbuf_LargeBinary_ref_t; static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeBinary_table_t t); __flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, 0) +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_Utf8View_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_Utf8View_ref_t; +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, 0) + +static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_BinaryView_required[] = { 0 }; +typedef flatbuffers_ref_t org_apache_arrow_flatbuf_BinaryView_ref_t; +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t); +__flatbuffers_build_table(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, 0) + static const flatbuffers_voffset_t __org_apache_arrow_flatbuf_FixedSizeBinary_required[] = { 0 }; typedef flatbuffers_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_ref_t; static org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_FixedSizeBinary_table_t t); @@ -18401,6 +22917,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_List, or static inline org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeList_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeList, org_apache_arrow_flatbuf_LargeList_file_identifier, org_apache_arrow_flatbuf_LargeList_type_identifier) +#define __org_apache_arrow_flatbuf_ListView_formal_args +#define __org_apache_arrow_flatbuf_ListView_call_args +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_ListView, org_apache_arrow_flatbuf_ListView_file_identifier, org_apache_arrow_flatbuf_ListView_type_identifier) + +#define __org_apache_arrow_flatbuf_LargeListView_formal_args +#define __org_apache_arrow_flatbuf_LargeListView_call_args +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeListView, org_apache_arrow_flatbuf_LargeListView_file_identifier, org_apache_arrow_flatbuf_LargeListView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeList_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeList_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args); @@ -18446,6 +22972,16 @@ __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeUtf static inline org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_LargeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeBinary_formal_args); __flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_LargeBinary, org_apache_arrow_flatbuf_LargeBinary_file_identifier, org_apache_arrow_flatbuf_LargeBinary_type_identifier) +#define __org_apache_arrow_flatbuf_Utf8View_formal_args +#define __org_apache_arrow_flatbuf_Utf8View_call_args +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_Utf8View, org_apache_arrow_flatbuf_Utf8View_file_identifier, org_apache_arrow_flatbuf_Utf8View_type_identifier) + +#define __org_apache_arrow_flatbuf_BinaryView_formal_args +#define __org_apache_arrow_flatbuf_BinaryView_call_args +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args); +__flatbuffers_build_table_prolog(flatbuffers_, org_apache_arrow_flatbuf_BinaryView, org_apache_arrow_flatbuf_BinaryView_file_identifier, org_apache_arrow_flatbuf_BinaryView_type_identifier) + #define __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args , int32_t v0 #define __org_apache_arrow_flatbuf_FixedSizeBinary_call_args , v0 static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args); @@ -18559,6 +23095,14 @@ static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeList; uref.value = ref; return uref; } static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_ref_t ref) { org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_RunEndEncoded; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_BinaryView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_Utf8View; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_ListView; uref.value = ref; return uref; } +static inline org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_ref_t ref) +{ org_apache_arrow_flatbuf_Type_union_ref_t uref; uref.type = org_apache_arrow_flatbuf_Type_LargeListView; uref.value = ref; return uref; } __flatbuffers_build_union_vector(flatbuffers_, org_apache_arrow_flatbuf_Type) static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Type_union_t u) @@ -18586,6 +23130,10 @@ static org_apache_arrow_flatbuf_Type_union_ref_t org_apache_arrow_flatbuf_Type_c case 20: return org_apache_arrow_flatbuf_Type_as_LargeUtf8(org_apache_arrow_flatbuf_LargeUtf8_clone(B, (org_apache_arrow_flatbuf_LargeUtf8_table_t)u.value)); case 21: return org_apache_arrow_flatbuf_Type_as_LargeList(org_apache_arrow_flatbuf_LargeList_clone(B, (org_apache_arrow_flatbuf_LargeList_table_t)u.value)); case 22: return org_apache_arrow_flatbuf_Type_as_RunEndEncoded(org_apache_arrow_flatbuf_RunEndEncoded_clone(B, (org_apache_arrow_flatbuf_RunEndEncoded_table_t)u.value)); + case 23: return org_apache_arrow_flatbuf_Type_as_BinaryView(org_apache_arrow_flatbuf_BinaryView_clone(B, (org_apache_arrow_flatbuf_BinaryView_table_t)u.value)); + case 24: return org_apache_arrow_flatbuf_Type_as_Utf8View(org_apache_arrow_flatbuf_Utf8View_clone(B, (org_apache_arrow_flatbuf_Utf8View_table_t)u.value)); + case 25: return org_apache_arrow_flatbuf_Type_as_ListView(org_apache_arrow_flatbuf_ListView_clone(B, (org_apache_arrow_flatbuf_ListView_table_t)u.value)); + case 26: return org_apache_arrow_flatbuf_Type_as_LargeListView(org_apache_arrow_flatbuf_LargeListView_clone(B, (org_apache_arrow_flatbuf_LargeListView_table_t)u.value)); default: return org_apache_arrow_flatbuf_Type_as_NONE(); } } @@ -18662,6 +23210,42 @@ static org_apache_arrow_flatbuf_LargeList_ref_t org_apache_arrow_flatbuf_LargeLi __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeList_end(B)); } + +static inline org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_ListView_formal_args) +{ + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_ListView_end(B); +} + +static org_apache_arrow_flatbuf_ListView_ref_t org_apache_arrow_flatbuf_ListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_ListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_ListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_ListView_end(B)); +} + + +static inline org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_LargeListView_formal_args) +{ + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_LargeListView_end(B); +} + +static org_apache_arrow_flatbuf_LargeListView_ref_t org_apache_arrow_flatbuf_LargeListView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_LargeListView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_LargeListView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeListView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeList_listSize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeList) static inline org_apache_arrow_flatbuf_FixedSizeList_ref_t org_apache_arrow_flatbuf_FixedSizeList_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeList_formal_args) @@ -18845,6 +23429,42 @@ static org_apache_arrow_flatbuf_LargeBinary_ref_t org_apache_arrow_flatbuf_Large __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_LargeBinary_end(B)); } + +static inline org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_Utf8View_formal_args) +{ + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_Utf8View_end(B); +} + +static org_apache_arrow_flatbuf_Utf8View_ref_t org_apache_arrow_flatbuf_Utf8View_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_Utf8View_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_Utf8View_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_Utf8View_end(B)); +} + + +static inline org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_BinaryView_formal_args) +{ + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + return org_apache_arrow_flatbuf_BinaryView_end(B); +} + +static org_apache_arrow_flatbuf_BinaryView_ref_t org_apache_arrow_flatbuf_BinaryView_clone(flatbuffers_builder_t *B, org_apache_arrow_flatbuf_BinaryView_table_t t) +{ + __flatbuffers_memoize_begin(B, t); + if (org_apache_arrow_flatbuf_BinaryView_start(B)) { + return 0; + } + __flatbuffers_memoize_end(B, t, org_apache_arrow_flatbuf_BinaryView_end(B)); +} + __flatbuffers_build_scalar_field(0, flatbuffers_, org_apache_arrow_flatbuf_FixedSizeBinary_byteWidth, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), org_apache_arrow_flatbuf_FixedSizeBinary) static inline org_apache_arrow_flatbuf_FixedSizeBinary_ref_t org_apache_arrow_flatbuf_FixedSizeBinary_create(flatbuffers_builder_t *B __org_apache_arrow_flatbuf_FixedSizeBinary_formal_args) @@ -19119,6 +23739,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Field_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_field(4, flatbuffers_, org_apache_arrow_flatbuf_Field_dictionary, org_apache_arrow_flatbuf_DictionaryEncoding, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(5, flatbuffers_, org_apache_arrow_flatbuf_Field_children, org_apache_arrow_flatbuf_Field, org_apache_arrow_flatbuf_Field) __flatbuffers_build_table_vector_field(6, flatbuffers_, org_apache_arrow_flatbuf_Field_custom_metadata, org_apache_arrow_flatbuf_KeyValue, org_apache_arrow_flatbuf_Field) @@ -19188,7 +23812,7 @@ static org_apache_arrow_flatbuf_Schema_ref_t org_apache_arrow_flatbuf_Schema_clo #ifndef SCHEMA_VERIFIER_H #define SCHEMA_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef SCHEMA_READER_H #include "Schema_reader.h" @@ -19200,6 +23824,8 @@ static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -19209,6 +23835,8 @@ static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_desc static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td); +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td); static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td); @@ -19248,6 +23876,10 @@ static int org_apache_arrow_flatbuf_Type_union_verifier(flatcc_union_verifier_de case 20: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeUtf8_verify_table); /* LargeUtf8 */ case 21: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeList_verify_table); /* LargeList */ case 22: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_RunEndEncoded_verify_table); /* RunEndEncoded */ + case 23: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_BinaryView_verify_table); /* BinaryView */ + case 24: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_Utf8View_verify_table); /* Utf8View */ + case 25: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_ListView_verify_table); /* ListView */ + case 26: return flatcc_verify_union_table(ud, org_apache_arrow_flatbuf_LargeListView_verify_table); /* LargeListView */ default: return flatcc_verify_ok; } } @@ -19257,119 +23889,309 @@ static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root(const void *buf return flatcc_verify_struct_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_identifier, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_struct_as_typed_root(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); } +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Buffer_type_hash, 16, 8); +} + static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); + return flatcc_verify_struct_as_typed_root(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_struct_as_typed_root_with_size(buf, bufsiz, thash, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); +} + +static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_struct_as_root_with_size(buf, bufsiz, fid, 16, 8); +} + +static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); +} + +static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); +} + +static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + +static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Buffer_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_struct_as_root(buf, bufsiz, fid, 16, 8); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static int org_apache_arrow_flatbuf_Null_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_ListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Null_type_identifier, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Null_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Null_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_Struct__verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_ListView_type_identifier, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Struct__type_identifier, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_Struct__verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Struct__verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static int org_apache_arrow_flatbuf_List_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_ListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_ListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_LargeListView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_List_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_List_type_identifier, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_List_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_List_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static int org_apache_arrow_flatbuf_LargeList_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeListView_type_identifier, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeList_type_identifier, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeListView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeList_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeListView_verify_table); } static int org_apache_arrow_flatbuf_FixedSizeList_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -19384,21 +24206,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeList_type_identifier, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeList_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeList_verify_table); +} + static int org_apache_arrow_flatbuf_Map_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19411,21 +24253,41 @@ static inline int org_apache_arrow_flatbuf_Map_verify_as_root(const void *buf, s return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Map_type_identifier, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Map_verify_table); +} + static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); } +static inline int org_apache_arrow_flatbuf_Map_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Map_verify_table); +} + static int org_apache_arrow_flatbuf_Union_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19439,21 +24301,41 @@ static inline int org_apache_arrow_flatbuf_Union_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Union_type_identifier, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Union_verify_table); +} + static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); } +static inline int org_apache_arrow_flatbuf_Union_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Union_verify_table); +} + static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19462,151 +24344,361 @@ static int org_apache_arrow_flatbuf_Int_verify_table(flatcc_table_verifier_descr return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Int_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); +} + +static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + int ret; + if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); +} + +static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); +} + +static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); +} + +static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +{ + return flatcc_verify_ok; +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); +} + +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Int_type_identifier, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Int_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Int_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_FloatingPoint_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) { - int ret; - if ((ret = flatcc_verify_field(td, 0, 2, 2) /* precision */)) return ret; - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FloatingPoint_type_identifier, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_FloatingPoint_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FloatingPoint_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static int org_apache_arrow_flatbuf_Utf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_Utf8View_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8_type_identifier, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Utf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_Binary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Utf8View_type_identifier, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Binary_type_identifier, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_Binary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Binary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static int org_apache_arrow_flatbuf_LargeUtf8_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_Utf8View_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_ok; + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Utf8View_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root(const void *buf, size_t bufsiz) +static int org_apache_arrow_flatbuf_BinaryView_verify_table(flatcc_table_verifier_descriptor_t *td) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_ok; } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeUtf8_type_identifier, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeUtf8_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root(const void *buf, size_t bufsiz) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeUtf8_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static int org_apache_arrow_flatbuf_LargeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) { - return flatcc_verify_ok; + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_BinaryView_type_identifier, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) { - return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_LargeBinary_type_identifier, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } -static inline int org_apache_arrow_flatbuf_LargeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +static inline int org_apache_arrow_flatbuf_BinaryView_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { - return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_LargeBinary_verify_table); + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_BinaryView_verify_table); } static int org_apache_arrow_flatbuf_FixedSizeBinary_verify_table(flatcc_table_verifier_descriptor_t *td) @@ -19621,21 +24713,41 @@ static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root(const return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_FixedSizeBinary_type_identifier, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); } +static inline int org_apache_arrow_flatbuf_FixedSizeBinary_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_FixedSizeBinary_verify_table); +} + static int org_apache_arrow_flatbuf_Bool_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -19646,21 +24758,41 @@ static inline int org_apache_arrow_flatbuf_Bool_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Bool_type_identifier, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); } +static inline int org_apache_arrow_flatbuf_Bool_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Bool_verify_table); +} + static int org_apache_arrow_flatbuf_RunEndEncoded_verify_table(flatcc_table_verifier_descriptor_t *td) { return flatcc_verify_ok; @@ -19671,21 +24803,41 @@ static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root(const vo return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_RunEndEncoded_type_identifier, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); } +static inline int org_apache_arrow_flatbuf_RunEndEncoded_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_RunEndEncoded_verify_table); +} + static int org_apache_arrow_flatbuf_Decimal_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19700,21 +24852,41 @@ static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root(const void *bu return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Decimal_type_identifier, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); } +static inline int org_apache_arrow_flatbuf_Decimal_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Decimal_verify_table); +} + static int org_apache_arrow_flatbuf_Date_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19727,21 +24899,41 @@ static inline int org_apache_arrow_flatbuf_Date_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Date_type_identifier, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Date_verify_table); +} + static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); } +static inline int org_apache_arrow_flatbuf_Date_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Date_verify_table); +} + static int org_apache_arrow_flatbuf_Time_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19755,21 +24947,41 @@ static inline int org_apache_arrow_flatbuf_Time_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Time_type_identifier, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Time_verify_table); +} + static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); } +static inline int org_apache_arrow_flatbuf_Time_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Time_verify_table); +} + static int org_apache_arrow_flatbuf_Timestamp_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19783,21 +24995,41 @@ static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Timestamp_type_identifier, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); } +static inline int org_apache_arrow_flatbuf_Timestamp_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Timestamp_verify_table); +} + static int org_apache_arrow_flatbuf_Interval_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19810,21 +25042,41 @@ static inline int org_apache_arrow_flatbuf_Interval_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Interval_type_identifier, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); } +static inline int org_apache_arrow_flatbuf_Interval_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Interval_verify_table); +} + static int org_apache_arrow_flatbuf_Duration_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19837,21 +25089,41 @@ static inline int org_apache_arrow_flatbuf_Duration_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Duration_type_identifier, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); } +static inline int org_apache_arrow_flatbuf_Duration_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Duration_verify_table); +} + static int org_apache_arrow_flatbuf_KeyValue_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19865,21 +25137,41 @@ static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root(const void *b return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_KeyValue_type_identifier, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); } +static inline int org_apache_arrow_flatbuf_KeyValue_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_KeyValue_verify_table); +} + static int org_apache_arrow_flatbuf_DictionaryEncoding_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19895,21 +25187,41 @@ static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root(con return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_DictionaryEncoding_type_identifier, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); } +static inline int org_apache_arrow_flatbuf_DictionaryEncoding_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_DictionaryEncoding_verify_table); +} + static int org_apache_arrow_flatbuf_Field_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19927,21 +25239,41 @@ static inline int org_apache_arrow_flatbuf_Field_verify_as_root(const void *buf, return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Field_type_identifier, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Field_verify_table); +} + static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); } +static inline int org_apache_arrow_flatbuf_Field_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Field_verify_table); +} + static int org_apache_arrow_flatbuf_Schema_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -19957,27 +25289,47 @@ static inline int org_apache_arrow_flatbuf_Schema_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Schema_type_identifier, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Schema_verify_table); +} + static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); } +static inline int org_apache_arrow_flatbuf_Schema_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Schema_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* SCHEMA_VERIFIER_H */ #ifndef TENSOR_READER_H #define TENSOR_READER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef FLATBUFFERS_COMMON_READER_H #include "flatbuffers_common_reader.h" @@ -20074,7 +25426,7 @@ __flatbuffers_define_struct_field(4, org_apache_arrow_flatbuf_Tensor, data, org_ #ifndef TENSOR_BUILDER_H #define TENSOR_BUILDER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef TENSOR_READER_H #include "Tensor_reader.h" @@ -20160,6 +25512,10 @@ __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatb __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeUtf8, org_apache_arrow_flatbuf_LargeUtf8) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeList, org_apache_arrow_flatbuf_LargeList) __flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, RunEndEncoded, org_apache_arrow_flatbuf_RunEndEncoded) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, BinaryView, org_apache_arrow_flatbuf_BinaryView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, Utf8View, org_apache_arrow_flatbuf_Utf8View) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, ListView, org_apache_arrow_flatbuf_ListView) +__flatbuffers_build_union_table_value_field(flatbuffers_, org_apache_arrow_flatbuf_Tensor_type, org_apache_arrow_flatbuf_Type, LargeListView, org_apache_arrow_flatbuf_LargeListView) __flatbuffers_build_table_vector_field(2, flatbuffers_, org_apache_arrow_flatbuf_Tensor_shape, org_apache_arrow_flatbuf_TensorDim, org_apache_arrow_flatbuf_Tensor) __flatbuffers_build_vector_field(3, flatbuffers_, org_apache_arrow_flatbuf_Tensor_strides, flatbuffers_int64, int64_t, org_apache_arrow_flatbuf_Tensor) __flatbuffers_build_struct_field(4, flatbuffers_, org_apache_arrow_flatbuf_Tensor_data, org_apache_arrow_flatbuf_Buffer, 16, 8, org_apache_arrow_flatbuf_Tensor) @@ -20195,7 +25551,7 @@ static org_apache_arrow_flatbuf_Tensor_ref_t org_apache_arrow_flatbuf_Tensor_clo #ifndef TENSOR_VERIFIER_H #define TENSOR_VERIFIER_H -/* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ +/* Generated by flatcc 0.6.2 FlatBuffers schema compiler for C by dvide.com */ #ifndef TENSOR_READER_H #include "Tensor_reader.h" @@ -20222,21 +25578,41 @@ static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root(const void * return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_TensorDim_type_identifier, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); } +static inline int org_apache_arrow_flatbuf_TensorDim_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_TensorDim_verify_table); +} + static int org_apache_arrow_flatbuf_Tensor_verify_table(flatcc_table_verifier_descriptor_t *td) { int ret; @@ -20252,20 +25628,40 @@ static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root(const void *buf return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root(const void *buf, size_t bufsiz) { return flatcc_verify_table_as_root(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_typed_root_with_size(const void *buf, size_t bufsiz) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, org_apache_arrow_flatbuf_Tensor_type_identifier, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier(const void *buf, size_t bufsiz, const char *fid) { return flatcc_verify_table_as_root(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_identifier_and_size(const void *buf, size_t bufsiz, const char *fid) +{ + return flatcc_verify_table_as_root_with_size(buf, bufsiz, fid, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { return flatcc_verify_table_as_typed_root(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); } +static inline int org_apache_arrow_flatbuf_Tensor_verify_as_root_with_type_hash_and_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) +{ + return flatcc_verify_table_as_typed_root_with_size(buf, bufsiz, thash, &org_apache_arrow_flatbuf_Tensor_verify_table); +} + #include "flatcc/flatcc_epilogue.h" #endif /* TENSOR_VERIFIER_H */ diff --git a/thirdparty/flatcc/include/flatcc/flatcc_accessors.h b/thirdparty/flatcc/include/flatcc/flatcc_accessors.h index 084ecb1b1..51f6e346c 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_accessors.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_accessors.h @@ -9,6 +9,7 @@ extern "C" { #include #endif + #define __flatcc_basic_scalar_accessors_impl(N, T, W, E) \ static inline size_t N ## __size(void) \ { return sizeof(T); } \ @@ -17,22 +18,22 @@ static inline T *N ## __ptr_add(T *p, size_t i) \ static inline const T *N ## __const_ptr_add(const T *p, size_t i) \ { return p + i; } \ static inline T N ## _read_from_pe(const void *p) \ -{ return N ## _cast_from_pe(*(T *)p); } \ +{ return N ## _cast_from_pe(N ## _read(p)); } \ static inline T N ## _read_to_pe(const void *p) \ -{ return N ## _cast_to_pe(*(T *)p); } \ -static inline T N ## _read(const void *p) \ -{ return *(T *)p; } \ +{ return N ## _cast_to_pe(N ## _read(p)); } \ static inline void N ## _write_from_pe(void *p, T v) \ -{ *(T *)p = N ## _cast_from_pe(v); } \ +{ N ## _write(p, N ## _cast_from_pe(v)); } \ static inline void N ## _write_to_pe(void *p, T v) \ -{ *(T *)p = N ## _cast_to_pe(v); } \ -static inline void N ## _write(void *p, T v) \ -{ *(T *)p = v; } \ +{ N ## _write(p, N ## _cast_to_pe(v)); } \ static inline T N ## _read_from_le(const void *p) \ -{ return N ## _cast_from_le(*(T *)p); } \ +{ return N ## _cast_from_le(N ## _read(p)); } \ typedef struct { int is_null; T value; } N ## _option_t; #define __flatcc_define_integer_accessors_impl(N, T, W, E) \ +static inline T N ## _read(const void *p) \ +{ return (T) mem_read_ ## W(p); } \ +static inline void N ## _write(void *p, T v) \ +{ mem_write_ ## W(p, v); } \ static inline T N ## _cast_from_pe(T v) \ { return (T) E ## W ## toh((uint ## W ## _t)v); } \ static inline T N ## _cast_to_pe(T v) \ @@ -48,6 +49,10 @@ static inline T N ## _cast_to_be(T v) \ __flatcc_basic_scalar_accessors_impl(N, T, W, E) #define __flatcc_define_real_accessors_impl(N, T, W, E) \ +static inline T N ## _read(const void *p) \ +{ return (T) mem_read_float_ ## W(p); } \ +static inline void N ## _write(void *p, T v) \ +{ mem_write_float_ ## W(p, v); } \ union __ ## N ## _cast { T v; uint ## W ## _t u; }; \ static inline T N ## _cast_from_pe(T v) \ { union __ ## N ## _cast x; \ diff --git a/thirdparty/flatcc/include/flatcc/flatcc_alloc.h b/thirdparty/flatcc/include/flatcc/flatcc_alloc.h index 155364c1e..20fd207ba 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_alloc.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_alloc.h @@ -89,6 +89,7 @@ static inline void *__flatcc_aligned_alloc(size_t alignment, size_t size) alignment = sizeof(void *); } raw = (char *)(size_t)FLATCC_ALLOC(total_size); + if (!raw) return 0; buf = raw + alignment - 1 + sizeof(void *); buf = (void *)(((size_t)buf) & ~(alignment - 1)); ((void **)buf)[-1] = raw; diff --git a/thirdparty/flatcc/include/flatcc/flatcc_builder.h b/thirdparty/flatcc/include/flatcc/flatcc_builder.h index 3871b1d07..2e84d2979 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_builder.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_builder.h @@ -710,10 +710,13 @@ static inline void flatcc_builder_refmap_reset(flatcc_builder_t *B) } -enum flatcc_builder_buffer_flags { - flatcc_builder_is_nested = 1, - flatcc_builder_with_size = 2, -}; +typedef uint16_t flatcc_builder_buffer_flags_t; +static const flatcc_builder_buffer_flags_t flatcc_builder_is_nested = 1; +static const flatcc_builder_buffer_flags_t flatcc_builder_with_size = 2; + +/* The flag size in the API needs to match the internal size. */ +static_assert(sizeof(flatcc_builder_buffer_flags_t) == + sizeof(((flatcc_builder_t *)0)->buffer_flags), "flag size mismatch"); /** * An alternative to start buffer, start struct/table ... end buffer. @@ -776,7 +779,7 @@ enum flatcc_builder_buffer_flags { flatcc_builder_ref_t flatcc_builder_create_buffer(flatcc_builder_t *B, const char identifier[FLATBUFFERS_IDENTIFIER_SIZE], uint16_t block_align, - flatcc_builder_ref_t ref, uint16_t align, int flags); + flatcc_builder_ref_t ref, uint16_t align, flatcc_builder_buffer_flags_t flags); /** * Creates a struct within the current buffer without using any @@ -867,7 +870,7 @@ flatcc_builder_ref_t flatcc_builder_end_struct(flatcc_builder_t *B); */ int flatcc_builder_start_buffer(flatcc_builder_t *B, const char identifier[FLATBUFFERS_IDENTIFIER_SIZE], - uint16_t block_align, int flags); + uint16_t block_align, flatcc_builder_buffer_flags_t flags); /** * The root object should be a struct or a table to conform to the @@ -923,7 +926,7 @@ flatcc_builder_ref_t flatcc_builder_end_buffer(flatcc_builder_t *B, flatcc_build */ flatcc_builder_ref_t flatcc_builder_embed_buffer(flatcc_builder_t *B, uint16_t block_align, - const void *data, size_t size, uint16_t align, int flags); + const void *data, size_t size, uint16_t align, flatcc_builder_buffer_flags_t flags); /** * Applies to the innermost open buffer. The identifier may be null or diff --git a/thirdparty/flatcc/include/flatcc/flatcc_flatbuffers.h b/thirdparty/flatcc/include/flatcc/flatcc_flatbuffers.h index 4bfc74352..6b1758378 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_flatbuffers.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_flatbuffers.h @@ -38,6 +38,8 @@ extern "C" { * or compatible definitions. */ #include "flatcc/portable/pendian.h" +/* Needed by flatcc_accessors.h to handle strict aliasing rules. */ +#include "flatcc/portable/pmemaccess.h" #include "flatcc/flatcc_types.h" #include "flatcc/flatcc_endian.h" #include "flatcc/flatcc_identifier.h" diff --git a/thirdparty/flatcc/include/flatcc/portable/flatcc_portable.h b/thirdparty/flatcc/include/flatcc/flatcc_portable.h similarity index 100% rename from thirdparty/flatcc/include/flatcc/portable/flatcc_portable.h rename to thirdparty/flatcc/include/flatcc/flatcc_portable.h diff --git a/thirdparty/flatcc/include/flatcc/flatcc_rtconfig.h b/thirdparty/flatcc/include/flatcc/flatcc_rtconfig.h index 59727b651..32b80daa3 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_rtconfig.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_rtconfig.h @@ -63,6 +63,15 @@ extern "C" { #define FLATCC_TRACE_VERIFY 0 #endif +/* + * Some producers allow empty vectors to be misaligned. + * The following setting will cause the verifier to require the index 0 + * position to be element aligned even if the vector is empty (otherwise that + * position is only required to be aligned to the preceding size field). + */ +#if !defined(FLATCC_ENFORCE_ALIGNED_EMPTY_VECTORS) +#define FLATCC_ENFORCE_ALIGNED_EMPTY_VECTORS 0 +#endif /* * Limit recursion level for tables. Actual level may be deeper diff --git a/thirdparty/flatcc/include/flatcc/flatcc_verifier.h b/thirdparty/flatcc/include/flatcc/flatcc_verifier.h index 7e0d29665..eb19b64b0 100644 --- a/thirdparty/flatcc/include/flatcc/flatcc_verifier.h +++ b/thirdparty/flatcc/include/flatcc/flatcc_verifier.h @@ -90,9 +90,11 @@ extern "C" { XX(union_element_present_with_type_NONE, "union element present with type NONE")\ XX(union_vector_length_mismatch, "union type and table vectors have different lengths")\ XX(union_vector_verification_not_supported, "union vector verification not supported")\ + XX(runtime_buffer_size_less_than_size_field, "runtime buffer size less than buffer headers size field")\ XX(not_supported, "not supported") + enum flatcc_verify_error_no { #define XX(no, str) flatcc_verify_error_##no, FLATCC_VERIFY_ERROR_MAP(XX) @@ -163,18 +165,34 @@ typedef int flatcc_union_verifier_f(flatcc_union_verifier_descriptor_t *ud); * The buffer must at least be aligned to uoffset_t on systems that * require aligned memory addresses. The buffer pointers alignment is * not significant to internal verification of the buffer. + * + * The `_with_size` variant handles size prefixed buffers which aligns slighly differently + * due to the size prefix, notably for buffers with alignment above the uoffset_t type. */ int flatcc_verify_struct_as_root(const void *buf, size_t bufsiz, const char *fid, size_t size, uint16_t align); +int flatcc_verify_struct_as_root_with_size(const void *buf, size_t bufsiz, const char *fid, + size_t size, uint16_t align); + int flatcc_verify_struct_as_typed_root(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, size_t size, uint16_t align); +int flatcc_verify_struct_as_typed_root_with_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, + size_t size, uint16_t align); + int flatcc_verify_table_as_root(const void *buf, size_t bufsiz, const char *fid, flatcc_table_verifier_f *root_tvf); +int flatcc_verify_table_as_root_with_size(const void *buf, size_t bufsiz, const char *fid, + flatcc_table_verifier_f *root_tvf); + int flatcc_verify_table_as_typed_root(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, flatcc_table_verifier_f *root_tvf); + +int flatcc_verify_table_as_typed_root_with_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, + flatcc_table_verifier_f *root_tvf); + /* * The buffer header is verified by any of the `_as_root` verifiers, but * this function may be used as a quick sanity check. @@ -183,6 +201,16 @@ int flatcc_verify_buffer_header(const void *buf, size_t bufsiz, const char *fid) int flatcc_verify_typed_buffer_header(const void *buf, size_t bufsiz, flatbuffers_thash_t type_hash); +/* + * Verifies size prefixed buffer headers. The `bufsiz` argument is a pointer that will be updated + * with the size stored in the buffer header iff it is no larger than the input argument, and + * otherwise the verifer fails. The updated size field adds sizeof(flatbuffers_uoffset_t) to the size + * to be compatible with bufsiz since the header size field does not include itself. + */ +int flatcc_verify_buffer_header_with_size(const void *buf, size_t *bufsiz, const char *fid); + +int flatcc_verify_typed_buffer_header_with_size(const void *buf, size_t *bufsiz, flatbuffers_thash_t type_hash); + /* * The following functions are typically called by a generated table * verifier function. diff --git a/thirdparty/flatcc/include/flatcc/portable/paligned_alloc.h b/thirdparty/flatcc/include/flatcc/portable/paligned_alloc.h index da4dab42d..419b61071 100644 --- a/thirdparty/flatcc/include/flatcc/portable/paligned_alloc.h +++ b/thirdparty/flatcc/include/flatcc/portable/paligned_alloc.h @@ -61,6 +61,8 @@ extern "C" { #define PORTABLE_C11_ALIGNED_ALLOC 0 #elif defined (__clang__) #define PORTABLE_C11_ALIGNED_ALLOC 0 +#elif defined (__APPLE__) +#define PORTABLE_C11_ALIGNED_ALLOC 0 #elif defined(__IBMC__) #define PORTABLE_C11_ALIGNED_ALLOC 0 #elif (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) @@ -169,6 +171,7 @@ static inline void *__portable_aligned_alloc(size_t alignment, size_t size) alignment = sizeof(void *); } raw = (char *)(size_t)malloc(total_size); + if (!raw) return 0; buf = raw + alignment - 1 + sizeof(void *); buf = (void *)(((size_t)buf) & ~(alignment - 1)); ((void **)buf)[-1] = raw; diff --git a/thirdparty/flatcc/include/flatcc/portable/pattributes.h b/thirdparty/flatcc/include/flatcc/portable/pattributes.h index 30b3b23d3..dd4918ac9 100644 --- a/thirdparty/flatcc/include/flatcc/portable/pattributes.h +++ b/thirdparty/flatcc/include/flatcc/portable/pattributes.h @@ -40,7 +40,7 @@ extern "C" { #endif #ifndef PORTABLE_EXPOSE_ATTRIBUTES -#define PORTABLE_EXPOSE_ATTRIBUTES 1 +#define PORTABLE_EXPOSE_ATTRIBUTES 0 #endif #ifdef __has_c_attribute @@ -57,7 +57,7 @@ extern "C" { /* https://en.cppreference.com/w/c/language/attributes/fallthrough */ -#if PORTABLE_HAS_C_ATTRIBUTE(__fallthrough__) +#if PORTABLE_HAS_C_ATTRIBUTE(__fallthrough__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L # define pattribute_fallthrough [[__fallthrough__]] #elif PORTABLE_HAS_ATTRIBUTE(__fallthrough__) # define pattribute_fallthrough __attribute__((__fallthrough__)) diff --git a/thirdparty/flatcc/include/flatcc/portable/pmemaccess.h b/thirdparty/flatcc/include/flatcc/portable/pmemaccess.h new file mode 100644 index 000000000..0735af584 --- /dev/null +++ b/thirdparty/flatcc/include/flatcc/portable/pmemaccess.h @@ -0,0 +1,232 @@ +/* + * Copyright (c) 2024 Mikkel Fahnøe Jørgensen, dvide.com + * + * (MIT License) + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * - The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * - The Software is provided "as is", without warranty of any kind, express or + * implied, including but not limited to the warranties of merchantability, + * fitness for a particular purpose and noninfringement. In no event shall the + * authors or copyright holders be liable for any claim, damages or other + * liability, whether in an action of contract, tort or otherwise, arising from, + * out of or in connection with the Software or the use or other dealings in the + * Software. + */ + +/* Provide strict aliasing safe portable access to reading and writing integer and + floating point values from memory buffers of size 1, 2, 4, and 8 bytes, and + optionally 16 bytes when C23 uint128_t is available. + Also supports casting between integers and floats at the binary level, e.g. + mem_read_float32(&myuint32), which can be necessary for endian conversions. + + It is often suggested to use memcpy for this purpose, that is not an ideal + solution. See comments below. + + While this is intended to be aligned access, the strict C aliasing rules forces + this to be the same as unaligned access. On x86/64 we can be more relaxed both + with aliasing and alignment, but if at some point a compiler starts to + modify this behaviour, the header can be updated or PORTABLE_MEM_PTR_ACCESS + can be defined to 0 in the build configuration, or this file can be updated. + + The balance is betweem knowing memcpy or __builtin_memcpy is fast, + and knowing that pointer casts do not break. + + Known targets that require PORTABLE_MEM_PTR_ACCESS=0 for at least some version: + + - ARM cross compiler: arm-none-eabi, -O2, -mcpu=cortext-m7, + breaks on PORTABLE_MEM_PTR_ACCESS=0 + slow memcpy, has fast __builtin_memcpy + + - Intel ICC -O3 on x86/64 (that compiler is deprecated by Intel). + breaks on PORTABLE_MEM_PTR_ACCESS=0 + has __builtin_memcpy, performance unknown, memcpy perforamnce unknown. + + */ + + +/* NOTE: for best performance, `__builtin_memcpy` should be detectable, but + the current detection logic is not ideal for older compilers. See below. */ + + +#ifndef PMEMACCESS_H +#define PMEMACCESS_H + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Set to 1 to see which implementation is chosen on current platform. */ +#ifndef PORTABLE_MEM_ACCESS_DEBUG +#define PORTABLE_MEM_ACCESS_DEBUG 0 +#endif + +/* MEM_PTR_ACCESS (aka pointer casts) (*(T *)p) is not formally valid for strict aliasing. + It works in most cases, but not always. It may be the best option for older + compilers that do not optimize well and which don't care about strict aliazing. + x86/64 platforms appears to work well with this, while it only sometimes work + on other platforms. + + NOTE: this might change as compiler updates their optimization strategies. */ + +#ifndef PORTABLE_MEM_PTR_ACCESS + +#if defined(__INTEL_COMPILER) +# /* Prevents Intel ICC compiler from breaking on -O3 on x86/64 target, + likely due to strict aliasing rules. */ +# define PORTABLE_MEM_PTR_ACCESS 0 +#elif (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)) +# define PORTABLE_MEM_PTR_ACCESS 1 +#else +# define PORTABLE_MEM_PTR_ACCESS 0 +#endif + +#endif /* PORTABLE_MEM_PTR_ACCESS */ + + +#ifndef UINT8_MAX +# include +#endif + +/* `mem_copy_word` implements optimized non-overlapping memory copies of + 1, 2, 4, 8, or 16 bytes, noting that C23 introduces uin128_t. + Other sizes are not defined even if some implementation might support them. + `mem_copy_word` of 16 bytes are supported even if uint128_t is not available. + + Ideally call `mem_copy_word` with known constant lengths for best optimization. + + The objective is both to support type punning where a binary representation is + reinterpreted, and to read and write integers and floats safely from memory without + risking undefined behaviour from strict aliasing rules. + + `memcpy` is supposed to handle this efficiently given small constant powers of 2, but + this evidently fails on some platforms since even small constants lengths with -O2 + level optimization can issue a function call. On such platforms, `__builtin_memcpy` + tends to work better, if it can be detected. + + A pointer cast can and will, albeit uncommon, lead to undefined behaviour + such as reading from uninitialized stack memory when strict aliasing is the default + optimization strategy. + + Note: __has_builtin is not necessarily defined on platforms with __builtin_memcpy support, + so detection can be improved. Feel free to contribute. + + Note: `mem_copy_word_` is a macro that may call `mem_copy_word` but it is guaranteed to + be called with a literal length argument, so it could be redefined to forward calls + to e.g. my_mem_copy_word_2 via token pasting. It is used with the `mem_read/write_nn` + functions below. */ + +#ifndef mem_copy_word +# if defined(__has_builtin) +# if __has_builtin(__builtin_memcpy) +# define mem_copy_word(d, s, n) __builtin_memcpy((d), (s), (n)) +# if PORTABLE_MEM_ACCESS_DEBUG +# error mem_copy_word using: __builtin_memcpy +# endif +# endif +# endif +#endif + +#ifndef mem_copy_word + #include "pinline.h" + #include "prestrict.h" + /* Sometimes `memcpy` is a call even when optimized and given small constant length arguments, + so this is more likely to be optimized. `int len` is used to avoid dependency. + Also, by not using `memcpy`, we avoid depending on . + + As an alternative consider PORTABLE_MEM_PTR_ACCESS=1 with `mem_read/write_nn` for some older + platforms that might not care about strict aliasing, and which also might not optimize well. */ + static inline void mem_copy_word(void * restrict dest, const void * restrict src, int len) + { + char *d = (char *)dest; + const char *s = (const char *)src; + while(len--) *d++ = *s++; + } + #if PORTABLE_MEM_ACCESS_DEBUG + # error mem_copy_word using: inline memcpy + #endif +#endif + + +#if PORTABLE_MEM_PTR_ACCESS + +#define mem_read_8(p) (*(uint8_t*)(p)) +#define mem_read_16(p) (*(uint16_t*)(p)) +#define mem_read_32(p) (*(uint32_t*)(p)) +#define mem_read_64(p) (*(uint64_t*)(p)) + +#define mem_write_8(p, v) ((void)(*(uint8_t*)(p) = (uint8_t)(v))) +#define mem_write_16(p, v) ((void)(*(uint16_t*)(p) = (uint16_t)(v))) +#define mem_write_32(p, v) ((void)(*(uint32_t*)(p) = (uint32_t)(v))) +#define mem_write_64(p, v) ((void)(*(uint64_t*)(p) = (uint64_t)(v))) + +#define mem_read_float_32(p) (*(float*)(p)) +#define mem_read_float_64(p) (*(double*)(p)) + +#define mem_write_float_32(p, v) ((void)(*(float*)(p) = (float)(v))) +#define mem_write_float_64(p, v) ((void)(*(double*)(p) = (double)(v))) + +#ifdef UINT128_MAX + +#define mem_read_128(p) (*(uint128_t*)(p)) + +#define mem_write_128(p, v) ((void)(*(uint128_t*)(p) = (uint128_t)(v))) + +#endif + +#if PORTABLE_MEM_ACCESS_DEBUG +# error mem_read/write_nn using: pointer cast +#endif + +#else /* PORTABLE_MEM_PTR_ACCESS */ + +/* mem_copy_word_ is guaranteed to receive literal `n` arguments + so operations can be optimized via token pasting if necessary. */ +#ifndef mem_copy_word_ +#define mem_copy_word_(d, s, n) mem_copy_word(d, s, n) +#endif + +#define mem_read_8(p) (*(uint8_t*)(p)) +#define mem_write_8(p, v) ((void)(*(uint8_t*)(p) = (uint8_t)(v))) + +static inline uint16_t mem_read_16(const void *p) { uint16_t v; mem_copy_word_(&v, p, 2); return v; } +static inline uint32_t mem_read_32(const void *p) { uint32_t v; mem_copy_word_(&v, p, 4); return v; } +static inline uint64_t mem_read_64(const void *p) { uint64_t v; mem_copy_word_(&v, p, 8); return v; } + +#define mem_write_16(p, v) do { const uint16_t x = (uint16_t)(v); mem_copy_word_((p), &x, 2); } while(0) +#define mem_write_32(p, v) do { const uint32_t x = (uint32_t)(v); mem_copy_word_((p), &x, 4); } while(0) +#define mem_write_64(p, v) do { const uint64_t x = (uint64_t)(v); mem_copy_word_((p), &x, 8); } while(0) + +static inline float mem_read_float_32(const void *p) { float v; mem_copy_word_(&v, p, 4); return v; } +static inline double mem_read_float_64(const void *p) { double v; mem_copy_word_(&v, p, 8); return v; } + +#define mem_write_float_32(p, v) do { const float x = (float)(v); mem_copy_word_((p), &x, 4); } while(0) +#define mem_write_float_64(p, v) do { const double x = (double)(v); mem_copy_word_((p), &x, 8); } while(0) + +#ifdef UINT128_MAX + +static inline uint128_t mem_read_128(const void *p) { uint128_t v; mem_copy_word_(&v, p, 16); return v; } + +#define mem_write_128(p, v) do { const uint128_t x = (uint128_t)(v); mem_copy_word_((p), &x, 128); } while(0) + +#endif + +#if PORTABLE_MEM_ACCESS_DEBUG +# error mem_read/write_nn using: mem_copy_word +#endif + +#endif /* PORTABLE_MEM_PTR_ACCESS */ + + +#ifdef __cplusplus +} +#endif + +#endif /* PMEMACCESS_H */ diff --git a/thirdparty/flatcc/include/flatcc/portable/portable_basic.h b/thirdparty/flatcc/include/flatcc/portable/portable_basic.h index 0396f3d4c..86cbff4a9 100644 --- a/thirdparty/flatcc/include/flatcc/portable/portable_basic.h +++ b/thirdparty/flatcc/include/flatcc/portable/portable_basic.h @@ -21,5 +21,7 @@ /* These are not supported by C11 and are general platform abstractions. */ #include "pendian.h" #include "punaligned.h" +#include "pmemaccess.h" + #endif /* PORTABLE_BASIC_H */ diff --git a/thirdparty/flatcc/include/flatcc/portable/prestrict.h b/thirdparty/flatcc/include/flatcc/portable/prestrict.h new file mode 100644 index 000000000..a3c2aa023 --- /dev/null +++ b/thirdparty/flatcc/include/flatcc/portable/prestrict.h @@ -0,0 +1,39 @@ + +/* + * Copyright (c) 2024 Mikkel Fahnøe Jørgensen, dvide.com + * + * (MIT License) + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * - The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * - The Software is provided "as is", without warranty of any kind, express or + * implied, including but not limited to the warranties of merchantability, + * fitness for a particular purpose and noninfringement. In no event shall the + * authors or copyright holders be liable for any claim, damages or other + * liability, whether in an action of contract, tort or otherwise, arising from, + * out of or in connection with the Software or the use or other dealings in the + * Software. + */ + +#ifndef PRESTRICT_H +#define PRESTRICT_H + + +#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) +/* C99 or newer */ +#elif defined(__restrict) +/* Some C/C++ compilers use alternative syntax. If these are defines, we can detect them. */ +#define restrict __restrict +#elif defined(__restrict__) +#define restrict __restrict__ +#else +#define restrict +#endif + + +#endif /* PRESTRICT_H */ diff --git a/thirdparty/flatcc/include/flatcc/portable/punaligned.h b/thirdparty/flatcc/include/flatcc/portable/punaligned.h index e614cd028..a7e1f2304 100644 --- a/thirdparty/flatcc/include/flatcc/portable/punaligned.h +++ b/thirdparty/flatcc/include/flatcc/portable/punaligned.h @@ -125,7 +125,7 @@ extern "C" { ((uint8_t *)(p))[3] = (uint8_t)(((uint32_t)(v)) >> 24); \ } while (0) -#define unaligned_write_htole64(p) do { \ +#define unaligned_write_htole64(p, v) do { \ ((uint8_t *)(p))[0] = (uint8_t)(((uint64_t)(v)) >> 0); \ ((uint8_t *)(p))[1] = (uint8_t)(((uint64_t)(v)) >> 8); \ ((uint8_t *)(p))[2] = (uint8_t)(((uint64_t)(v)) >> 16); \ diff --git a/thirdparty/flatcc/src/runtime/builder.c b/thirdparty/flatcc/src/runtime/builder.c index 9f54d884f..8d9f30201 100644 --- a/thirdparty/flatcc/src/runtime/builder.c +++ b/thirdparty/flatcc/src/runtime/builder.c @@ -177,7 +177,7 @@ int flatcc_builder_default_alloc(void *alloc_context, iovec_t *b, size_t request return 0; } -#define T_ptr(base, pos) ((void *)((uint8_t *)(base) + (uoffset_t)(pos))) +#define T_ptr(base, pos) ((void *)((size_t)(base) + (size_t)(pos))) #define ds_ptr(pos) (T_ptr(B->buffers[flatcc_builder_alloc_ds].iov_base, (pos))) #define vs_ptr(pos) (T_ptr(B->buffers[flatcc_builder_alloc_vs].iov_base, (pos))) #define pl_ptr(pos) (T_ptr(B->buffers[flatcc_builder_alloc_pl].iov_base, (pos))) @@ -698,7 +698,8 @@ static inline flatcc_builder_ref_t emit_back(flatcc_builder_t *B, iov_state_t *i return ref + 1; } -static int align_to_block(flatcc_builder_t *B, uint16_t *align, uint16_t block_align, int is_nested) +/* If nested we cannot pad the end of the buffer without moving the entire buffer, so we don't. */ +static int align_buffer_end(flatcc_builder_t *B, uint16_t *align, uint16_t block_align, int is_nested) { size_t end_pad; iov_state_t iov; @@ -708,7 +709,7 @@ static int align_to_block(flatcc_builder_t *B, uint16_t *align, uint16_t block_a get_min_align(align, block_align); /* Pad end of buffer to multiple. */ if (!is_nested) { - end_pad = back_pad(B, block_align); + end_pad = back_pad(B, *align); if (end_pad) { init_iov(); push_iov(_pad, end_pad); @@ -723,13 +724,13 @@ static int align_to_block(flatcc_builder_t *B, uint16_t *align, uint16_t block_a flatcc_builder_ref_t flatcc_builder_embed_buffer(flatcc_builder_t *B, uint16_t block_align, - const void *data, size_t size, uint16_t align, int flags) + const void *data, size_t size, uint16_t align, flatcc_builder_buffer_flags_t flags) { uoffset_t size_field, pad; iov_state_t iov; - int with_size = flags & flatcc_builder_with_size; + int with_size = (flags & flatcc_builder_with_size) != 0; - if (align_to_block(B, &align, block_align, !is_top_buffer(B))) { + if (align_buffer_end(B, &align, block_align, !is_top_buffer(B))) { return 0; } pad = front_pad(B, (uoffset_t)(size + (with_size ? field_size : 0)), align); @@ -744,7 +745,7 @@ flatcc_builder_ref_t flatcc_builder_embed_buffer(flatcc_builder_t *B, flatcc_builder_ref_t flatcc_builder_create_buffer(flatcc_builder_t *B, const char identifier[identifier_size], uint16_t block_align, - flatcc_builder_ref_t object_ref, uint16_t align, int flags) + flatcc_builder_ref_t object_ref, uint16_t align, flatcc_builder_buffer_flags_t flags) { flatcc_builder_ref_t buffer_ref; uoffset_t header_pad, id_size = 0; @@ -754,7 +755,7 @@ flatcc_builder_ref_t flatcc_builder_create_buffer(flatcc_builder_t *B, int is_nested = (flags & flatcc_builder_is_nested) != 0; int with_size = (flags & flatcc_builder_with_size) != 0; - if (align_to_block(B, &align, block_align, is_nested)) { + if (align_buffer_end(B, &align, block_align, is_nested)) { return 0; } set_min_align(B, align); @@ -808,7 +809,7 @@ flatcc_builder_ref_t flatcc_builder_create_struct(flatcc_builder_t *B, const voi } int flatcc_builder_start_buffer(flatcc_builder_t *B, - const char identifier[identifier_size], uint16_t block_align, int flags) + const char identifier[identifier_size], uint16_t block_align, flatcc_builder_buffer_flags_t flags) { /* * This saves the parent `min_align` in the align field since we @@ -820,7 +821,11 @@ int flatcc_builder_start_buffer(flatcc_builder_t *B, return -1; } /* B->align now has parent min_align, and child frames will save it. */ - B->min_align = 1; + /* Since we allow objects to be created before the buffer at top level, + we need to respect min_align in that case. */ + if (!is_top_buffer(B) || B->min_align == 0) { + B->min_align = 1; + } /* Save the parent block align, and set proper defaults for this buffer. */ frame(container.buffer.block_align) = B->block_align; B->block_align = block_align; @@ -845,9 +850,9 @@ int flatcc_builder_start_buffer(flatcc_builder_t *B, flatcc_builder_ref_t flatcc_builder_end_buffer(flatcc_builder_t *B, flatcc_builder_ref_t root) { flatcc_builder_ref_t buffer_ref; - int flags; + flatcc_builder_buffer_flags_t flags; - flags = B->buffer_flags & flatcc_builder_with_size; + flags = (flatcc_builder_buffer_flags_t)B->buffer_flags & flatcc_builder_with_size; flags |= is_top_buffer(B) ? 0 : flatcc_builder_is_nested; check(frame(type) == flatcc_builder_buffer, "expected buffer frame"); set_min_align(B, B->block_align); @@ -859,6 +864,8 @@ flatcc_builder_ref_t flatcc_builder_end_buffer(flatcc_builder_t *B, flatcc_build B->nest_id = frame(container.buffer.nest_id); B->identifier = frame(container.buffer.identifier); B->buffer_flags = frame(container.buffer.flags); + B->block_align = frame(container.buffer.block_align); + exit_frame(B); return buffer_ref; } @@ -1327,6 +1334,7 @@ flatcc_builder_ref_t flatcc_builder_end_table(flatcc_builder_t *B) flatcc_builder_ref_t table_ref, vt_ref; int pl_count; voffset_t *pl; + size_t tsize; check(frame(type) == flatcc_builder_table, "expected table frame"); @@ -1341,7 +1349,14 @@ flatcc_builder_ref_t flatcc_builder_end_table(flatcc_builder_t *B) * initial vtable offset field. Therefore `field_size` is added here * to the total table size in the vtable. */ - vt[1] = (voffset_t)(B->ds_offset + field_size); + tsize = (size_t)(B->ds_offset + field_size); + /* + * Tables are limited to 64K in standard FlatBuffers format due to the voffset + * 16 bit size, but we must also be able to store the table size, so the + * table payload has to be slightly less than that. + */ + check(tsize <= FLATBUFFERS_VOFFSET_MAX, "table too large"); + vt[1] = (voffset_t)tsize; FLATCC_BUILDER_UPDATE_VT_HASH(B->vt_hash, (uint32_t)vt[0], (uint32_t)vt[1]); /* Find already emitted vtable, or emit a new one. */ if (!(vt_ref = flatcc_builder_create_cached_vtable(B, vt, vt_size, B->vt_hash))) { diff --git a/thirdparty/flatcc/src/runtime/verifier.c b/thirdparty/flatcc/src/runtime/verifier.c index 9c43bf613..14003c067 100644 --- a/thirdparty/flatcc/src/runtime/verifier.c +++ b/thirdparty/flatcc/src/runtime/verifier.c @@ -135,20 +135,6 @@ static inline int check_header(uoffset_t end, uoffset_t base, uoffset_t offset) return k > base && k + offset_size <= end && !(k & (offset_size - 1)); } -static inline int check_aligned_header(uoffset_t end, uoffset_t base, uoffset_t offset, uint16_t align) -{ - uoffset_t k = base + offset; - - if (uoffset_size <= voffset_size && k + offset_size < k) { - return 0; - } - /* Alignment refers to element 0 and header must also be aligned. */ - align = align < uoffset_size ? uoffset_size : align; - - /* Note to self: the builder can also use the mask OR trick to propagate `min_align`. */ - return k > base && k + offset_size <= end && !((k + offset_size) & ((offset_size - 1) | (align - 1u))); -} - static inline int verify_struct(uoffset_t end, uoffset_t base, uoffset_t offset, uoffset_t size, uint16_t align) { /* Structs can have zero size so `end` is a valid value. */ @@ -278,10 +264,17 @@ static inline int verify_vector(const void *buf, uoffset_t end, uoffset_t base, { uoffset_t n; - verify(check_aligned_header(end, base, offset, align), flatcc_verify_error_vector_header_out_of_range_or_unaligned); + verify(check_header(end, base, offset), flatcc_verify_error_vector_header_out_of_range_or_unaligned); base += offset; + n = read_uoffset(buf, base); base += offset_size; + +#if !FLATCC_ENFORCE_ALIGNED_EMPTY_VECTORS + /* This is due to incorrect buffers from other builders than cannot easily be ignored. */ + align = n == 0 ? uoffset_size : align; +#endif + verify(!(base & ((align - 1u) | (uoffset_size - 1u))), flatcc_verify_error_vector_header_out_of_range_or_unaligned); /* `n * elem_size` can overflow uncontrollably otherwise. */ verify(n <= max_count, flatcc_verify_error_vector_count_exceeds_representable_vector_size); verify(end - base >= n * elem_size, flatcc_verify_error_vector_out_of_range); @@ -470,6 +463,29 @@ int flatcc_verify_buffer_header(const void *buf, size_t bufsiz, const char *fid) return flatcc_verify_ok; } +int flatcc_verify_buffer_header_with_size(const void *buf, size_t *bufsiz, const char *fid) +{ + thash_t id, id2; + size_t size_field; + + verify_runtime(!(((size_t)buf) & (offset_size - 1)), flatcc_verify_error_runtime_buffer_header_not_aligned); + /* -8 ensures no scalar or offset field size can overflow. */ + verify_runtime(*bufsiz <= FLATBUFFERS_UOFFSET_MAX - 8, flatcc_verify_error_runtime_buffer_size_too_large); + + /* Size field, offset field, optional identifier field that must be read even if not present. */ + verify(*bufsiz >= 2 * offset_size + FLATBUFFERS_IDENTIFIER_SIZE, flatcc_verify_error_buffer_header_too_small); + + size_field = (size_t)read_uoffset(buf, 0); + verify_runtime(size_field <= *bufsiz - offset_size, flatcc_verify_error_runtime_buffer_size_less_than_size_field); + if (fid != 0) { + id2 = read_thash_identifier(fid); + id = read_thash(buf, offset_size); + verify(id2 == 0 || id == id2, flatcc_verify_error_identifier_mismatch); + } + *bufsiz = size_field + offset_size; + return flatcc_verify_ok; +} + int flatcc_verify_typed_buffer_header(const void *buf, size_t bufsiz, flatbuffers_thash_t thash) { thash_t id, id2; @@ -492,30 +508,77 @@ int flatcc_verify_typed_buffer_header(const void *buf, size_t bufsiz, flatbuffer return flatcc_verify_ok; } +int flatcc_verify_typed_buffer_header_with_size(const void *buf, size_t *bufsiz, flatbuffers_thash_t thash) +{ + thash_t id, id2; + size_t size_field; + + verify_runtime(!(((size_t)buf) & (offset_size - 1)), flatcc_verify_error_runtime_buffer_header_not_aligned); + /* -8 ensures no scalar or offset field size can overflow. */ + verify_runtime(*bufsiz <= FLATBUFFERS_UOFFSET_MAX - 8, flatcc_verify_error_runtime_buffer_size_too_large); + + /* Size field, offset field, optional identifier field that must be read even if not present. */ + verify(*bufsiz >= 2 * offset_size + FLATBUFFERS_IDENTIFIER_SIZE, flatcc_verify_error_buffer_header_too_small); + + size_field = (size_t)read_uoffset(buf, 0); + verify_runtime(size_field <= *bufsiz - offset_size, flatcc_verify_error_runtime_buffer_size_less_than_size_field); + if (thash != 0) { + id2 = thash; + id = read_thash(buf, offset_size); + verify(id2 == 0 || id == id2, flatcc_verify_error_identifier_mismatch); + } + *bufsiz = size_field + offset_size; + return flatcc_verify_ok; +} + int flatcc_verify_struct_as_root(const void *buf, size_t bufsiz, const char *fid, size_t size, uint16_t align) { check_result(flatcc_verify_buffer_header(buf, bufsiz, fid)); return verify_struct((uoffset_t)bufsiz, 0, read_uoffset(buf, 0), (uoffset_t)size, align); } +int flatcc_verify_struct_as_root_with_size(const void *buf, size_t bufsiz, const char *fid, size_t size, uint16_t align) +{ + check_result(flatcc_verify_buffer_header_with_size(buf, &bufsiz, fid)); + return verify_struct((uoffset_t)bufsiz, 0, read_uoffset(buf, 0), (uoffset_t)size, align); +} + int flatcc_verify_struct_as_typed_root(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, size_t size, uint16_t align) { check_result(flatcc_verify_typed_buffer_header(buf, bufsiz, thash)); return verify_struct((uoffset_t)bufsiz, 0, read_uoffset(buf, 0), (uoffset_t)size, align); } +int flatcc_verify_struct_as_typed_root_with_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, size_t size, uint16_t align) +{ + check_result(flatcc_verify_typed_buffer_header_with_size(buf, &bufsiz, thash)); + return verify_struct((uoffset_t)bufsiz, uoffset_size, read_uoffset(buf, uoffset_size), (uoffset_t)size, align); +} + int flatcc_verify_table_as_root(const void *buf, size_t bufsiz, const char *fid, flatcc_table_verifier_f *tvf) { - check_result(flatcc_verify_buffer_header(buf, (uoffset_t)bufsiz, fid)); + check_result(flatcc_verify_buffer_header(buf, bufsiz, fid)); return verify_table(buf, (uoffset_t)bufsiz, 0, read_uoffset(buf, 0), FLATCC_VERIFIER_MAX_LEVELS, tvf); } +int flatcc_verify_table_as_root_with_size(const void *buf, size_t bufsiz, const char *fid, flatcc_table_verifier_f *tvf) +{ + check_result(flatcc_verify_buffer_header_with_size(buf, &bufsiz, fid)); + return verify_table(buf, (uoffset_t)bufsiz, uoffset_size, read_uoffset(buf, uoffset_size), FLATCC_VERIFIER_MAX_LEVELS, tvf); +} + int flatcc_verify_table_as_typed_root(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, flatcc_table_verifier_f *tvf) { - check_result(flatcc_verify_typed_buffer_header(buf, (uoffset_t)bufsiz, thash)); + check_result(flatcc_verify_typed_buffer_header(buf, bufsiz, thash)); return verify_table(buf, (uoffset_t)bufsiz, 0, read_uoffset(buf, 0), FLATCC_VERIFIER_MAX_LEVELS, tvf); } +int flatcc_verify_table_as_typed_root_with_size(const void *buf, size_t bufsiz, flatbuffers_thash_t thash, flatcc_table_verifier_f *tvf) +{ + check_result(flatcc_verify_typed_buffer_header_with_size(buf, &bufsiz, thash)); + return verify_table(buf, (uoffset_t)bufsiz, uoffset_size, read_uoffset(buf, uoffset_size), FLATCC_VERIFIER_MAX_LEVELS, tvf); +} + int flatcc_verify_struct_as_nested_root(flatcc_table_verifier_descriptor_t *td, voffset_t id, int required, const char *fid, size_t size, uint16_t align) {