Skip to content

Commit

Permalink
FixedSized docstring updated
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Feb 6, 2021
1 parent 3c8508f commit cccde9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion construct/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4452,7 +4452,7 @@ class FixedSized(Subconstruct):
r"""
Restricts parsing to specified amount of bytes.
Parsing reads `length` bytes, then defers to subcon using new BytesIO with said bytes. Building builds the subcon using new BytesIO, then writes said data and additional null bytes accordingly. Size is same as `length`, although negative amount raises an error as well.
Parsing reads `length` bytes, then defers to subcon using new BytesIO with said bytes. Building builds the subcon using new BytesIO, then writes said data and additional null bytes accordingly. Size is same as `length`, although negative amount raises an error.
:param length: integer or context lambda, total amount of bytes (both data and padding)
:param subcon: Construct instance
Expand Down

0 comments on commit cccde9a

Please sign in to comment.