-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint problems, add some explanations in the docstrings
- Loading branch information
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package kaitai | ||
|
||
// Struct is the common interface guaranteed to be implemented by all types generated | ||
// by Kaitai Struct compiler. | ||
// Struct is the common interface guaranteed to be implemented by all types generated by | ||
// Kaitai Struct compiler. | ||
type Struct interface { | ||
// Kaitai_IO returns the stream object associated with the struct. | ||
// | ||
// This is deliberately named with a `Kaitai_` prefix and underscore to avoid conflicts | ||
// with other methods that may result from the attributes in Kaitai Struct type, e.g. | ||
// is a user will define attribute `i_o` this will conflict with the method `IO()`. | ||
Kaitai_IO() *Stream | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters