Hi,
I'm using this C# code to create a FileDescriptor from CodeGeneratorRequest:
using var stdin = Console.OpenStandardInput();
var request = new CodeGeneratorRequest();
request.MergeFrom(stdin);
var protos = new List<ByteString>();
foreach (var proto in request.ProtoFile)
{
protos.Add(proto.ToByteString());
}
var descritors = FileDescriptor.BuildFromByteStrings(protos);
Is there a better way to do this? The problem with this approach is that I
end up decoding encoding and decoding again each FileDescriptorProto
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/0663adf4-1246-42c4-bf9f-af9dbb9acd24n%40googlegroups.com.