Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to iterators #10

Open
xpeh-owns opened this issue Feb 12, 2018 · 1 comment
Open

Changes to iterators #10

xpeh-owns opened this issue Feb 12, 2018 · 1 comment

Comments

@xpeh-owns
Copy link
Collaborator

  • Add new type: stringlist (name suggestion?). It should mean list of null-terminated strings ended by an empty string (i.e. double null byte)

  • Remove type

iterator{
		alias="none",
		--condition = function(self, state) return state.packet.chan ~="" end,
		condition = Cond.nequals("chan", ""),
		repeated = {
			stringz{"Channel name", key="chan"},
		}
}

Leave only iterator with refkey.

  • Nodes should look like this:
    • stringlist: flat
+Channels:
  #1: channel1
  #2: channel2
    • iterator with count saved in variable (Change name to array or something? Maybe later.)
      • single item: flat like stringlist
      • multiple items: node for every structure
+ CD keys
  +#1
    field1: 
    field2:     
  +#2
    field1: 
    field2:     
@diegonc
Copy link
Owner

diegonc commented Feb 18, 2018

Add new type: stringlist (name suggestion?). It should mean list of null-terminated strings ended by an empty string (i.e. double null byte)

Yeah sure, the iterator thing is too low-level

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

No branches or pull requests

2 participants