Also refine docs

This commit is contained in:
iceboy
2019-02-05 13:11:29 -08:00
parent d53fe98e10
commit 09dab7b45c
3 changed files with 2 additions and 11 deletions

View File

@@ -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()

View File

@@ -10,7 +10,7 @@ DEFAULT_INCLUDE_PATHS = [
]
DEFAULT_FLATC_ARGS = [
"--gen-object-api",
#"--gen-object-api",
"--gen-compare",
"--no-includes",
"--gen-mutable",

View File

@@ -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}