org.gamecult.cultlib 2.0.0: the parser's comment and the flush bullet state the exact stamp rule; declare the nil-stamp refusal (Soul s5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3994f5d4c6
commit
ef45e4ed82
2 changed files with 6 additions and 3 deletions
|
|
@ -183,8 +183,9 @@ public static class CultDocumentMessagePackSerialization
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parses a store snapshot of any format stamp, as every release has. It judges nothing about readability: a store
|
||||
/// reading its own file checks the stamp against the formats it reads, before the body is parsed.
|
||||
/// Parses a store snapshot whose format stamp is a string, of any version. It refuses a nil or binary stamp
|
||||
/// (1.0.61 read a nil stamp as v1). A store reading its own file checks the stamp against the formats it reads,
|
||||
/// before the body is parsed.
|
||||
/// </summary>
|
||||
public static CultPersistedStoreSnapshot DeserializeSnapshot(byte[] payload) =>
|
||||
DeserializeSnapshot(payload, _ => { });
|
||||
|
|
|
|||
Loading…
Reference in a new issue