summaryrefslogtreecommitdiff
path: root/dart/lib
AgeCommit message (Collapse)AuthorFilesLines
2021-01-07fix Dart Builder._writeString() - always write trailing zero byte (#6390)Ivan Dlugos1-0/+1
2021-01-07fix Dart Builder.reset() - clear vTables (#6386)Ivan Dlugos1-0/+1
2020-09-10[JS] FlexBuffers Fix for wrong type of offset and length values (#6107)Maxim Zaks3-24/+52
* Adding FlexBuffers support for Dart language * Introduce snapshot method. * Fix docu * Replacing extension methods with static methods in order to support older Dart version * Improving code based on PR feedback. Mainly rename refactoring. * Addressing all PR feedback which does not need clarification * exchange dynamic type with Object * Adds better API documentation. [] operator throws a very descriptive exception in case of a bad key. * Implementation of JavaScript FlexBuffers decoder * implements JS FlexBuffers builder * replacing _toF32 with Math.fround * Introducing test for BigInt number * Moving functions from BitWitdth & ValueType object into BitWidthUtil and ValueTypeUtil accordingly. Removing defensive checks. Introducing fix for large int numbers by converting them to BigInt type. Introducing handling for BigInt type in `add` method. Using TextEncoder and Decoder to handle string / utf8 conversion. * rename variable * Lets user turn deduplication strategies for strings, keys and vector of keys off while building FlexBuffer. Implements quick sort and choses quick sort if the number of keys is bigger then 20. Removes unnecessary dict lookups in BitWidthUtil helper functions * make iwidth and uwidth computation simpler and faster * Making redInt and readUint a bit faster and shim the BigInt / BigUint usage * Fixing a bug in FlexBuffers JS, where offsets and lengths are stored and read as int and not as uint values. * Fixing a bug in FlexBuffers Dart, where offset and length values are stored and read as int values instead of uint values
2020-05-18[Dart] Adding FlexBuffers support (#5853)Maxim Zaks4-0/+1252
* Adding FlexBuffers support for Dart language
2019-12-18[Dart] Fix prepare space for writeListInt64 and writeListUint64 (#5654)Light Lin1-3/+3
* Fix prepare space for writeListInt64 and writeListUint64 * Fix align issues
2018-08-09Ensure strings are null terminated when written from Dart (#4862)Dan Field1-1/+1
* Update for Dart 2.x constants * Fix strings, update test, add CHANGELOG for Dart
2018-07-26Update for Dart 2.x constants (#4842)Dan Field1-23/+23
2018-05-18Add [Dart] support (#4676)Dan Field1-0/+1241
* Add [Dart] support * fix enum vectors * Allow for opt out of string interning * fix comment style, make interning opt in * remove Offset<T>, prefer int * avoid creating unnecessary vtable objects * start work on tests - do not generate builder if struct has 0 fields - add int64 * support reading structs properly * correctly handle reading vectors of structs, dartfmt * support structs, fix unnecessary prepares * fix bool customizations * undo unintentional removal of file * docs updates, complete tutorial, bug fix for codegen * more documentation * Update docs, add to doxygen file * update package structure, add samples script/code * rearrange sample * Tests * Add readme for pub * cleanup package for pub * update docs for renamed file * remove custom matcher, use `closeTo` instead * remove unintentional file * remove unintended file checkin * use auto, move method, cleanup * refactor to ObjectBuilders, add Builders * Update tests, examples * Add files missing from previous commit * documentation and example updates * Update LICENSE, make dartanalyzer happy, fix minor bugs, get rid of duplicate files, publish script * fix sample for slightly different schema * Update pubspec.yaml