Skip to main content

ProtoBufExtensions

Assembly: ServiceStack.ProtoBuf.dll
View Source
Declaration
public static class ProtoBufExtensions

Methods

ToProtoBuf<T>(T)

View Source
Declaration
public static byte[] ToProtoBuf<T>(this T obj)
Returns

System.Byte[]

Parameters
TypeName
<T>obj
Type Parameters
  • T

FromProtoBuf<T>(Byte[])

View Source
Declaration
public static T FromProtoBuf<T>(this byte[] bytes)
Returns

<T>

Parameters
TypeName
System.Byte[]bytes
Type Parameters
  • T