Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(987)

Unified Diff: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart

Issue 1776243004: Mojom runtime type info: Use compression and base64 encoding. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart
index 6d7aa4ce7b334edc2ab8929902b8daa6223e8dff..bccd03912c5945251d90d0056e70e66a82b0b1e3 100644
--- a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart
@@ -19,7 +19,7 @@ class MojomFile extends bindings.Struct {
List<mojom_types_mojom.Attribute> attributes = null;
List<String> imports = null;
KeysByType declaredMojomObjects = null;
- List<int> serializedRuntimeTypeInfo = null;
+ String serializedRuntimeTypeInfo = null;
MojomFile() : super(kVersions.last.size);
@@ -104,7 +104,7 @@ class MojomFile extends bindings.Struct {
}
if (mainDataHeader.version >= 0) {
- result.serializedRuntimeTypeInfo = decoder0.decodeUint8Array(56, bindings.kArrayNullable, bindings.kUnspecifiedArrayLength);
+ result.serializedRuntimeTypeInfo = decoder0.decodeString(56, true);
}
return result;
}
@@ -168,7 +168,7 @@ class MojomFile extends bindings.Struct {
rethrow;
}
try {
- encoder0.encodeUint8Array(serializedRuntimeTypeInfo, 56, bindings.kArrayNullable, bindings.kUnspecifiedArrayLength);
+ encoder0.encodeString(serializedRuntimeTypeInfo, 56, true);
} on bindings.MojoCodecError catch(e) {
e.message = "Error encountered while encoding field "
"serializedRuntimeTypeInfo of struct MojomFile: $e";

Powered by Google App Engine
This is Rietveld 408576698