• Home
  • Raw
  • Download

Lines Matching +full:vm +full:- +full:pointer

38   @pragma('vm:prefer-inline')
41 @pragma('vm:prefer-inline')
45 @pragma('vm:prefer-inline')
48 @pragma('vm:prefer-inline')
51 @pragma('vm:prefer-inline')
54 @pragma('vm:prefer-inline')
57 @pragma('vm:prefer-inline')
60 @pragma('vm:prefer-inline')
63 @pragma('vm:prefer-inline')
66 @pragma('vm:prefer-inline')
69 @pragma('vm:prefer-inline')
72 @pragma('vm:prefer-inline')
76 /// Interface implemented by the "object-api" classes (ending with "T").
161 @pragma('vm:prefer-inline')
162 int size() => _tail + ((-_tail) & (_maxAlign - 1));
165 /// the [value] is equal to [def]. Booleans are stored as 8-bit fields with
172 _buf.setInt8(_buf.lengthInBytes - _tail, value ? 1 : 0);
176 /// Add the [field] with the given 32-bit signed integer [value]. The field is
187 /// Add the [field] with the given 32-bit signed integer [value]. The field is
198 /// Add the [field] with the given 8-bit signed integer [value]. The field is
221 _setUint32AtTail(_tail, _tail - offset);
225 /// Add the [field] with the given 32-bit unsigned integer [value]. The field
236 /// Add the [field] with the given 32-bit unsigned integer [value]. The field
247 /// Add the [field] with the given 8-bit unsigned integer [value]. The field
258 /// Add the [field] with the given 32-bit float [value]. The field
269 /// Add the [field] with the given 64-bit double [value]. The field
280 /// Add the [field] with the given 64-bit unsigned integer [value]. The field
291 /// Add the [field] with the given 64-bit unsigned integer [value]. The field
310 currentVTable.tableSize = tableTail - _currentTableEndTail;
318 // Search backward - more likely to have recently used one
319 for (var i = _vTables.length - 1; i >= 0; i--) {
321 final vt2Start = _buf.lengthInBytes - vt2Offset;
337 currentVTable.output(_buf, _buf.lengthInBytes - _tail);
342 _setInt32AtTail(tableTail, vTableTail - tableTail);
349 @pragma('vm:prefer-inline')
354 .asUint8List(_buf.lengthInBytes - finishedSize, finishedSize);
360 /// interpreted as a 4-byte Latin-1 encoded string that should be placed at
361 /// bytes 4-7 of the file.
367 _setUint32AtTail(finishedSize, finishedSize - offset);
371 finishedSize - _sizeofUint32 - i, fileIdentifier.codeUnitAt(i));
377 i <= finishedSize - requiredBytes;
386 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
394 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
403 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
406 _buf.setInt8(_buf.lengthInBytes - _tail, value ? 1 : 0);
411 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
419 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
427 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
435 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
438 _buf.setInt8(_buf.lengthInBytes - _tail, value);
443 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
451 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
459 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
467 …/// Updates the [offset] pointer. This method is intended for use when writing structs to the buf…
470 _buf.setUint8(_buf.lengthInBytes - _tail, value);
503 for (var i = structBuilders.length - 1; i >= 0; i--) {
516 tail -= _sizeofUint32;
518 _setUint32AtTail(tail, tail - value);
519 tail -= _sizeofUint32;
524 /// Write the given list of 64-bit float [values].
531 tail -= _sizeofUint32;
534 tail -= _sizeofFloat64;
539 /// Write the given list of 32-bit float [values].
546 tail -= _sizeofUint32;
549 tail -= _sizeofFloat32;
554 /// Write the given list of signed 64-bit integer [values].
561 tail -= _sizeofUint32;
564 tail -= _sizeofInt64;
569 /// Write the given list of signed 64-bit integer [values].
576 tail -= _sizeofUint32;
579 tail -= _sizeofUint64;
584 /// Write the given list of signed 32-bit integer [values].
591 tail -= _sizeofUint32;
594 tail -= _sizeofInt32;
599 /// Write the given list of unsigned 32-bit integer [values].
606 tail -= _sizeofUint32;
609 tail -= _sizeofUint32;
614 /// Write the given list of signed 16-bit integer [values].
621 tail -= _sizeofUint32;
624 tail -= _sizeofInt16;
629 /// Write the given list of unsigned 16-bit integer [values].
636 tail -= _sizeofUint32;
639 tail -= _sizeofUint16;
644 /// Write the given list of bools as unsigend 8-bit integer [values].
649 /// Write the given list of signed 8-bit integer [values].
656 tail -= _sizeofUint32;
659 tail -= _sizeofUint8;
664 /// Write the given list of unsigned 8-bit integer [values].
671 tail -= _sizeofUint32;
674 tail -= _sizeofUint8;
681 /// Dart strings are UTF-16 but must be stored as UTF-8 in FlatBuffers.
685 /// (because there are no-ASCII characters in the string) it falls back and to
686 /// the default UTF-16 -> UTF-8 conversion (with slight performance penalty).
703 // if non-ASCII: reset the output buffer position for [_writeUTFString()]
710 // Try to write the string as ASCII, return false if there's a non-ascii char.
711 @pragma('vm:prefer-inline')
715 var offset = _buf.lengthInBytes - _tail + 4;
730 @pragma('vm:prefer-inline')
736 var offset = _buf.lengthInBytes - _tail + 4;
751 /// Move the creation of these sub-objects to before the MyTableBuilder to
753 @pragma('vm:prefer-inline')
758 @pragma('vm:prefer-inline')
761 /// Zero-pads the buffer, which may be required for some struct layouts.
762 @pragma('vm:prefer-inline')
771 /// tail pointer to point at the allocated space.
772 @pragma('vm:prefer-inline')
781 final alignDelta = (-(_tail + dataSize)) & (size - 1);
788 var deltaCapacity = desiredNewCapacity - oldCapacity;
789 deltaCapacity += (-deltaCapacity) & (_maxAlign - 1);
800 // Update the tail pointer.
805 @pragma('vm:prefer-inline')
808 @pragma('vm:prefer-inline')
810 _buf.setFloat64(_buf.lengthInBytes - tail, x, Endian.little);
812 @pragma('vm:prefer-inline')
814 _buf.setFloat32(_buf.lengthInBytes - tail, x, Endian.little);
816 @pragma('vm:prefer-inline')
818 _buf.setUint64(_buf.lengthInBytes - tail, x, Endian.little);
820 @pragma('vm:prefer-inline')
822 _buf.setInt64(_buf.lengthInBytes - tail, x, Endian.little);
824 @pragma('vm:prefer-inline')
826 _buf.setInt32(_buf.lengthInBytes - tail, x, Endian.little);
828 @pragma('vm:prefer-inline')
830 _buf.setUint32(_buf.lengthInBytes - tail, x, Endian.little);
832 @pragma('vm:prefer-inline')
834 _buf.setInt16(_buf.lengthInBytes - tail, x, Endian.little);
836 @pragma('vm:prefer-inline')
838 _buf.setUint16(_buf.lengthInBytes - tail, x, Endian.little);
840 @pragma('vm:prefer-inline')
842 _buf.setInt8(_buf.lengthInBytes - tail, x);
844 @pragma('vm:prefer-inline')
846 _buf.setUint8(_buf.lengthInBytes - tail, x);
856 @pragma('vm:prefer-inline')
860 @pragma('vm:prefer-inline')
870 @pragma('vm:prefer-inline')
874 @pragma('vm:prefer-inline')
878 /// The reader of lists of 64-bit float values.
885 @pragma('vm:prefer-inline')
889 @pragma('vm:prefer-inline')
898 @pragma('vm:prefer-inline')
902 @pragma('vm:prefer-inline')
911 @pragma('vm:prefer-inline')
915 @pragma('vm:prefer-inline')
923 @pragma('vm:prefer-inline')
927 @pragma('vm:prefer-inline')
935 @pragma('vm:prefer-inline')
939 @pragma('vm:prefer-inline')
943 /// The reader of signed 32-bit integers.
948 @pragma('vm:prefer-inline')
952 @pragma('vm:prefer-inline')
956 /// The reader of signed 32-bit integers.
961 @pragma('vm:prefer-inline')
965 @pragma('vm:prefer-inline')
969 /// The reader of 8-bit signed integers.
974 @pragma('vm:prefer-inline')
978 @pragma('vm:prefer-inline')
982 /// The reader of lists of objects. Lazy by default - see [lazy].
997 @pragma('vm:prefer-inline')
1024 @pragma('vm:prefer-inline')
1031 @pragma('vm:prefer-inline')
1037 @pragma('vm:prefer-inline')
1040 final vTableOffset = offset - vTableSOffset;
1054 @pragma('vm:prefer-inline')
1058 @pragma('vm:prefer-inline')
1069 @pragma('vm:prefer-inline')
1099 @pragma('vm:prefer-inline')
1112 /// Reader of lists of unsigned 32-bit integer values.
1119 @pragma('vm:prefer-inline')
1123 @pragma('vm:prefer-inline')
1128 /// The reader of unsigned 64-bit integers.
1135 @pragma('vm:prefer-inline')
1139 @pragma('vm:prefer-inline')
1143 /// The reader of unsigned 32-bit integers.
1148 @pragma('vm:prefer-inline')
1152 @pragma('vm:prefer-inline')
1156 /// Reader of lists of unsigned 32-bit integer values.
1163 @pragma('vm:prefer-inline')
1167 @pragma('vm:prefer-inline')
1172 /// The reader of unsigned 32-bit integers.
1177 @pragma('vm:prefer-inline')
1181 @pragma('vm:prefer-inline')
1185 /// Reader of unmodifiable binary data (a list of unsigned 8-bit integers).
1198 @pragma('vm:prefer-inline')
1202 @pragma('vm:prefer-inline')
1217 /// The reader of unsigned 8-bit integers.
1222 @pragma('vm:prefer-inline')
1226 @pragma('vm:prefer-inline')
1230 /// Reader of unmodifiable binary data (a list of signed 8-bit integers).
1243 @pragma('vm:prefer-inline')
1247 @pragma('vm:prefer-inline')
1262 /// The list backed by 64-bit values - Uint64 length and Float64.
1267 @pragma('vm:prefer-inline')
1271 /// The list backed by 32-bit values - Float32.
1276 @pragma('vm:prefer-inline')
1290 @pragma('vm:prefer-inline')
1311 @pragma('vm:prefer-inline')
1322 /// List backed by 32-bit unsigned integers.
1327 @pragma('vm:prefer-inline')
1331 /// List backed by 16-bit unsigned integers.
1336 @pragma('vm:prefer-inline')
1340 /// List backed by 8-bit unsigned integers.
1345 @pragma('vm:prefer-inline')
1349 /// List backed by 8-bit signed integers.
1354 @pragma('vm:prefer-inline')
1358 /// List backed by 8-bit unsigned integers.
1363 @pragma('vm:prefer-inline')
1391 @pragma('vm:prefer-inline')
1399 @pragma('vm:prefer-inline')
1412 @pragma('vm:prefer-inline')
1418 fieldOffsets[i] = tableTail - fieldOffsets[i];
1423 /// Outputs this VTable to [buf], which is is expected to be aligned to 16-bit
1424 /// and have at least [numOfUint16] 16-bit words available.
1425 @pragma('vm:prefer-inline')
1471 newData.lengthInBytes - inUseBack,
1473 oldData.lengthInBytes - inUseBack, oldData.lengthInBytes));
1491 // nothing to do, it's garbage-collected