Skip to content

Commit

Permalink
Serialization: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Oct 23, 2023
1 parent 45dde37 commit 21c25b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialization.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ The Java's `+_invalidate{Inst}+` / Python's `+_invalidate_{inst}+` method invali

=== Parse instances

They have setters and their own `+_check{Inst}+` (`+_check_{inst}+`) method which you should call. Additionally, you can also use a special boolean setter `set{Inst}_ToWrite` hello (in Python you'd assign a boolean to a property `+{inst}__to_write+`), allowing you to disable writing of a specific instance (as `r.set{Inst}_ToWrite(false)` in Java, or `+r.{inst}__to_write = False+` in Python) in a particular KS object. This may be useful for C-style `union` members (several overlapping fields with different types, but only one applies in any object), lookaheads or other positional instances you don't want to write.
They have setters and their own `+_check{Inst}+` (`+_check_{inst}+`) method which you should call. Additionally, you can also use a special boolean `set{Inst}_ToWrite` setter (in Python you'd assign a boolean to a property `+{inst}__to_write+`), allowing you to disable writing of a specific instance (as `r.set{Inst}_ToWrite(false)` in Java, or `+r.{inst}__to_write = False+` in Python) in a particular KS object. This may be useful for C-style `union` members (several overlapping fields with different types, but only one applies in any object), lookaheads or other positional instances you don't want to write.

=== Parameters

Expand Down

0 comments on commit 21c25b7

Please sign in to comment.