flatbuffers
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -1044,2 +1044,22 @@ /// @file | ||
/** | ||
* Return the file identifier. Behavior is undefined for FlatBuffers whose | ||
* schema does not include a file_identifier (likely points at padding or the | ||
* start of a the root vtable). | ||
* @returns {string} | ||
*/ | ||
flatbuffers.ByteBuffer.prototype.getBufferIdentifier = function() { | ||
if (this.bytes_.length < this.position_ + flatbuffers.SIZEOF_INT + | ||
flatbuffers.FILE_IDENTIFIER_LENGTH) { | ||
throw new Error( | ||
'FlatBuffers: ByteBuffer is too short to contain an identifier.'); | ||
} | ||
var result = ""; | ||
for (var i = 0; i < flatbuffers.FILE_IDENTIFIER_LENGTH; i++) { | ||
result += String.fromCharCode( | ||
this.readInt8(this.position_ + flatbuffers.SIZEOF_INT + i)); | ||
} | ||
return result; | ||
}; | ||
/** | ||
* Look up a field in the vtable, return an offset into the object, or 0 if the | ||
@@ -1046,0 +1066,0 @@ * field is not present. |
{ | ||
"name": "flatbuffers", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Memory Efficient Serialization Library", | ||
@@ -5,0 +5,0 @@ "files": ["js/flatbuffers.js", "js/flatbuffers.mjs"], |
@@ -7,5 +7,4 @@ ![logo](http://google.github.io/flatbuffers/fpl_logo_small.png) FlatBuffers | ||
**FlatBuffers** is an efficient cross platform serialization library for games and | ||
other memory constrained apps. It allows you to directly access serialized data without | ||
unpacking/parsing it first, while still having great forwards/backwards compatibility. | ||
**FlatBuffers** is a cross platform serialization library architected for | ||
maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility. | ||
@@ -15,6 +14,7 @@ **Go to our [landing page][] to browse our documentation.** | ||
## Supported operating systems | ||
* Android | ||
* Windows | ||
* MacOS X | ||
* Linux | ||
* Android | ||
* And any others with a recent C++ compiler. | ||
@@ -25,9 +25,14 @@ ## Supported programming languages | ||
* C | ||
* Dart | ||
* Go | ||
* Java | ||
* JavaScript | ||
* Lobster | ||
* Lua | ||
* PHP | ||
* Python | ||
* Rust | ||
* TypeScript | ||
*and many more in progress...* | ||
*and more in progress...* | ||
@@ -41,12 +46,2 @@ ## Contribution | ||
## Integration | ||
For applications on Google Play that integrate this tool, usage is tracked. | ||
This tracking is done automatically using the embedded version string | ||
(**`flatbuffer_version_string`**), and helps us continue to optimize it. Aside from | ||
consuming a few extra bytes in your application binary, it shouldn't affect | ||
your application at all. We use this information to let us know if FlatBuffers | ||
is useful and if we should continue to invest in it. Since this is open | ||
source, you are free to remove the version string but we would appreciate if | ||
you would leave it in. | ||
## Licensing | ||
@@ -62,3 +57,3 @@ *Flatbuffers* is licensed under the Apache License, Version 2.0. See [LICENSE][] for the full license text. | ||
[stackoverflow.com]: http://stackoverflow.com/search?q=flatbuffers | ||
[landing page]: http://google.github.io/flatbuffers | ||
[landing page]: https://google.github.io/flatbuffers | ||
[LICENSE]: https://github.com/google/flatbuffers/blob/master/LICENSE.txt |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107678
3248
55