public static BaseResource Deserialize(Stream stream) { BaseResource baseResource = Pool.Get <BaseResource>(); BaseResource.Deserialize(stream, baseResource, false); return(baseResource); }
public static BaseResource Deserialize(byte[] buffer, BaseResource instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { BaseResource.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static BaseResource Deserialize(byte[] buffer) { BaseResource baseResource = Pool.Get <BaseResource>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { BaseResource.Deserialize(memoryStream, baseResource, false); } return(baseResource); }
public void FromProto(Stream stream, bool isDelta = false) { BaseResource.Deserialize(stream, this, isDelta); }