mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 10:45:45 +00:00
Also refine docs
This commit is contained in:
@@ -1,11 +1,3 @@
|
|||||||
workspace(name = "com_github_google_flatbuffers")
|
workspace(name = "com_github_google_flatbuffers")
|
||||||
|
|
||||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||||
http_archive(
|
|
||||||
name = "io_bazel_rules_go",
|
|
||||||
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.13.0/rules_go-0.13.0.tar.gz"],
|
|
||||||
sha256 = "ba79c532ac400cefd1859cbc8a9829346aa69e3b99482cd5a54432092cbc3933",
|
|
||||||
)
|
|
||||||
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
|
|
||||||
go_rules_dependencies()
|
|
||||||
go_register_toolchains()
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DEFAULT_INCLUDE_PATHS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
DEFAULT_FLATC_ARGS = [
|
DEFAULT_FLATC_ARGS = [
|
||||||
"--gen-object-api",
|
#"--gen-object-api",
|
||||||
"--gen-compare",
|
"--gen-compare",
|
||||||
"--no-includes",
|
"--no-includes",
|
||||||
"--gen-mutable",
|
"--gen-mutable",
|
||||||
|
|||||||
@@ -91,8 +91,7 @@ convenient accessors for all fields, e.g. `hp()`, `mana()`, etc:
|
|||||||
The following attributes are supported:
|
The following attributes are supported:
|
||||||
|
|
||||||
- `native_shared` (on a field): For string fields, this enables the usage of
|
- `native_shared` (on a field): For string fields, this enables the usage of
|
||||||
CreateSharedString() instead of CreateString() for generated
|
string pooling (i.e. CreateSharedString) as default serialization behavior.
|
||||||
CreateXxxDirect(), and Pack() in object-based API if enabled.
|
|
||||||
|
|
||||||
## Object based API. {#flatbuffers_cpp_object_based_api}
|
## Object based API. {#flatbuffers_cpp_object_based_api}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user