Grijjy.ProtocolBuffers.pas

Grijjy.ProtocolBuffers.pas

Binary Serialization with Google Protocol Buffers

  

class function Serialize<T: record>(const ARecord: T): TBytes; overload; static; inline;
class function Serialize(const ARecordType: Pointer;
      const ARecord): TBytes; overload; static;
class procedure Serialize<T: record>(const ARecord: T;
      const AFilename: String); overload; static; inline;
class procedure Serialize(const ARecordType: Pointer; const ARecord;
      const AFilename: String); overload; static;
class procedure Serialize<T: record>(const ARecord: T;
      const AStream: TStream); overload; static; inline;
class procedure Serialize(const ARecordType: Pointer; const ARecord;
      const AStream: TStream); overload; static;
。。。。。。

  

原文地址:https://www.cnblogs.com/hnxxcxg/p/14036253.html