Google.Protobuf.ServiceDescriptorProto.Deserialize C# (CSharp) Method

Deserialize() public static method

Helper: put the buffer into a MemoryStream and create a new instance to deserializing into
public static Deserialize ( byte buffer ) : ServiceDescriptorProto
buffer byte
return ServiceDescriptorProto
        public static ServiceDescriptorProto Deserialize(byte[] buffer)
        {
            var instance = new ServiceDescriptorProto();
            using (var ms = new MemoryStream(buffer))
                Deserialize(ms, instance);
            return instance;
        }

Same methods

ServiceDescriptorProto::Deserialize ( Stream stream, Google instance ) : Google.Protobuf.ServiceDescriptorProto
ServiceDescriptorProto::Deserialize ( byte buffer, Google instance ) : Google.Protobuf.ServiceDescriptorProto
ServiceDescriptorProto::Deserialize ( Stream stream ) : ServiceDescriptorProto