列表 第页
我已经从谷歌protobuf的v迁移。2.4.1到v。2.5.0(无其他变动)。I've migrated from google protobuf v. 2.4.1 to v. 2.5.0 (no other change).我有一个完全运行的客户端 - 服务器[机器人<> GAE开发服务器]使用2.4.1...阅读全文
我怎样才能得到protobuf网的V2忽视的事实,我的类实现的ICollection,IEnumerable的,等等? 有关此特定情况下,我只希望我已经标记为[ProtoMember]字段被序列化。 我目前在使用protobuf网v1的使用v2的转换的过程。我有一个特殊的结构,这是现在序列正确,因为变化。它看起来像下面...阅读全文
我有一个名单,其中,对象> 与不同类型的对象,它像整数,字符串和自定义类型。所有的自定义类型的protobuf调整。我想现在要做的就是序列化/反序列化这个列表protobuf.net。到现在为止,我怀疑我必须明确地声明每个类型,这是不幸的是不可能的这些混合列表结构。因为二进制格式化器没有问题,做这些事情,我希望...阅读全文
遵守以下小事一件code:[ProtoContract]大众B级{[ProtoMember(1)公众诠释Ÿ;}[ProtoContract]公共C类{[ProtoMember(1)公众诠释Ÿ;}类节目{静态无效的主要(){变种B =新的B {Y = 2};变种C =新的C {Y = 4};使用(VAR毫秒=新的Memo...阅读全文
是有可能的(de)既没有使用protobuf网属性也没有明确添加类型到模型序列化POCO类型?Is it possible to (de)serialize a POCO type using neither protobuf-net attributes nor explicitly adding types in...阅读全文
我如何配置protobuf网typemodel通过在下面的例子中,3单元测试? protobuf的版本为V2 R470。 我已经看过了SVN树列表测试简单,但不能发现这一点,空VS在protobuf网SVN空测试之间的差异。使用系统;使用System.Collections.Generic;使用System.Lin...阅读全文
这dataserializer是伟大的表现。但我一直被陷在datacolumns有System.Object的数据类型为使串行抛出异常:无法序列类型的数据列'System.Object的this dataserializer is great for performance. but I keep getting...阅读全文
我使用的是与protobuf网memcache的供应商protobuf网lib和我想要使用的memcache附加功能:I'm using protobuf-net lib with protobuf-net memcache provider and I'm trying to use memcache append...阅读全文
任何人有一个例子,你读的protobuf,使用凌空?我已阅读,你可以实现ProtobufRequest类,但我不能为它找到文档。谢谢你的帮助。anyone has an example, where you read a protobuf, using volley?. I have read that you ca...阅读全文
我用的protobuf我的Web客户端和服务器(C#)之间的通信,使用的WebSocket。在客户端,去/序列化是通过 Protobuf.js 并完成,在服务器上,使用protobuf网。I'm using Protobuf for the communication between my web client an...阅读全文
我有十亿个对象,我正在努力构建他们在B +树序列化到硬盘。我使用 BPlusTree 库的数据结构和的 protobuf网序列化/反序列化。在这方面,我定义我的课是:I have billions of objects that I'm trying to structure them in a B+Tree ser...阅读全文
它看起来像有0作为Int64的编码问题。其他值的Int64确定。[ProtoMember(3)私人只读的Int64 _intValue被反序列化Int64.MinValue 你知道吗?我确认的bug。本课程将不能正确序列化,如果_val == 0 [ProtoContract] 类VerySimple{[ProtoM...阅读全文
我在使用Protobuf.net,它抛出一个非常奇怪的除了一些相当简单的code。在上线167,它抛出一个InvalidOperationException异常MetaType.cs的类型不能一次串行已经产生变化。这是什么意思,如何解决呢?我的code是这样的:此方法启动了所有的连载:而(的Parallel.For(...阅读全文
我有型System.IO.FileAttribute(枚举)I have a class which has a property of type System.IO.FileAttribute (enum)在与protobuf网序列我得到的错误:Upon serializing with protobuf-ne...阅读全文
如果我理解正确的话,在Java端需要相应的.proto文件。不过,目前还不清楚我如何产生一个从服务器端使用的RuntimeTypeModel实例(protobuf网V2)。If I understand it correctly, the Java end needs the respective .proto fi...阅读全文
我们有一个Android应用程序,使用Protocol Buffers的存储应用程序数据。的数据格式(大致)是一个单一的protobuf(容器),其中包含protobufs列表(项目),其为重复字段:We have an Android app that uses Protocol Buffers to store...阅读全文
我想从下面使用protobuf的纳米原文件生成Java文件。我上如何着手这太线程一些基本的指令。I am trying to generate java files from below proto file using protobuf nano. I got some basic instruction on h...阅读全文
在我的应用程序,我序列化的消息在发送使用protobuf网线。每个消息具有键 - 值对的标头信息的列表。 In my application, I'm serializing messages to send over the wire using protobuf-net. Each message has a l...阅读全文
采用最新的2.0测试版ProtoBuf.net的版本我想序列化派生类(只是举例),我得到空文件。为什么基类的属性不是序列?[ProtoContract][可序列化]公共类Web2PdfClient:Web2PdfEntity{}[ProtoContract][可序列化]公共类Web2PdfEntity:Eng...阅读全文
背景:这是基于有人问,然后被删除之前,我能回答的问题 - 但我认为这是一个很好的问题,所以我收拾它,改写它,并重新贴吧的在高通量方案使用protobuf网,其中许多分配是个问题(特别是用于GC),是有可能再利用对象?例如通过增加一个清除()的方法?[ProtoContract]公共类MyDTO{[ProtoMem...阅读全文
据我了解,在与集合protobuf网需求的GetEnumerator 进行序列化和类型与添加的工作反序列化。I gather that when working with collections protobuf-net needs GetEnumerator for serialization and a type...阅读全文
我用Protobuf.net遇到这种异常在我的项目:I'm encountering this Exception in my project using Protobuf.net:InvalidOperationException "Unexpected sub-type: foo"我有我送它看起来像这样一类:...阅读全文
我试图构建一个序列化系统为我们的应用程序,它必须能够处理继承。为了进一步使问题复杂化的应用程序是可扩展的类型可能都不太可能在编译时已知的。I am trying to construct a serialisation system for our application that must be able to h...阅读全文
我不知道是否有像SGEN的protobuf网... I wonder if there is a tool like sgen for protobuf-net...推荐答案我还没有完成在该领域的工具,但要注意RuntimeTypeModel有一个编译()方法,它的路径和类型名;这是你想要的方式。我建议从全.NE...阅读全文
我使用的是最新protobuf网LIB与protobuf网memcache的供应商。我需要序列化的自定义类型MyClass的名单[ProtoContract]公共MyClass类{[ProtoMember(1)]公众诠释一个{获得;组;}[ProtoMember(2)]公众诠释B {获得;组;}}所以,我需要存储/...阅读全文
正如我理解,RuntimeTypeModel允许ProtoInclude与类型,当类型声明不能改变这对于箱子有用关联。但我很难理解它是如何实际完成的。As I understood, RuntimeTypeModel allows to associate ProtoInclude with a type, whic...阅读全文
我已经系列化与protobuf网对象的列表。I have serialized a list of objects with protobuf-net.从理论上讲,.bin文件可以包含对象的数以百万计。Theoretically, the .bin file can contain millions of obj...阅读全文
我们有一些问题,序列化空列表。这里采用CF 2.0约code。在.NET we have some problems with serializing an empty list.here some code in .NET using CF 2.0//Generating the protobuf-msgP...阅读全文
我想知道为什么通过的马克Gravell 是一样快,因为它是。 I want to understand why the protocol buffers solution for .NET developed by Marc Gravell is as fast as it is. 我能理解原谷歌的解决方案来实现它...阅读全文
我已经系列化使用protobuf网的对象,在我的.NET应用程序,相对容易。我也得到了protobuf网产生的.proto文件,使用GetProto()命令。在.NET生成.proto文件,我的GUID领域得到一种bcl.guid。现在我希望编译在C .proto文件++这样我就可以反序列化的数据。不过,C ++编译...阅读全文
大众A级{公众诠释X {获得;私定; }公开发行A(INT X){X = X;}公共静态隐含的运营商ASurrogate(A一){返回== NULL?空:新ASurrogate {X = a.X};}公共静态隐式操作员A(ASurrogate一){返回== NULL?空:新A(a.X);}}[ProtoContrac...阅读全文
由于这些类型:[DataContract]public class EntityId{[DataMember(Order = 1)]public string IdAsString { get; set; }[DataMember(Order = 2), XmlIgnore]public Type Type { get...阅读全文
我试图序列化应用大protobuf网模型。我不能使用属性(对象是未知在编译时),所以我构建了一个TypeModel。我的对象模型由一类的 TestDataObject 的,这一类具有的 ITestDataExtension 的属性。抽象基类的 TestDataExtensionBase 的实现此接口和类的 Test...阅读全文
我使用V2转421。当我救了protobuf网制作并把它通过琴弦工具流,它发现了许多重复的字符串。我说的是由应用程序生成的字符串,可以拘留,但该字符串实习似乎并不在默认情况下打开。I am using v2 rev 421.When I saved the stream produced by protobuf-...阅读全文
由于protobuf网不支持串行化/反序列化的多维数组,我将如何去管理我的阵列?Since ProtoBuf-Net does not support serializing/deserializing multi-dimensional arrays, how would I go about managing m...阅读全文
在 protobuf网的实施,什么是 ProtoInclude 属性的意思,和它有什么作用?In the ProtoBuf-Net implementation, what does the ProtoInclude attribute mean, and what does it do?一个例子是AP preci...阅读全文