Google.Protobuf.FileDescriptorProto.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 ) : FileDescriptorProto
buffer byte
return FileDescriptorProto
        public static FileDescriptorProto Deserialize(byte[] buffer)
        {
            var instance = new FileDescriptorProto();
            using (var ms = new MemoryStream(buffer))
                Deserialize(ms, instance);
            return instance;
        }

Same methods

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