| 183 | } |
| 184 | |
| 185 | static inline Status VerifyMessage(const uint8_t* data, int64_t size, |
| 186 | const flatbuf::Message** out) { |
| 187 | if (!VerifyFlatbuffers<flatbuf::Message>(data, size)) { |
| 188 | return Status::IOError("Invalid flatbuffers message."); |
| 189 | } |
| 190 | *out = flatbuf::GetMessage(data); |
| 191 | return Status::OK(); |
| 192 | } |
| 193 | |
| 194 | // Serialize arrow::Schema as a Flatbuffer |
| 195 | ARROW_EXPORT |
no test coverage detected