From fe0d1b1e8336195e81f61edf8b14a7e5a36fc192 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 12 Jun 2023 09:25:40 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 539675912 --- .../python/metadata/flatbuffers_lib/flatbuffers_lib.cc | 4 ++-- third_party/flatbuffers/workspace.bzl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mediapipe/tasks/python/metadata/flatbuffers_lib/flatbuffers_lib.cc b/mediapipe/tasks/python/metadata/flatbuffers_lib/flatbuffers_lib.cc index 0c251c69e..cf6ddd9b2 100644 --- a/mediapipe/tasks/python/metadata/flatbuffers_lib/flatbuffers_lib.cc +++ b/mediapipe/tasks/python/metadata/flatbuffers_lib/flatbuffers_lib.cc @@ -41,12 +41,12 @@ PYBIND11_MODULE(_pywrap_flatbuffers, m) { self->PushFlatBuffer(reinterpret_cast(contents.c_str()), contents.length()); }); - m.def("generate_text_file", &flatbuffers::GenerateTextFile); + m.def("generate_text_file", &flatbuffers::GenTextFile); m.def("generate_text", [](const flatbuffers::Parser& parser, const std::string& buffer) -> std::string { std::string text; - const char* result = flatbuffers::GenerateText( + const char* result = flatbuffers::GenText( parser, reinterpret_cast(buffer.c_str()), &text); if (result) { return ""; diff --git a/third_party/flatbuffers/workspace.bzl b/third_party/flatbuffers/workspace.bzl index 0edb7a6f6..d06e2cbe9 100644 --- a/third_party/flatbuffers/workspace.bzl +++ b/third_party/flatbuffers/workspace.bzl @@ -5,11 +5,11 @@ load("//third_party:repo.bzl", "third_party_http_archive") def repo(): third_party_http_archive( name = "flatbuffers", - strip_prefix = "flatbuffers-23.5.8", - sha256 = "55b75dfa5b6f6173e4abf9c35284a10482ba65db886b39db511eba6c244f1e88", + strip_prefix = "flatbuffers-23.5.26", + sha256 = "1cce06b17cddd896b6d73cc047e36a254fb8df4d7ea18a46acf16c4c0cd3f3f3", urls = [ - "https://github.com/google/flatbuffers/archive/v23.5.8.tar.gz", - "https://github.com/google/flatbuffers/archive/v23.5.8.tar.gz", + "https://github.com/google/flatbuffers/archive/v23.5.26.tar.gz", + "https://github.com/google/flatbuffers/archive/v23.5.26.tar.gz", ], build_file = "//third_party/flatbuffers:BUILD.bazel", delete = ["build_defs.bzl", "BUILD.bazel"],