public byte[] DA_ResolveDelta(Stream st, long f, long pos, long size) { byte[] bytes = new byte[4]; st.Read(bytes, 0, 4); int delta_ref_f = BitConverter.ToInt32(bytes, 0); int outputsize = 0; Stream ref_frame = SearchOriginalFrame(f - delta_ref_f, outputsize); ref_frame.ReadByte(); //return Fossil.Delta.RA_ApplyStream(pos,size,ref_frame, st); return(DeltaLib.RA_ApplyDelta(pos, size, st, ref_frame)); }
public MemoryStream ResolveDelta(Stream st, long f) { byte[] bytes = new byte[4]; st.Read(bytes, 0, 4); int delta_ref_f = BitConverter.ToInt32(bytes, 0); int outputsize = 0; Stream ref_frame = SearchOriginalFrame(f - delta_ref_f, outputsize); ref_frame.ReadByte(); return(DeltaLib.ApplyDelta(st, ref_frame)); }