Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Weird BSS inputs #30

Open
cygnusv opened this issue May 1, 2020 · 1 comment
Open

Weird BSS inputs #30

cygnusv opened this issue May 1, 2020 · 1 comment

Comments

@cygnusv
Copy link
Member

cygnusv commented May 1, 2020

Currently, it's possible to define fields to be of 0 or negative size:

>>> splitter2 = BytestringSplitter(1, -1, 5)
>>> splitter2(b"abcde")
[b'a', b'', b'abcde']

>>> splitter2 = BytestringSplitter(1, 0, 5)
>>> splitter2(b"abcdef")
[b'a', b'', b'bcdef']
@KPrasch
Copy link
Member

KPrasch commented May 1, 2020

...feature or bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants