mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Also refine docs
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
workspace(name = "com_github_google_flatbuffers")
|
||||
|
||||
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 = [
|
||||
"--gen-object-api",
|
||||
#"--gen-object-api",
|
||||
"--gen-compare",
|
||||
"--no-includes",
|
||||
"--gen-mutable",
|
||||
|
||||
@@ -91,8 +91,7 @@ convenient accessors for all fields, e.g. `hp()`, `mana()`, etc:
|
||||
The following attributes are supported:
|
||||
|
||||
- `native_shared` (on a field): For string fields, this enables the usage of
|
||||
CreateSharedString() instead of CreateString() for generated
|
||||
CreateXxxDirect(), and Pack() in object-based API if enabled.
|
||||
string pooling (i.e. CreateSharedString) as default serialization behavior.
|
||||
|
||||
## Object based API. {#flatbuffers_cpp_object_based_api}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user