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
Type | Name |
---|---|
<T> | obj |
Type Parameters
T
FromProtoBuf<T>(Byte[])
View Source
Declaration
public static T FromProtoBuf<T>(this byte[] bytes)
Returns
<T>
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |
Type Parameters
T