public void SaveStateBinary(BinaryWriter writer) { if (!BizSwan.bizswan_binstatesave(Core, savebuff, savebuff.Length)) { throw new InvalidOperationException($"{nameof(BizSwan.bizswan_binstatesave)}() returned false!"); } writer.Write(savebuff.Length); writer.Write(savebuff); var d = new TextStateData(); SaveTextStateData(d); BinaryQuickSerializer.Write(d, writer); }
public void SaveStateBinary(BinaryWriter writer) { if (!BizSwan.bizswan_binstatesave(Core, savebuff, savebuff.Length)) { throw new InvalidOperationException("bizswan_binstatesave() returned false!"); } writer.Write(savebuff.Length); writer.Write(savebuff); // other variables writer.Write(IsLagFrame); writer.Write(LagCount); writer.Write(Frame); }