Using(MemoryStream stream = new MemoryStream())īyteArrayToFile("personStreamFromC#", bytes) Set the primitive add an item to a list (repeating) field Person.Builder newContact = Person.CreateBuilder() Create a builder to start building a message The object is created in c# and written to a file using the following c# code: I succeed to create the addressbook.java and the addressbook.cs. cs file (compiling using the protoc for java in version "protobuf-2.4.1" and the protobuf-csharp-port-2.4.1.473-full-binaries for c#). proto file (see below) to create the correspondent. I am creating a stream in C# and trying to read it in java, but I receive the error: "Protocol message tag had invalid wire type." when i read it in my java code the object created in c#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |