mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 23:13:57 +00:00
one last dart omit local (#7070)
This commit is contained in:
@@ -1054,7 +1054,7 @@ class StringReader extends Reader<String> {
|
|||||||
String read(BufferContext bc, int offset) {
|
String read(BufferContext bc, int offset) {
|
||||||
var strOffset = bc.derefObject(offset);
|
var strOffset = bc.derefObject(offset);
|
||||||
var length = bc._getUint32(strOffset);
|
var length = bc._getUint32(strOffset);
|
||||||
Uint8List bytes = bc._asUint8List(strOffset + _sizeofUint32, length);
|
var bytes = bc._asUint8List(strOffset + _sizeofUint32, length);
|
||||||
if (asciiOptimization && _isLatin(bytes)) {
|
if (asciiOptimization && _isLatin(bytes)) {
|
||||||
return String.fromCharCodes(bytes);
|
return String.fromCharCodes(bytes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user