Internal change

PiperOrigin-RevId: 539675912
This commit is contained in:
MediaPipe Team 2023-06-12 09:25:40 -07:00 committed by Copybara-Service
parent 8a2ec518de
commit fe0d1b1e83
2 changed files with 6 additions and 6 deletions

View File

@ -41,12 +41,12 @@ PYBIND11_MODULE(_pywrap_flatbuffers, m) {
self->PushFlatBuffer(reinterpret_cast<const uint8_t*>(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<const void*>(buffer.c_str()), &text);
if (result) {
return "";

View File

@ -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"],