Skip to content

Commit

Permalink
upb: implement .mergeFromBuffer() on GeneratedMessage in Dart
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 628455567
  • Loading branch information
ericsalo authored and Copybara-Service committed Apr 26, 2024
1 parent 93bd4bb commit ea4c77c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conformance/conformance_dart.dart
Expand Up @@ -65,7 +65,7 @@ ConformanceResponse doTest(ConformanceRequest request) {
switch (request.requestedOutputFormat) {
case WireFormat.PROTOBUF:
try {
response.protobufPayload = pb.GeneratedMessage.toBuffer(testMessage);
response.protobufPayload = pb.GeneratedMessage.toBinary(testMessage);
} catch (e) {
response.serializeError = '$e';
}
Expand All @@ -86,7 +86,7 @@ Future<bool> doTestIo() async {
}
final request = ConformanceRequest.fromBuffer(serializedMsg);
final response = doTest(request);
final serializedOutput = pb.GeneratedMessage.toBuffer(response);
final serializedOutput = pb.GeneratedMessage.toBinary(response);
writeLittleEndianIntToStdout(serializedOutput.length);
stdout.add(serializedOutput);
await stdout.flush();
Expand Down

0 comments on commit ea4c77c

Please sign in to comment.