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